Class: OpenAI::Models::DecisionCreateParams::Question::Score
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::DecisionCreateParams::Question::Score
- Defined in:
- lib/openai/models/decision_create_params.rb,
sig/openai/models/decision_create_params.rbs
Defined Under Namespace
Modules: Instructions Classes: Level
Instance Attribute Summary collapse
- #instructions ⇒ String, Array<OpenAI::Models::DecisionQuestionInputText, OpenAI::Models::DecisionQuestionInputImage, OpenAI::Models::DecisionInputJSON>
- #levels ⇒ Array<OpenAI::Models::DecisionCreateParams::Question::Score::Level>
- #name ⇒ String?
-
#type ⇒ :score
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(instructions:, levels:, name: nil, type: :score) ⇒ Score
constructor
A new instance of Score.
- #to_hash ⇒ { instructions: OpenAI::Models::DecisionCreateParams::Question::Score::instructions, levels: ::Array[OpenAI::DecisionCreateParams::Question::Score::Level], ?type: :score, ?name: 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(instructions:, levels:, name: nil, type: :score) ⇒ Score
Returns a new instance of Score.
|
|
# File 'lib/openai/models/decision_create_params.rb', line 1003
|
Instance Attribute Details
#instructions ⇒ String, Array<OpenAI::Models::DecisionQuestionInputText, OpenAI::Models::DecisionQuestionInputImage, OpenAI::Models::DecisionInputJSON>
982 |
# File 'lib/openai/models/decision_create_params.rb', line 982 required :instructions, union: -> { OpenAI::DecisionCreateParams::Question::Score::Instructions } |
#levels ⇒ Array<OpenAI::Models::DecisionCreateParams::Question::Score::Level>
987 988 989 990 |
# File 'lib/openai/models/decision_create_params.rb', line 987 required( :levels, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::DecisionCreateParams::Question::Score::Level] } ) |
#name ⇒ String?
1001 |
# File 'lib/openai/models/decision_create_params.rb', line 1001 optional :name, String |
#type ⇒ :score
The type of the object. Always score.
996 |
# File 'lib/openai/models/decision_create_params.rb', line 996 required :type, const: :score |
Instance Method Details
#to_hash ⇒ { instructions: OpenAI::Models::DecisionCreateParams::Question::Score::instructions, levels: ::Array[OpenAI::DecisionCreateParams::Question::Score::Level], ?type: :score, ?name: String }
890 891 892 893 894 895 |
# File 'sig/openai/models/decision_create_params.rbs', line 890
def to_hash: -> {
instructions: OpenAI::Models::DecisionCreateParams::Question::Score::instructions,
levels: ::Array[OpenAI::DecisionCreateParams::Question::Score::Level],
?type: :score,
?name: String
}
|