Skip to content
Français

ModelToolCallBlock

import type { ModelToolCallBlock } from "@elie-laloum/outpost";
  • typeRequired
    "tool-call"
    Block discriminator: tool-call.
  • idRequired
    string
    Service-issued call identifier that the matching tool result must reference.
  • nameRequired
    string
    Name of the requested tool, as declared in the request tools.
  • inputRequired
    unknown
    Parsed tool arguments. When the service returns invalid JSON, the raw string is kept so the caller can report the error to the model.
export interface ModelToolCallBlock {
  readonly type: "tool-call";
  readonly id: string;
  readonly name: string;
  readonly input: unknown;
}