OpenAI::ResponseRefusalDeltaEvent
Inherits JSON::Serializable < Reference < Object
Emitted when there is a partial refusal text.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseRefusalDeltaEventType = ResponseRefusalDeltaEventType::ResponseRefusalDelta, item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, delta : String = "", sequence_number : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content_index=(content_index : Int64)
The index of the content part that the refusal text is added to.
output_index=(output_index : Int64)
The index of the output item that the refusal text is added to.
type_value=(type_value : ResponseRefusalDeltaEventType)
The type of the event. Always response.refusal.delta.