CustomToolCallInputDeltaEvent - TypeScript SDK

CustomToolCallInputDeltaEvent type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Event emitted when a custom tool call’s freeform input is being streamed. Mirrors response.function_call_arguments.delta but for custom tools whose input is opaque text rather than JSON arguments.

Example Usage

1import { CustomToolCallInputDeltaEvent } from "@openrouter/sdk/models";
2
3let value: CustomToolCallInputDeltaEvent = {
4 delta: "<value>",
5 itemId: "<id>",
6 outputIndex: 992628,
7 sequenceNumber: 0,
8 type: "response.custom_tool_call_input.delta",
9};

Fields

FieldTypeRequiredDescription
deltastring✔️N/A
itemIdstring✔️N/A
outputIndexnumber✔️N/A
sequenceNumbernumber✔️N/A
type”response.custom_tool_call_input.delta”✔️N/A