OpenAI::ResponseTextDoneEvent
Inherits JSON::Serializable < Reference < Object
Emitted when text content is finalized.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseTextDoneEventType = ResponseTextDoneEventType::ResponseOutputTextDone, item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, text : String = "", sequence_number : Int64 = 0, logprobs : Array(ResponseLogProb) = [] of ResponseLogProb)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content_index=(content_index : Int64)
The index of the content part that the text content is finalized.
The log probabilities of the tokens in the delta.
output_index=(output_index : Int64)
The index of the output item that the text content is finalized.
type_value=(type_value : ResponseTextDoneEventType)
The type of the event. Always response.output_text.done.