Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
CriteriaEvaluatorBuilder
Defined in the eval module.
Rust AI Agent SDK
Builder for CriteriaEvaluator.
Fields
| Name | Type | Description |
|---|
criteria | Vec<String> | - |
config | EvaluatorConfig | - |
Methods
criterion
fn criterion(mut self, criterion: impl Into<String>) -> Self
Add a criterion.
Parameters:
| Name | Type |
|---|
criterion | impl Into<String> |
threshold
fn threshold(mut self, threshold: f64) -> Self
Set threshold.
Parameters:
build
fn build(self) -> CriteriaEvaluator
Build the evaluator.
Source
View on GitHub
praisonai/src/eval/mod.rs at line 670