The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatMessageToolCall } from "@openrouter/sdk/models";
let value: ChatMessageToolCall = {
id: "<id>",
type: "function",
function: {
name: "<value>",
arguments: "<value>",
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | :heavy_check_mark: | N/A |
type | ”function” | :heavy_check_mark: | N/A |
function | models.ChatMessageToolCallFunction | :heavy_check_mark: | N/A |