The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatToolCall } from "@openrouter/sdk/models";
let value: ChatToolCall = {
function: {
arguments: "{\"location\": \"Boston, MA\"}",
name: "get_current_weather",
},
id: "call_abc123",
type: "function",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
function | models.ChatToolCallFunction | :heavy_check_mark: | N/A |
id | string | :heavy_check_mark: | Tool call identifier |
type | models.ChatToolCallType | :heavy_check_mark: | N/A |