/** * Darwin — Evolution-loop builder. * * Constructs a fully-wired {@link DarwinLoop} (tracker + patterns + safety + * legacy optimizer + opt-in GEPA reflective optimizer + notifications) for a * given agent. The optimizer/reflector closures route their LLM calls through * {@link runAgent} exactly the way `darwin run` does, so the on-demand * `darwin evolve --force` path produces the SAME challenger the automatic loop * would. */ import { DarwinLoop } from './loop.js'; import type { AgentDefinition, DarwinConfig, MemoryProvider } from '../types.js'; /** * Build a DarwinLoop for `agent` against `memory`/`config`. Mirrors the wiring * in `cli/run.ts` so both the automatic (`afterRun`) and manual (`forceEvolve`) * entry points behave identically. GEPA is only wired when the agent opts in * via `evolution.useGepa`. */ export declare function buildEvolutionLoop(agent: AgentDefinition, config: DarwinConfig, memory: MemoryProvider): DarwinLoop; //# sourceMappingURL=build-loop.d.ts.map