Skip to content
Français

ModelToolResultBlock

import type { ModelToolResultBlock } from "@elie-laloum/outpost";
  • typeRequired
    "tool-result"
    Block discriminator: tool-result.
  • callIdRequired
    string
    Identifier of the tool call this result answers.
  • contentRequired
    string
    Text returned to the model for this call.
  • isErrorOptional
    boolean | undefined
    Marks the result as a failed tool execution. Only Anthropic transmits it, as is_error; OpenAI protocols send the content alone.
export interface ModelToolResultBlock {
  readonly type: "tool-result";
  readonly callId: string;
  readonly content: string;
  readonly isError?: boolean;
}