class

OpenAI::ResponseRefusalDoneEvent

Inherits JSON::Serializable < Reference < Object

Emitted when refusal text is finalized.

Constructors

new(type_value : ResponseRefusalDoneEventType = ResponseRefusalDoneEventType::ResponseRefusalDone, item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, refusal : String = "", sequence_number : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content_index

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

Source
content_index=(content_index : Int64)

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

Source
item_id

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

Source
item_id=(item_id : String)

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

Source
output_index

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

Source
output_index=(output_index : Int64)

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

Source
refusal

The refusal text that is finalized.

Source
refusal=(refusal : String)

The refusal text that is finalized.

Source
sequence_number

The sequence number of this event.

Source
sequence_number=(sequence_number : Int64)

The sequence number of this event.

Source
type_value

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

Source
type_value=(type_value : ResponseRefusalDoneEventType)

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

Source