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 { OpenResponsesStreamEventResponseContentPartDone } from "@openrouter/sdk/models";

let value: OpenResponsesStreamEventResponseContentPartDone = {
  type: "response.content_part.done",
  outputIndex: 0,
  itemId: "item-1",
  contentIndex: 0,
  part: {
    type: "output_text",
    text: "Hello! How can I help you?",
  },
  sequenceNumber: 7,
};

Fields

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