Class: OpenAI::Models::Realtime::ConversationItemRetrieveEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ConversationItemRetrieveEvent
- Defined in:
- lib/openai/models/realtime/conversation_item_retrieve_event.rb,
sig/openai/models/realtime/conversation_item_retrieve_event.rbs
Instance Attribute Summary collapse
-
#event_id ⇒ String?
Optional client-generated ID used to identify this event.
-
#item_id ⇒ String
The ID of the item to retrieve.
-
#type ⇒ :"conversation.item.retrieve"
The event type, must be
conversation.item.retrieve.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(item_id:, event_id: nil, type: :"conversation.item.retrieve") ⇒ ConversationItemRetrieveEvent
constructor
A new instance of ConversationItemRetrieveEvent.
- #to_hash ⇒ { item_id: String, ?type: :"conversation.item.retrieve", ?event_id: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(item_id:, event_id: nil, type: :"conversation.item.retrieve") ⇒ ConversationItemRetrieveEvent
Returns a new instance of ConversationItemRetrieveEvent.
|
|
# File 'lib/openai/models/realtime/conversation_item_retrieve_event.rb', line 25
|
Instance Attribute Details
#event_id ⇒ String?
Optional client-generated ID used to identify this event.
23 |
# File 'lib/openai/models/realtime/conversation_item_retrieve_event.rb', line 23 optional :event_id, String |
#item_id ⇒ String
The ID of the item to retrieve.
11 |
# File 'lib/openai/models/realtime/conversation_item_retrieve_event.rb', line 11 required :item_id, String |
#type ⇒ :"conversation.item.retrieve"
The event type, must be conversation.item.retrieve.
17 |
# File 'lib/openai/models/realtime/conversation_item_retrieve_event.rb', line 17 required :type, const: :"conversation.item.retrieve" |
Instance Method Details
#to_hash ⇒ { item_id: String, ?type: :"conversation.item.retrieve", ?event_id: String }
36 37 38 39 40 |
# File 'sig/openai/models/realtime/conversation_item_retrieve_event.rbs', line 36
def to_hash: -> {
item_id: String,
?type: :"conversation.item.retrieve",
?event_id: String
}
|