ContentPartDoneEvent - TypeScript SDK

ContentPartDoneEvent type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Event emitted when a content part is complete

Example Usage

1import { ContentPartDoneEvent } from "@openrouter/sdk/models";
2
3let value: ContentPartDoneEvent = {
4 contentIndex: 928075,
5 itemId: "<id>",
6 outputIndex: 289472,
7 part: {
8 text: "The capital of France is Paris.",
9 type: "output_text",
10 },
11 sequenceNumber: 0,
12 type: "response.content_part.done",
13};

Fields

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