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

Example Usage

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

let value: ContentPartDoneEvent = {
  contentIndex: 928075,
  itemId: "<id>",
  outputIndex: 289472,
  part: {
    text: "The capital of France is Paris.",
    type: "output_text",
  },
  sequenceNumber: 0,
  type: "response.content_part.done",
};

Fields

FieldTypeRequiredDescription
contentIndexnumber:heavy_check_mark:N/A
itemIdstring:heavy_check_mark:N/A
outputIndexnumber:heavy_check_mark:N/A
partmodels.ContentPartDoneEventPart:heavy_check_mark:N/A
sequenceNumbernumber:heavy_check_mark:N/A
type”response.content_part.done”:heavy_check_mark:N/A