import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { AgentExecutionError } from "./agent-execution-error.mjs"; //#region ../ai/src/errors/agent-drift-error.d.ts type AgentDriftErrorOptions = AIErrorOptions & { /** Signature recorded on the snapshot being resumed. */savedSignature: string; /** Signature computed from the current agent definition. */ currentSignature: string; runId: string; }; /** * `agent.resume(runId)` loaded a durable snapshot whose structural * fingerprint does not match the current agent definition (model + * provider + sorted tool names + maxTrips + output presence + version). * The resume is refused — no trip runs — and the user decides how to * recover: discard the snapshot, migrate manually, or call * `resume(runId, { force: true })` to bypass the check. * * Mirrors `SupervisorDriftError` / `WorkflowDriftError` — same rationale, * different primitive. Thrown (not returned on `result.error`) because a * drifted resume never produces a valid run. */ declare class AgentDriftError extends AgentExecutionError { static readonly defaultCategory: ErrorCategory; readonly savedSignature: string; readonly currentSignature: string; readonly runId: string; constructor(message: string, options: AgentDriftErrorOptions); } //#endregion export { AgentDriftError, AgentDriftErrorOptions }; //# sourceMappingURL=agent-drift-error.d.mts.map