The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ChatStreamToolCall } from "@openrouter/sdk/models";
let value: ChatStreamToolCall = {
index: 0,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
function | models.ChatStreamToolCallFunction | :heavy_minus_sign: | Function call details | |
id | string | :heavy_minus_sign: | Tool call identifier | call_abc123 |
index | number | :heavy_check_mark: | Tool call index in the array | 0 |
type | models.ChatStreamToolCallType | :heavy_minus_sign: | Tool call type | function |