Class: OpenAI::Models::Realtime::ConversationItemTruncatedEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ConversationItemTruncatedEvent
- Defined in:
- lib/openai/models/realtime/conversation_item_truncated_event.rb,
sig/openai/models/realtime/conversation_item_truncated_event.rbs
Instance Attribute Summary collapse
-
#audio_end_ms ⇒ Integer
The duration up to which the audio was truncated, in milliseconds.
-
#content_index ⇒ Integer
The index of the content part that was truncated.
-
#event_id ⇒ String
The unique ID of the server event.
-
#item_id ⇒ String
The ID of the assistant message item that was truncated.
-
#type ⇒ :"conversation.item.truncated"
The event type, must be
conversation.item.truncated.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(audio_end_ms:, content_index:, event_id:, item_id:, type: :"conversation.item.truncated") ⇒ ConversationItemTruncatedEvent
constructor
A new instance of ConversationItemTruncatedEvent.
- #to_hash ⇒ { audio_end_ms: Integer, content_index: Integer, event_id: String, item_id: String, ?type: :"conversation.item.truncated" }
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(audio_end_ms:, content_index:, event_id:, item_id:, type: :"conversation.item.truncated") ⇒ ConversationItemTruncatedEvent
Returns a new instance of ConversationItemTruncatedEvent.
|
|
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 37
|
Instance Attribute Details
#audio_end_ms ⇒ Integer
The duration up to which the audio was truncated, in milliseconds.
11 |
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 11 required :audio_end_ms, Integer |
#content_index ⇒ Integer
The index of the content part that was truncated.
17 |
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 17 required :content_index, Integer |
#event_id ⇒ String
The unique ID of the server event.
23 |
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 23 required :event_id, String |
#item_id ⇒ String
The ID of the assistant message item that was truncated.
29 |
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 29 required :item_id, String |
#type ⇒ :"conversation.item.truncated"
The event type, must be conversation.item.truncated.
35 |
# File 'lib/openai/models/realtime/conversation_item_truncated_event.rb', line 35 required :type, const: :"conversation.item.truncated" |
Instance Method Details
#to_hash ⇒ { audio_end_ms: Integer, content_index: Integer, event_id: String, item_id: String, ?type: :"conversation.item.truncated" }
47 48 49 50 51 52 53 |
# File 'sig/openai/models/realtime/conversation_item_truncated_event.rbs', line 47
def to_hash: -> {
audio_end_ms: Integer,
content_index: Integer,
event_id: String,
item_id: String,
?type: :"conversation.item.truncated"
}
|