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
| Field | Type | Required | Description |
|---|---|---|---|
type | models.ResponsesOutputItemFunctionCallType | :heavy_check_mark: | N/A |
id | string | :heavy_minus_sign: | N/A |
name | string | :heavy_check_mark: | N/A |
arguments | string | :heavy_check_mark: | N/A |
callId | string | :heavy_check_mark: | N/A |
status | models.ResponsesOutputItemFunctionCallStatusUnion | :heavy_minus_sign: | N/A |