ReasoningDoneEvent - TypeScript SDK

ReasoningDoneEvent type definition

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

Event emitted when reasoning text streaming is complete

Example Usage

1import { ReasoningDoneEvent } from "@openrouter/sdk/models";
2
3let value: ReasoningDoneEvent = {
4 contentIndex: 789397,
5 itemId: "<id>",
6 outputIndex: 602802,
7 sequenceNumber: 0,
8 text: "<value>",
9 type: "response.reasoning_text.done",
10};

Fields

FieldTypeRequiredDescription
contentIndexnumber✔️N/A
itemIdstring✔️N/A
outputIndexnumber✔️N/A
sequenceNumbernumber✔️N/A
textstring✔️N/A
type”response.reasoning_text.done”✔️N/A