Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { OutputFunctionCallItem } from "@openrouter/sdk/models";

let value: OutputFunctionCallItem = {
  arguments: "{\"location\":\"San Francisco\"}",
  callId: "call-abc123",
  name: "get_weather",
  type: "function_call",
};

Fields

FieldTypeRequiredDescription
argumentsstring:heavy_check_mark:N/A
callIdstring:heavy_check_mark:N/A
idstring:heavy_minus_sign:N/A
namestring:heavy_check_mark:N/A
namespacestring:heavy_minus_sign:Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
statusmodels.OutputFunctionCallItemStatusUnion:heavy_minus_sign:N/A
typemodels.OutputFunctionCallItemType:heavy_check_mark:N/A