Class: OpenAI::Models::Live::DecisionQuestion::Score
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DecisionQuestion::Score
- Defined in:
- lib/openai/models/live/decision_question.rb,
sig/openai/models/live/decision_question.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::Live::DecisionQuestion::Score::Level>
- #name ⇒ String?
- #type ⇒ Symbol, :score
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::Live::DecisionQuestion::Score::instructions, levels: ::Array[OpenAI::Live::DecisionQuestion::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/live/decision_question.rb', line 127
|
Instance Attribute Details
#instructions ⇒ String, Array<OpenAI::Models::DecisionQuestionInputText, OpenAI::Models::DecisionQuestionInputImage, OpenAI::Models::DecisionInputJSON>
110 |
# File 'lib/openai/models/live/decision_question.rb', line 110 required :instructions, union: -> { OpenAI::Live::DecisionQuestion::Score::Instructions } |
#levels ⇒ Array<OpenAI::Models::Live::DecisionQuestion::Score::Level>
115 |
# File 'lib/openai/models/live/decision_question.rb', line 115 required :levels, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Live::DecisionQuestion::Score::Level] } |
#name ⇒ String?
125 |
# File 'lib/openai/models/live/decision_question.rb', line 125 optional :name, String |
#type ⇒ Symbol, :score
120 |
# File 'lib/openai/models/live/decision_question.rb', line 120 required :type, const: :score |
Instance Method Details
#to_hash ⇒ { instructions: OpenAI::Models::Live::DecisionQuestion::Score::instructions, levels: ::Array[OpenAI::Live::DecisionQuestion::Score::Level], ?type: :score, ?name: String }
127 128 129 130 131 132 |
# File 'sig/openai/models/live/decision_question.rbs', line 127
def to_hash: -> {
instructions: OpenAI::Models::Live::DecisionQuestion::Score::instructions,
levels: ::Array[OpenAI::Live::DecisionQuestion::Score::Level],
?type: :score,
?name: String
}
|