Class: OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel
- Defined in:
- lib/openai/models/eval_create_params.rb
Defined Under Namespace
Modules: Input
Instance Attribute Summary collapse
-
#input ⇒ Array<OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::SimpleInputMessage, OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem>
A list of chat messages forming the prompt or context.
-
#labels ⇒ Array<String>
The labels to classify 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`.
Instance Method Summary collapse
-
#initialize(input: , labels: , model: , name: , passing_labels: , type: :label_model) ⇒ Object
constructor
Some parameter documentations has been truncated, see LabelModel 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(input: , labels: , model: , name: , passing_labels: , type: :label_model) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel for more details.
A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
|
# File 'lib/openai/models/eval_create_params.rb', line 228
|
Instance Attribute Details
#input ⇒ Array<OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::SimpleInputMessage, OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem>
A list of chat messages forming the prompt or context. May include variable references to the ‘item` namespace, ie OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel.{item{item.name}.
193 194 195 196 |
# File 'lib/openai/models/eval_create_params.rb', line 193 required :input, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::EvalCreateParams::TestingCriterion::LabelModel::Input] } |
#labels ⇒ Array<String>
The labels to classify to each item in the evaluation.
202 |
# File 'lib/openai/models/eval_create_params.rb', line 202 required :labels, OpenAI::Internal::Type::ArrayOf[String] |
#model ⇒ String
The model to use for the evaluation. Must support structured outputs.
208 |
# File 'lib/openai/models/eval_create_params.rb', line 208 required :model, String |
#name ⇒ String
The name of the grader.
214 |
# File 'lib/openai/models/eval_create_params.rb', line 214 required :name, String |
#passing_labels ⇒ Array<String>
The labels that indicate a passing result. Must be a subset of labels.
220 |
# File 'lib/openai/models/eval_create_params.rb', line 220 required :passing_labels, OpenAI::Internal::Type::ArrayOf[String] |
#type ⇒ Symbol, :label_model
The object type, which is always ‘label_model`.
226 |
# File 'lib/openai/models/eval_create_params.rb', line 226 required :type, const: :label_model |