ServerEventResponseContentPartAdded interface

Returned when a new content part is added to an assistant message item during response generation.

Extends

Properties

contentIndex

The index of the content part in the item's content array.

itemId

The ID of the item to which the content part was added.

outputIndex

The index of the output item in the response.

part

The content part that was added.

responseId

The ID of the response.

type

The event type, must be response.content_part.added.

Inherited Properties

eventId

Property Details

contentIndex

The index of the content part in the item's content array.

contentIndex: number

Property Value

number

itemId

The ID of the item to which the content part was added.

itemId: string

Property Value

string

outputIndex

The index of the output item in the response.

outputIndex: number

Property Value

number

part

The content part that was added.

part: ContentPartUnion

Property Value

responseId

The ID of the response.

responseId: string

Property Value

string

type

The event type, must be response.content_part.added.

type: "response.content_part.added"

Property Value

"response.content_part.added"

Inherited Property Details

eventId

eventId?: string

Property Value

string

Inherited From ServerEvent.eventId