Class: OpenAI::Models::Realtime::RealtimeError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeError
- Defined in:
- lib/openai/models/realtime/realtime_error.rb,
sig/openai/models/realtime/realtime_error.rbs
Instance Attribute Summary collapse
-
#code ⇒ String?
Error code, if any.
-
#event_id ⇒ String?
The event_id of the client event that caused the error, if applicable.
-
#message ⇒ String
A human-readable error message.
-
#param ⇒ String?
Parameter related to the error, if any.
-
#type ⇒ String
The type of error (e.g., "invalid_request_error", "server_error").
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(message:, type:, code: nil, event_id: nil, param: nil) ⇒ RealtimeError
constructor
A new instance of RealtimeError.
- #to_hash ⇒ { message: String, type: String, ?code: String?, ?event_id: String?, ?param: 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(message:, type:, code: nil, event_id: nil, param: nil) ⇒ RealtimeError
Returns a new instance of RealtimeError.
|
|
# File 'lib/openai/models/realtime/realtime_error.rb', line 37
|
Instance Attribute Details
#code ⇒ String?
Error code, if any.
23 |
# File 'lib/openai/models/realtime/realtime_error.rb', line 23 optional :code, String, nil?: true |
#event_id ⇒ String?
The event_id of the client event that caused the error, if applicable.
29 |
# File 'lib/openai/models/realtime/realtime_error.rb', line 29 optional :event_id, String, nil?: true |
#message ⇒ String
A human-readable error message.
11 |
# File 'lib/openai/models/realtime/realtime_error.rb', line 11 required :message, String |
#param ⇒ String?
Parameter related to the error, if any.
35 |
# File 'lib/openai/models/realtime/realtime_error.rb', line 35 optional :param, String, nil?: true |
#type ⇒ String
The type of error (e.g., "invalid_request_error", "server_error").
17 |
# File 'lib/openai/models/realtime/realtime_error.rb', line 17 required :type, String |
Instance Method Details
#to_hash ⇒ { message: String, type: String, ?code: String?, ?event_id: String?, ?param: String? }
47 48 49 50 51 52 53 |
# File 'sig/openai/models/realtime/realtime_error.rbs', line 47
def to_hash: -> {
message: String,
type: String,
?code: String?,
?event_id: String?,
?param: String?
}
|