Class: OpenAI::Models::Graders::MultiGrader
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Graders::MultiGrader
- Defined in:
- lib/openai/models/graders/multi_grader.rb
Defined Under Namespace
Modules: Graders
Instance Attribute Summary collapse
-
#calculate_output ⇒ String
A formula to calculate the output based on grader results.
-
#graders ⇒ OpenAI::Models::Graders::StringCheckGrader, ...
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
#name ⇒ String
The name of the grader.
-
#type ⇒ Symbol, :multi
The object type, which is always ‘multi`.
Instance Method Summary collapse
-
#initialize(calculate_output: , graders: , name: , type: :multi) ⇒ Object
constructor
Some parameter documentations has been truncated, see MultiGrader for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, 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(calculate_output: , graders: , name: , type: :multi) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Graders::MultiGrader for more details.
A MultiGrader object combines the output of multiple graders to produce a single score.
|
# File 'lib/openai/models/graders/multi_grader.rb', line 32
|
Instance Attribute Details
#calculate_output ⇒ String
A formula to calculate the output based on grader results.
11 |
# File 'lib/openai/models/graders/multi_grader.rb', line 11 required :calculate_output, String |
#graders ⇒ OpenAI::Models::Graders::StringCheckGrader, ...
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
18 |
# File 'lib/openai/models/graders/multi_grader.rb', line 18 required :graders, union: -> { OpenAI::Graders::MultiGrader::Graders } |
#name ⇒ String
The name of the grader.
24 |
# File 'lib/openai/models/graders/multi_grader.rb', line 24 required :name, String |
#type ⇒ Symbol, :multi
The object type, which is always ‘multi`.
30 |
# File 'lib/openai/models/graders/multi_grader.rb', line 30 required :type, const: :multi |