Class: Braintrust::Models::OnlineScoreConfig
- Defined in:
- lib/braintrust/models/online_score_config.rb
Instance Attribute Summary collapse
-
#apply_to_root_span ⇒ Boolean
Whether to trigger online scoring on the root span of each trace.
-
#apply_to_span_names ⇒ Array<String>
Trigger online scoring on any spans with a name in this list.
-
#sampling_rate ⇒ Float
The sampling rate for online scoring.
-
#scorers ⇒ Array<Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent5|Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent6>
The list of scorers to use for online scoring.
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_span ⇒ Boolean
Whether to trigger online scoring on the root span of each trace
19 |
# File 'lib/braintrust/models/online_score_config.rb', line 19 optional :apply_to_root_span, Braintrust::BooleanModel |
#apply_to_span_names ⇒ Array<String>
Trigger online scoring on any spans with a name in this list
24 |
# File 'lib/braintrust/models/online_score_config.rb', line 24 optional :apply_to_span_names, Braintrust::ArrayOf.new(String) |
#sampling_rate ⇒ Float
The sampling rate for online scoring
9 |
# File 'lib/braintrust/models/online_score_config.rb', line 9 required :sampling_rate, Float |
#scorers ⇒ Array<Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent5|Braintrust::Models::OnlineScoreConfig::Scorer::UnnamedTypeWithunionParent6>
The list of scorers to use for online scoring
14 |
# File 'lib/braintrust/models/online_score_config.rb', line 14 required :scorers, Braintrust::ArrayOf.new(Braintrust::Unknown) |