import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { SupervisorFailedError } from "./supervisor-failed-error.mjs"; //#region ../ai/src/errors/supervisor-cancelled-error.d.ts type SupervisorCancelledErrorOptions = AIErrorOptions & { /** ISO-8601 timestamp at which the abort was observed by the supervisor. */cancelledAt: string; /** `controller.abort(reason)` payload when the caller supplied one. */ reason?: string; }; /** * Supervisor run was cancelled via `AbortSignal` before it could * finish. Between-iteration cancellation is guaranteed; mid-iteration * cancellation is best-effort (the signal is also threaded into every * in-flight child `execute()` call, but effectiveness depends on the * child primitive respecting it). * * On cancellation the supervisor returns normally with `status: * "cancelled"` and partial `report.snapshots` — the error is placed * on `result.error` rather than thrown. */ declare class SupervisorCancelledError extends SupervisorFailedError { static readonly defaultCategory: ErrorCategory; readonly cancelledAt: string; readonly reason?: string; constructor(message: string, options: SupervisorCancelledErrorOptions); } //#endregion export { SupervisorCancelledError, SupervisorCancelledErrorOptions }; //# sourceMappingURL=supervisor-cancelled-error.d.mts.map