Class: OpenAI::Models::Realtime::ResponseContentPartDoneEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ResponseContentPartDoneEvent
- Defined in:
- lib/openai/models/realtime/response_content_part_done_event.rb
Defined Under Namespace
Classes: Part
Instance Attribute Summary collapse
-
#content_index ⇒ Integer
The index of the content part in the item’s content array.
-
#event_id ⇒ String
The unique ID of the server event.
-
#item_id ⇒ String
The ID of the item.
-
#output_index ⇒ Integer
The index of the output item in the response.
-
#part ⇒ OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part
The content part that is done.
-
#response_id ⇒ String
The ID of the response.
-
#type ⇒ Symbol, :"response.content_part.done"
The event type, must be ‘response.content_part.done`.
Instance Method Summary collapse
-
#initialize(content_index:, event_id:, item_id:, output_index:, part:, response_id:, type: :"response.content_part.done") ⇒ Object
constructor
Returned when a content part is done streaming in an assistant message item.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(content_index:, event_id:, item_id:, output_index:, part:, response_id:, type: :"response.content_part.done") ⇒ Object
Returned when a content part is done streaming in an assistant message item. Also emitted when a Response is interrupted, incomplete, or cancelled.
|
|
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 49
|
Instance Attribute Details
#content_index ⇒ Integer
The index of the content part in the item’s content array.
11 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 11 required :content_index, Integer |
#event_id ⇒ String
The unique ID of the server event.
17 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 17 required :event_id, String |
#item_id ⇒ String
The ID of the item.
23 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 23 required :item_id, String |
#output_index ⇒ Integer
The index of the output item in the response.
29 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 29 required :output_index, Integer |
#part ⇒ OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part
The content part that is done.
35 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 35 required :part, -> { OpenAI::Realtime::ResponseContentPartDoneEvent::Part } |
#response_id ⇒ String
The ID of the response.
41 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 41 required :response_id, String |
#type ⇒ Symbol, :"response.content_part.done"
The event type, must be ‘response.content_part.done`.
47 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 47 required :type, const: :"response.content_part.done" |