Class: Braintrust::Models::Scorer

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/scorer.rb

Defined Under Namespace

Classes: Type

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #initialize, #inspect, #to_h, #to_s

Constructor Details

This class inherits a constructor from Braintrust::BaseModel

Instance Attribute Details

#indexInteger

Returns:

  • (Integer)


8
# File 'lib/braintrust/models/scorer.rb', line 8

required :index, Integer

#typeSymbol

One of the constants defined in Type

Returns:

  • (Symbol)


13
# File 'lib/braintrust/models/scorer.rb', line 13

required :type, enum: -> { Braintrust::Models::Scorer::Type }