Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Event emitted when a reasoning summary part is added

Example Usage

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

let value: ReasoningSummaryPartAddedEvent = {
  itemId: "<id>",
  outputIndex: 648271,
  part: {
    text: "Analyzed the problem using first principles",
    type: "summary_text",
  },
  sequenceNumber: 0,
  summaryIndex: 773896,
  type: "response.reasoning_summary_part.added",
};

Fields

FieldTypeRequiredDescriptionExample
itemIdstring:heavy_check_mark:N/A
outputIndexnumber:heavy_check_mark:N/A
partmodels.ReasoningSummaryText:heavy_check_mark:N/A{"text": "Analyzed the problem using first principles","type": "summary_text"}
sequenceNumbernumber:heavy_check_mark:N/A
summaryIndexnumber:heavy_check_mark:N/A
type”response.reasoning_summary_part.added”:heavy_check_mark:N/A