Emitted when refusal text is finalized.

interface ResponseRefusalDoneEvent {
    content_index: number;
    item_id: string;
    output_index: number;
    refusal: string;
    type: "response.refusal.done";
}

Properties

content_index: number

The index of the content part that the refusal text is finalized.

item_id: string

The ID of the output item that the refusal text is finalized.

output_index: number

The index of the output item that the refusal text is finalized.

refusal: string

The refusal text that is finalized.

type: "response.refusal.done"

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