Skip to content
Français

LoopCheckResult

import type { LoopCheckResult } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • doneRequired
    true | false
    True accepts this candidate and completes the loop; false advances to another round if the limit permits.
  • feedbackVariant-dependent
    string
    Required text when done is false, passed unchanged to the next attempt and preserved on exhaustion.
export type LoopCheckResult =
  | {
      readonly done: true;
    }
  | {
      readonly done: false;
      readonly feedback: string;
    };