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

Example Usage

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

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

Fields

FieldTypeRequiredDescription
typemodels.ResponsesOutputItemFunctionCallType:heavy_check_mark:N/A
idstring:heavy_minus_sign:N/A
namestring:heavy_check_mark:N/A
argumentsstring:heavy_check_mark:N/A
callIdstring:heavy_check_mark:N/A
statusmodels.ResponsesOutputItemFunctionCallStatusUnion:heavy_minus_sign:N/A