Class: OpenAI::Models::Realtime::RealtimeErrorEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_error_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, 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(error:, event_id:, type: :error) ⇒ Object

Returned when an error occurs, which could be a client problem or a server problem. Most errors are recoverable and the session will stay open, we recommend to implementors to monitor and log error messages by default.



# File 'lib/openai/models/realtime/realtime_error_event.rb', line 25


Instance Attribute Details

#errorOpenAI::Models::Realtime::RealtimeError

Details of the error.



11
# File 'lib/openai/models/realtime/realtime_error_event.rb', line 11

required :error, -> { OpenAI::Realtime::RealtimeError }

#event_idString

The unique ID of the server event.



17
# File 'lib/openai/models/realtime/realtime_error_event.rb', line 17

required :event_id, String

#typeSymbol, :error

The event type, must be error.



23
# File 'lib/openai/models/realtime/realtime_error_event.rb', line 23

required :type, const: :error