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
| Field | Type | Required | Description |
|---|---|---|---|
arguments | string | :heavy_check_mark: | N/A |
callId | string | :heavy_check_mark: | N/A |
id | string | :heavy_minus_sign: | N/A |
name | string | :heavy_check_mark: | N/A |
namespace | string | :heavy_minus_sign: | Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) |
status | models.OutputFunctionCallItemStatusUnion | :heavy_minus_sign: | N/A |
type | models.OutputFunctionCallItemType | :heavy_check_mark: | N/A |