Class: OpenAI::Models::Live::ServerEvent::TransportFailed::Error
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ServerEvent::TransportFailed::Error
- Defined in:
- lib/openai/models/live/server_event.rb,
sig/openai/models/live/server_event.rbs
Overview
Instance Attribute Summary collapse
-
#code ⇒ String
The call setup failure code.
- #message ⇒ String
-
#param ⇒ String?
The parameter related to the error, if any.
- #type ⇒ Symbol, :call_error
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
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_with_error, 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(code:, message:, param: nil, type: :call_error) ⇒ Object
|
|
# File 'lib/openai/models/live/server_event.rb', line 277
|
Instance Attribute Details
#code ⇒ String
The call setup failure code.
259 |
# File 'lib/openai/models/live/server_event.rb', line 259 required :code, String |
#message ⇒ String
264 |
# File 'lib/openai/models/live/server_event.rb', line 264 required :message, String |
#param ⇒ String?
The parameter related to the error, if any. Empty when no parameter applies.
275 |
# File 'lib/openai/models/live/server_event.rb', line 275 optional :param, String |
#type ⇒ Symbol, :call_error
269 |
# File 'lib/openai/models/live/server_event.rb', line 269 required :type, const: :call_error |
Instance Method Details
#to_hash ⇒ {
199 |
# File 'sig/openai/models/live/server_event.rbs', line 199
def to_hash: -> {
|