import { EngineError } from "./engine/types.js"; import type { AgentLoopContinuationReason, AgentLoopUsage } from "./production-agent.js"; export declare const RUN_BUDGET_EXHAUSTED_ERROR_CODE = "run_budget_exhausted"; export declare const RUN_BUDGET_EXHAUSTED_MESSAGE: string; export declare const RUN_CONTINUATION_LIMIT_EXHAUSTED_MESSAGE: string; export declare const RUN_STREAM_ENDED_ERROR_CODE = "agent_run_stream_ended"; export declare const RUN_STREAM_ENDED_MESSAGE = "The model stream ended before the agent finished the response."; export declare const RUN_TIMEOUT_MESSAGE = "The run reached its time limit before the agent finished."; export declare const RUN_LOOP_LIMIT_MESSAGE = "The agent reached its internal step limit before finishing."; export declare const RUN_NO_PROGRESS_MESSAGE = "The agent stopped making progress before finishing."; export declare const RUN_GATEWAY_TIMEOUT_MESSAGE = "The AI gateway timed out before the agent finished."; export declare const RUN_NETWORK_INTERRUPTED_MESSAGE = "The connection to the AI provider was interrupted before the agent finished."; export declare const RUN_RATE_LIMITED_MESSAGE = "The AI provider is rate limiting requests right now. Wait a minute and try again."; export declare const AGENT_RUN_NO_OUTPUT_ERROR_CODE = "agent_run_no_output"; export declare const AGENT_RUN_NO_OUTPUT_MESSAGE = "The agent run ended without producing a response."; export declare function incompleteAgentRunFailure(input: { dispatchedModelCalls: number; hasVisibleText: boolean; hasSuccessfulToolOutput: boolean; reason?: "continuation_limit" | Exclude; }): { code: string; message: string; }; export declare class IncompleteAgentRunError extends EngineError { readonly usage: AgentLoopUsage; constructor(failure: { code: string; message: string; }, usage: AgentLoopUsage); }