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

let value: ContentPartAddedEvent = {
  contentIndex: 286298,
  itemId: "<id>",
  outputIndex: 549137,
  part: {
    text: "The capital of France is Paris.",
    type: "output_text",
  },
  sequenceNumber: 0,
  type: "response.content_part.added",
};

Fields

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