Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Event emitted when reasoning text streaming is complete

Example Usage

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

let value: ReasoningDoneEvent = {
  contentIndex: 789397,
  itemId: "<id>",
  outputIndex: 602802,
  sequenceNumber: 0,
  text: "<value>",
  type: "response.reasoning_text.done",
};

Fields

FieldTypeRequiredDescription
contentIndexnumber:heavy_check_mark:N/A
itemIdstring:heavy_check_mark:N/A
outputIndexnumber:heavy_check_mark:N/A
sequenceNumbernumber:heavy_check_mark:N/A
textstring:heavy_check_mark:N/A
type”response.reasoning_text.done”:heavy_check_mark:N/A