Class: Braintrust::Models::PromptData::Parser

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/braintrust/models/prompt_data.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

#choice_scoresHash

Returns:

  • (Hash)


57
# File 'lib/braintrust/models/prompt_data.rb', line 57

required :choice_scores, Hash

#typeSymbol

One of the constants defined in Type

Returns:

  • (Symbol)


62
# File 'lib/braintrust/models/prompt_data.rb', line 62

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

#use_cotBoolean

Returns:

  • (Boolean)


66
# File 'lib/braintrust/models/prompt_data.rb', line 66

required :use_cot, Braintrust::BooleanModel