Module: OpenAI::Models::Live::ClientEvent

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/live/client_event.rb,
sig/openai/models/live/client_event.rbs

Overview

Client events for Live. Initialize a primary WebSocket with session.start and wait for session.started. WebRTC creation already starts the session. Audio append is primary WebSocket-only. See the Live prompting guide before writing frontend instructions and delegation policies.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#self?.variants::Array[OpenAI::Models::Live::client_event]

Returns:

  • (::Array[OpenAI::Models::Live::client_event])


20
# File 'sig/openai/models/live/client_event.rbs', line 20

def self?.variants: -> ::Array[OpenAI::Models::Live::client_event]