Class: OpenAI::Models::Graders::LabelModelGrader
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Graders::LabelModelGrader
- Defined in:
- lib/openai/models/graders/label_model_grader.rb
Defined Under Namespace
Classes: Input
Instance Attribute Summary collapse
- #input ⇒ Array<OpenAI::Models::Graders::LabelModelGrader::Input>
-
#labels ⇒ Array<String>
The labels to assign to each item in the evaluation.
-
#model ⇒ String
The model to use for the evaluation.
-
#name ⇒ String
The name of the grader.
-
#passing_labels ⇒ Array<String>
The labels that indicate a passing result.
-
#type ⇒ Symbol, :label_model
The object type, which is always ‘label_model`.
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from OpenAI::Internal::Type::BaseModel
Instance Attribute Details
#input ⇒ Array<OpenAI::Models::Graders::LabelModelGrader::Input>
10 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 10 required :input, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Graders::LabelModelGrader::Input] } |
#labels ⇒ Array<String>
The labels to assign to each item in the evaluation.
16 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 16 required :labels, OpenAI::Internal::Type::ArrayOf[String] |
#model ⇒ String
The model to use for the evaluation. Must support structured outputs.
22 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 22 required :model, String |
#name ⇒ String
The name of the grader.
28 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 28 required :name, String |
#passing_labels ⇒ Array<String>
The labels that indicate a passing result. Must be a subset of labels.
34 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 34 required :passing_labels, OpenAI::Internal::Type::ArrayOf[String] |
#type ⇒ Symbol, :label_model
The object type, which is always ‘label_model`.
40 |
# File 'lib/openai/models/graders/label_model_grader.rb', line 40 required :type, const: :label_model |