Class: OpenAI::Models::ErrorObject::Misalignment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/error_object.rb,
sig/openai/models/error_object.rbs

Overview

See Also:

  • OpenAI::Models::ErrorObject#misalignment

Defined Under Namespace

Modules: ErrorType Classes: Steer

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

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(detailed_explanation: nil, error_type: nil, steer: nil) ⇒ Object

Parameters:



# File 'lib/openai/models/error_object.rb', line 58

Instance Attribute Details

#detailed_explanationString?

The public explanation for this block.

Parameters:

  • (String)

Returns:

  • (String, nil)


44
# File 'lib/openai/models/error_object.rb', line 44

optional :detailed_explanation, String

#error_typeString, ...

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 }

#steerOpenAI::Models::ErrorObject::Misalignment::Steer?

An optional public continuation instruction.



56
# File 'lib/openai/models/error_object.rb', line 56

optional :steer, -> { OpenAI::ErrorObject::Misalignment::Steer }

Instance Method Details

#to_hash{

Returns:

  • ({)


73
# File 'sig/openai/models/error_object.rbs', line 73

def to_hash: -> {