Class: OpenAI::Models::Live::SessionStartEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::SessionStartEvent
- Defined in:
- lib/openai/models/live/session_start_event.rb,
sig/openai/models/live/session_start_event.rbs
Instance Attribute Summary collapse
-
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
-
#session ⇒ OpenAI::Live::SessionConfig
Initial configuration for a primary WebSocket.
-
#type ⇒ :"session.start"
The Live client event type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(session:, event_id: nil, type: :"session.start") ⇒ SessionStartEvent
constructor
A new instance of SessionStartEvent.
- #to_hash ⇒ { session: OpenAI::Live::SessionConfig, ?type: :"session.start", ?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(session:, event_id: nil, type: :"session.start") ⇒ SessionStartEvent
Returns a new instance of SessionStartEvent.
|
|
# File 'lib/openai/models/live/session_start_event.rb', line 28
|
Instance Attribute Details
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
26 |
# File 'lib/openai/models/live/session_start_event.rb', line 26 optional :event_id, String, nil?: true |
#session ⇒ OpenAI::Live::SessionConfig
Initial configuration for a primary WebSocket. Send session.start first and wait for session.started before application commands. WebRTC creation already starts the session; do not send this event again on its data channel.
13 |
# File 'lib/openai/models/live/session_start_event.rb', line 13 required :session, -> { OpenAI::Live::SessionConfig } |
#type ⇒ :"session.start"
The Live client event type. Always session.start.
19 |
# File 'lib/openai/models/live/session_start_event.rb', line 19 required :type, const: :"session.start" |
Instance Method Details
#to_hash ⇒ { session: OpenAI::Live::SessionConfig, ?type: :"session.start", ?event_id: String? }
39 40 41 42 43 |
# File 'sig/openai/models/live/session_start_event.rbs', line 39
def to_hash: -> {
session: OpenAI::Live::SessionConfig,
?type: :"session.start",
?event_id: String?
}
|