Class: OpenAI::Models::ErrorObject
Defined Under Namespace
Classes: Misalignment
Instance Attribute Summary collapse
#last_response
Instance Method Summary
collapse
==, #==, #[], #_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
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(code:, message:, param:, type:, misalignment: nil) ⇒ ErrorObject
Returns a new instance of ErrorObject.
|
# File 'lib/openai/models/error_object.rb', line 31
|
Instance Attribute Details
#code ⇒ String?
9
|
# File 'lib/openai/models/error_object.rb', line 9
required :code, String, nil?: true
|
#message ⇒ String
14
|
# File 'lib/openai/models/error_object.rb', line 14
required :message, String
|
29
|
# File 'lib/openai/models/error_object.rb', line 29
optional :misalignment, -> { OpenAI::ErrorObject::Misalignment }
|
#param ⇒ String?
19
|
# File 'lib/openai/models/error_object.rb', line 19
required :param, String, nil?: true
|
#type ⇒ String
24
|
# File 'lib/openai/models/error_object.rb', line 24
required :type, String
|
Instance Method Details
#to_hash ⇒ { code: String?, message: String, param: String?, type: String, ?misalignment: OpenAI::ErrorObject::Misalignment }
35
36
37
38
39
40
41
|
# File 'sig/openai/models/error_object.rbs', line 35
def to_hash: -> {
code: String?,
message: String,
param: String?,
type: String,
?misalignment: OpenAI::ErrorObject::Misalignment
}
|