Class: OpenAI::Models::Graders::LabelModelGrader

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

Defined Under Namespace

Classes: Input

Instance Attribute Summary collapse

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

#inputArray<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] }

#labelsArray<String>

The labels to assign to each item in the evaluation.

Returns:

  • (Array<String>)


16
# File 'lib/openai/models/graders/label_model_grader.rb', line 16

required :labels, OpenAI::Internal::Type::ArrayOf[String]

#modelString

The model to use for the evaluation. Must support structured outputs.

Returns:

  • (String)


22
# File 'lib/openai/models/graders/label_model_grader.rb', line 22

required :model, String

#nameString

The name of the grader.

Returns:

  • (String)


28
# File 'lib/openai/models/graders/label_model_grader.rb', line 28

required :name, String

#passing_labelsArray<String>

The labels that indicate a passing result. Must be a subset of labels.

Returns:

  • (Array<String>)


34
# File 'lib/openai/models/graders/label_model_grader.rb', line 34

required :passing_labels, OpenAI::Internal::Type::ArrayOf[String]

#typeSymbol, :label_model

The object type, which is always ‘label_model`.

Returns:

  • (Symbol, :label_model)


40
# File 'lib/openai/models/graders/label_model_grader.rb', line 40

required :type, const: :label_model