Class: OpenAI::Models::Realtime::TranscriptionSessionUpdatedEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::TranscriptionSessionUpdatedEvent
- Defined in:
- lib/openai/models/realtime/transcription_session_updated_event.rb,
sig/openai/models/realtime/transcription_session_updated_event.rbs
Defined Under Namespace
Classes: Session
Instance Attribute Summary collapse
-
#event_id ⇒ String
The unique ID of the server event.
-
#session ⇒ OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session
A new Realtime transcription session configuration.
-
#type ⇒ :"transcription_session.updated"
The event type, must be
transcription_session.updated.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(event_id:, session:, type: :"transcription_session.updated") ⇒ TranscriptionSessionUpdatedEvent
constructor
A new instance of TranscriptionSessionUpdatedEvent.
- #to_hash ⇒ { event_id: String, session: OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session, ?type: :"transcription_session.updated" }
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(event_id:, session:, type: :"transcription_session.updated") ⇒ TranscriptionSessionUpdatedEvent
Returns a new instance of TranscriptionSessionUpdatedEvent.
|
|
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 29
|
Instance Attribute Details
#event_id ⇒ String
The unique ID of the server event.
11 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 11 required :event_id, String |
#session ⇒ OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session
A new Realtime transcription session configuration.
When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is 10 minutes. This property is not present when a session is updated via the WebSocket API.
21 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 21 required :session, -> { OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session } |
#type ⇒ :"transcription_session.updated"
The event type, must be transcription_session.updated.
27 |
# File 'lib/openai/models/realtime/transcription_session_updated_event.rb', line 27 required :type, const: :"transcription_session.updated" |
Instance Method Details
#to_hash ⇒ { event_id: String, session: OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session, ?type: :"transcription_session.updated" }
41 42 43 44 45 |
# File 'sig/openai/models/realtime/transcription_session_updated_event.rbs', line 41
def to_hash: -> {
event_id: String,
session: OpenAI::Realtime::TranscriptionSessionUpdatedEvent::Session,
?type: :"transcription_session.updated"
}
|