OpenAI::RealtimeBetaServerEventResponseContentPartDone
Inherits JSON::Serializable < Reference < Object
Returned when a content part is done streaming in an assistant message item. Also emitted when a Response is interrupted, incomplete, or cancelled.
Constructors
new(pull : JSON::PullParser)
Sourcenew(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, response_id : String = "", item_id : String = "", output_index : Int64 = 0, content_index : Int64 = 0, part : RealtimeBetaServerEventResponseContentPartDonePart = RealtimeBetaServerEventResponseContentPartDonePart.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content_index=(content_index : Int64)
The index of the content part in the item's content array.
part=(part : RealtimeBetaServerEventResponseContentPartDonePart)
The content part that is done.