Skip to content
Français

ToolValidation

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

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

  • valueVariant-dependent
    Input
    Validated input passed to execute.
  • issuesVariant-dependent
    string
    Readable validation problems returned to the model as an error result.
export type ToolValidation<Input> =
  | {
      readonly value: Input;
    }
  | {
      readonly issues: string;
    };