import type { Usage } from "@kenkaiiii/gg-ai"; /** * Director-Executor mode — two-agent architecture for long sessions. * * Director plans at a high level; for each step it `delegate`s to a fresh * Executor that has full tool access. Executor returns a structured summary * which is the ONLY thing that enters director context. * * Win: a 100-tool-call edit session collapses to ~5 director turns each * seeing ~50-token summaries instead of accumulated raw tool I/O. */ export interface ExecutorResult { /** Final summary the executor produced (last assistant message, trimmed). */ summary: string; /** How many turns the executor took. */ turns: number; /** Token usage. */ usage: Usage; /** Tool call count + names — the director uses this to verify expectations. */ toolCalls: Array<{ name: string; isError: boolean; }>; } export interface DirectorConfig { /** Provider for both agents. */ provider: "anthropic" | "openai" | "glm" | "moonshot"; /** Model for both agents (executor can override via tool param). */ model: string; apiKey?: string; /** Max executor turns per delegated task. Default 30. */ maxExecutorTurns?: number; /** Hard cap on total delegated tasks per director session. Default 20. */ maxDelegations?: number; /** Propagate dry-run to all executor tool factories. */ dryRun?: boolean; } //# sourceMappingURL=types.d.ts.map