Skip to content
Français

ToolOutput

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

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

  • contentVariant-dependent
    string
    Text returned to the model for the call.
  • isErrorVariant-dependent
    boolean | undefined
    Report the call as failed so the model can recover.
export type ToolOutput =
  | string
  | {
      readonly content: string;
      readonly isError?: boolean;
    };