Class: OpenAI::Models::Graders::MultiGrader

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

Defined Under Namespace

Modules: Grader

Instance Attribute Summary collapse

Instance Method Summary collapse

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(calculate_output: , graders: , name: , type: :multi) ⇒ Object

A MultiGrader object combines the output of multiple graders to produce a single score.

Parameters:



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

Instance Attribute Details

#calculate_outputString

A formula to calculate the output based on grader results.

Returns:

  • (String)


11
# File 'lib/openai/models/graders/multi_grader.rb', line 11

required :calculate_output, String

#nameString

The name of the grader.

Returns:

  • (String)


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

required :name, String

#typeSymbol, :multi

The object type, which is always ‘multi`.

Returns:

  • (Symbol, :multi)


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

required :type, const: :multi