Class: OpenAI::Models::ErrorObject::Misalignment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ErrorObject::Misalignment
- Defined in:
- lib/openai/models/error_object.rb,
sig/openai/models/error_object.rbs
Overview
Defined Under Namespace
Modules: ErrorType Classes: Steer
Instance Attribute Summary collapse
-
#detailed_explanation ⇒ String?
The public explanation for this block.
-
#error_type ⇒ OpenAI::Models::ErrorObject::Misalignment::error_type?
An optional classification; clients must accept additional values.
-
#review_target ⇒ String?
An opaque target for explicitly continuing this review, or null when unavailable.
-
#steer ⇒ OpenAI::ErrorObject::Misalignment::Steer?
An optional public continuation instruction.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(detailed_explanation: nil, error_type: nil, review_target: nil, steer: nil) ⇒ Misalignment
constructor
A new instance of Misalignment.
- #to_hash ⇒ { ?detailed_explanation: String, ?error_type: OpenAI::Models::ErrorObject::Misalignment::error_type, ?review_target: String?, ?steer: OpenAI::ErrorObject::Misalignment::Steer }
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(detailed_explanation: nil, error_type: nil, review_target: nil, steer: nil) ⇒ Misalignment
Returns a new instance of Misalignment.
|
|
# File 'lib/openai/models/error_object.rb', line 65
|
Instance Attribute Details
#detailed_explanation ⇒ String?
The public explanation for this block.
44 |
# File 'lib/openai/models/error_object.rb', line 44 optional :detailed_explanation, String |
#error_type ⇒ OpenAI::Models::ErrorObject::Misalignment::error_type?
An optional classification; clients must accept additional values.
50 |
# File 'lib/openai/models/error_object.rb', line 50 optional :error_type, union: -> { OpenAI::ErrorObject::Misalignment::ErrorType } |
#review_target ⇒ String?
An opaque target for explicitly continuing this review, or null when unavailable.
57 |
# File 'lib/openai/models/error_object.rb', line 57 optional :review_target, String, nil?: true |
#steer ⇒ OpenAI::ErrorObject::Misalignment::Steer?
An optional public continuation instruction.
63 |
# File 'lib/openai/models/error_object.rb', line 63 optional :steer, -> { OpenAI::ErrorObject::Misalignment::Steer } |
Instance Method Details
#to_hash ⇒ { ?detailed_explanation: String, ?error_type: OpenAI::Models::ErrorObject::Misalignment::error_type, ?review_target: String?, ?steer: OpenAI::ErrorObject::Misalignment::Steer }
94 95 96 97 98 99 |
# File 'sig/openai/models/error_object.rbs', line 94
def to_hash: -> {
?detailed_explanation: String,
?error_type: OpenAI::Models::ErrorObject::Misalignment::error_type,
?review_target: String?,
?steer: OpenAI::ErrorObject::Misalignment::Steer
}
|