Class: OpenAI::Models::Graders::ScoreModelGrader

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/graders/score_model_grader.rb

Defined Under Namespace

Classes: Input, SamplingParams

Instance Attribute Summary collapse

Class Method Summary collapse

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, meta_info, new_coerce_state, 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

#inputArray<OpenAI::Models::Graders::ScoreModelGrader::Input>

The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.



12
# File 'lib/openai/models/graders/score_model_grader.rb', line 12

required :input, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Graders::ScoreModelGrader::Input] }

#modelString

The model to use for the evaluation.



18
# File 'lib/openai/models/graders/score_model_grader.rb', line 18

required :model, String

#nameString

The name of the grader.



24
# File 'lib/openai/models/graders/score_model_grader.rb', line 24

required :name, String

#rangeArray<Float>?

The range of the score. Defaults to ‘[0, 1]`.



36
# File 'lib/openai/models/graders/score_model_grader.rb', line 36

optional :range, OpenAI::Internal::Type::ArrayOf[Float]

#sampling_paramsOpenAI::Models::Graders::ScoreModelGrader::SamplingParams?

The sampling parameters for the model.



42
# File 'lib/openai/models/graders/score_model_grader.rb', line 42

optional :sampling_params, -> { OpenAI::Graders::ScoreModelGrader::SamplingParams }

#typeSymbol, :score_model

The object type, which is always ‘score_model`.



30
# File 'lib/openai/models/graders/score_model_grader.rb', line 30

required :type, const: :score_model

Class Method Details

.valuesArray<Symbol>



# File 'lib/openai/models/graders/score_model_grader.rb', line 212