Skip to content
Français

LoopTaskExhausted

import { LoopTaskExhausted } from "@elie-laloum/outpost/workflows";

Error recorded when the last permitted round fails verification. Inspect key, maxRounds and feedback through WorkflowResult.errors; resuming the same checkpoint does not reset the limit. The message quotes the first and last 1,000 characters of the last feedback, which a workflow masks with its redact patterns before cutting it; the feedback property keeps the full text.

Complete example and detailed rules.

  • keyRequired
    string
    Key of the loop task whose verification never succeeded.
  • maxRoundsRequired
    number
    Configured logical round limit reached by this loop.
  • feedbackRequired
    string
    Text returned by the last rejected verification.
  • nameRequired
    string
    Error class name used to distinguish this failure from other JavaScript errors.
  • messageRequired
    string
    Human-readable explanation of the failure.
  • stackOptional
    string | undefined
    JavaScript stack trace for the error, when available.
  • causeOptional
    unknown
    Underlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.
export declare class LoopTaskExhausted extends Error {
  readonly key: string;
  readonly maxRounds: number;
  readonly feedback: string;
  /** `shown` is the feedback quoted in the message, such as a redacted copy; it defaults to `feedback`. */
  constructor(key: string, maxRounds: number, feedback: string, shown?: string);
}