OpenAI::RealtimeServerEventResponseDone
Inherits JSON::Serializable < Reference < Object
Returned when a Response is done streaming. Always emitted, no matter the
final state. The Response object included in the response.done event will
include all output Items in the Response but will omit the raw audio data.
Clients should check the status field of the Response to determine if it was successful
(completed) or if there was another outcome: cancelled, failed, or incomplete.
A response will contain all output items that were generated during the response, excluding any audio content.
Constructors
new(pull : JSON::PullParser)
Sourcenew(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, response : RealtimeResponse = RealtimeResponse.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
response
Sourceresponse=(response : RealtimeResponse)
Source