Class: OpenAI::Models::Realtime::ConversationItemTruncateEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ConversationItemTruncateEvent
- Defined in:
- lib/openai/models/realtime/conversation_item_truncate_event.rb,
sig/openai/models/realtime/conversation_item_truncate_event.rbs
Instance Attribute Summary collapse
-
#audio_end_ms ⇒ Integer
Inclusive duration up to which audio is truncated, in milliseconds.
-
#content_index ⇒ Integer
The index of the content part to truncate.
-
#event_id ⇒ String?
Optional client-generated ID used to identify this event.
-
#item_id ⇒ String
The ID of the assistant message item to truncate.
-
#type ⇒ :"conversation.item.truncate"
The event type, must be
conversation.item.truncate.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(audio_end_ms:, content_index:, item_id:, event_id: nil, type: :"conversation.item.truncate") ⇒ ConversationItemTruncateEvent
constructor
A new instance of ConversationItemTruncateEvent.
- #to_hash ⇒ { audio_end_ms: Integer, content_index: Integer, item_id: String, ?type: :"conversation.item.truncate", ?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(audio_end_ms:, content_index:, item_id:, event_id: nil, type: :"conversation.item.truncate") ⇒ ConversationItemTruncateEvent
Returns a new instance of ConversationItemTruncateEvent.
|
|
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 40
|
Instance Attribute Details
#audio_end_ms ⇒ Integer
Inclusive duration up to which audio is truncated, in milliseconds. If the audio_end_ms is greater than the actual audio duration, the server will respond with an error.
13 |
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 13 required :audio_end_ms, Integer |
#content_index ⇒ Integer
The index of the content part to truncate. Set this to 0.
19 |
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 19 required :content_index, Integer |
#event_id ⇒ String?
Optional client-generated ID used to identify this event.
38 |
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 38 optional :event_id, String |
#item_id ⇒ String
The ID of the assistant message item to truncate. Only assistant message items can be truncated.
26 |
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 26 required :item_id, String |
#type ⇒ :"conversation.item.truncate"
The event type, must be conversation.item.truncate.
32 |
# File 'lib/openai/models/realtime/conversation_item_truncate_event.rb', line 32 required :type, const: :"conversation.item.truncate" |
Instance Method Details
#to_hash ⇒ { audio_end_ms: Integer, content_index: Integer, item_id: String, ?type: :"conversation.item.truncate", ?event_id: String }
56 57 58 59 60 61 62 |
# File 'sig/openai/models/realtime/conversation_item_truncate_event.rbs', line 56
def to_hash: -> {
audio_end_ms: Integer,
content_index: Integer,
item_id: String,
?type: :"conversation.item.truncate",
?event_id: String
}
|