This commit is contained in:
2026-05-17 12:43:53 -07:00
commit 7c8def0aaa
7507 changed files with 1419399 additions and 0 deletions

16
dist/agent-runner.d.ts vendored Normal file
View File

@@ -0,0 +1,16 @@
import { AgentConfig } from './agents';
import { ToolContext } from './tools';
import { Job } from './job-store';
export interface RunResult {
finalText: string;
toolCallCount: number;
turns: number;
model: string;
}
/**
* Core agent execution loop — model-agnostic via the unified LLM client.
*
* Agents use their configured model tier (A/B/C) or a specific model ID.
* Tool calling uses OpenAI format throughout.
*/
export declare function runAgent(job: Job, config: AgentConfig, task: string, ctx: ToolContext): Promise<RunResult>;