Class: OpenAI::Models::Graders::ScoreModelGrader
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Graders::ScoreModelGrader
- Defined in:
- lib/openai/models/graders/score_model_grader.rb
Direct Known Subclasses
EvalCreateParams::TestingCriterion::ScoreModel, EvalCreateResponse::TestingCriterion::EvalGraderScoreModel, EvalListResponse::TestingCriterion::EvalGraderScoreModel, EvalRetrieveResponse::TestingCriterion::EvalGraderScoreModel, EvalUpdateResponse::TestingCriterion::EvalGraderScoreModel
Defined Under Namespace
Classes: Input
Instance Attribute Summary collapse
-
#input ⇒ Array<OpenAI::Models::Graders::ScoreModelGrader::Input>
The input text.
-
#model ⇒ String
The model to use for the evaluation.
-
#name ⇒ String
The name of the grader.
-
#range ⇒ Array<Float>?
The range of the score.
-
#sampling_params ⇒ Object?
The sampling parameters for the model.
-
#type ⇒ Symbol, :score_model
The object type, which is always ‘score_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::ScoreModelGrader::Input>
The input text. This may include template strings.
11 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 11 required :input, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Graders::ScoreModelGrader::Input] } |
#model ⇒ String
The model to use for the evaluation.
17 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 17 required :model, String |
#name ⇒ String
The name of the grader.
23 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 23 required :name, String |
#range ⇒ Array<Float>?
The range of the score. Defaults to ‘[0, 1]`.
35 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 35 optional :range, OpenAI::Internal::Type::ArrayOf[Float] |
#sampling_params ⇒ Object?
The sampling parameters for the model.
41 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 41 optional :sampling_params, OpenAI::Internal::Type::Unknown |
#type ⇒ Symbol, :score_model
The object type, which is always ‘score_model`.
29 |
# File 'lib/openai/models/graders/score_model_grader.rb', line 29 required :type, const: :score_model |