Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Tool call delta for streaming responses

Example Usage

import { ChatStreamToolCall } from "@openrouter/sdk/models";

let value: ChatStreamToolCall = {
  index: 0,
};

Fields

FieldTypeRequiredDescriptionExample
functionmodels.ChatStreamToolCallFunction:heavy_minus_sign:Function call details
idstring:heavy_minus_sign:Tool call identifiercall_abc123
indexnumber:heavy_check_mark:Tool call index in the array0
typemodels.ChatStreamToolCallType:heavy_minus_sign:Tool call typefunction