/** * repl/engineLoop.ts * * Runs the AI response loop for both engine types: * - CareerVividProxyEngine (cv_live_ API key → cloud proxy) * - BYO providers (OpenAI, Anthropic, OpenRouter, custom) * * Returns the full accumulated text response for TTS / audit. */ import { CareerVividProxyEngine } from "../../../agent/CareerVividProxyEngine.js"; import { QueryEngine } from "../../../agent/QueryEngine.js"; import { type LLMProvider } from "../../../config.js"; import { ToolHandlerState } from "./toolHandlers.js"; export interface EngineRunOptions { engine: QueryEngine | CareerVividProxyEngine | null; userInput: string; selectedProvider: LLMProvider; selectedModel: string; currentModel: string; byoHistory: any[]; tools: any[]; systemInstruction: string; verbose: boolean; sessionTurns: number; apiKey: string | undefined; baseUrl: string | undefined; handleSigInt: () => void; toolState: ToolHandlerState; onCreditInfo: (remaining: number | null, limit: number | null) => void; } /** * Run one full agent turn. Returns the accumulated text response. */ export declare function runEngineLoop(opts: EngineRunOptions): Promise; //# sourceMappingURL=engineLoop.d.ts.map