import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { SupervisorFailedError } from "./supervisor-failed-error.mjs"; //#region ../ai/src/errors/max-iterations-error.d.ts type MaxIterationsErrorOptions = AIErrorOptions & { maxIterations: number; }; /** * Hard-cap guard: the supervisor ran `maxIterations` loop turns * without reaching a terminal decision (`END`, `satisfied: true`, or * cancellation). Terminates the run immediately with a typed error on * `result.error` — partial per-iteration snapshots are still * available on `result.report.snapshots`. * * @example * const { error, report } = await supervisor.execute(input); * if (error?.code === "SUPERVISOR_MAX_ITERATIONS") { * logger.warn("supervisor did not converge", { * iterations: report.iterations, * }); * } */ declare class MaxIterationsError extends SupervisorFailedError { static readonly defaultCategory: ErrorCategory; readonly maxIterations: number; constructor(message: string, options: MaxIterationsErrorOptions); } //#endregion export { MaxIterationsError, MaxIterationsErrorOptions }; //# sourceMappingURL=max-iterations-error.d.mts.map