Emitted when a content part is done.

interface ResponseContentPartDoneEvent {
    content_index: number;
    item_id: string;
    output_index: number;
    part: ResponseOutputRefusal | ResponseOutputText;
    type: "response.content_part.done";
}

Properties

content_index: number

The index of the content part that is done.

item_id: string

The ID of the output item that the content part was added to.

output_index: number

The index of the output item that the content part was added to.

The content part that is done.

type: "response.content_part.done"

The type of the event. Always response.content_part.done.