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

Example Usage

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

let value: OpenResponsesStreamEventResponseContentPartAdded = {
  type: "response.content_part.added",
  outputIndex: 0,
  itemId: "item-1",
  contentIndex: 0,
  part: {
    type: "output_text",
    text: "",
  },
  sequenceNumber: 3,
};

Fields

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