Class: Braintrust::Models::OnlineScoreConfig

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

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

#apply_to_root_spanBoolean

Whether to trigger online scoring on the root span of each trace

Returns:

  • (Boolean)


19
# File 'lib/braintrust/models/online_score_config.rb', line 19

optional :apply_to_root_span, Braintrust::BooleanModel

#apply_to_span_namesArray<String>

Trigger online scoring on any spans with a name in this list

Returns:

  • (Array<String>)


24
# File 'lib/braintrust/models/online_score_config.rb', line 24

optional :apply_to_span_names, Braintrust::ArrayOf.new(String)

#sampling_rateFloat

The sampling rate for online scoring

Returns:

  • (Float)


9
# File 'lib/braintrust/models/online_score_config.rb', line 9

required :sampling_rate, Float

#scorersArray<Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent5|Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent6>

The list of scorers to use for online scoring

Returns:

  • (Array<Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent5|Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent6>)


14
# File 'lib/braintrust/models/online_score_config.rb', line 14

required :scorers, Braintrust::ArrayOf.new(Braintrust::Unknown)