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.
AccuracyEvaluatorBuilder
Defined in the eval module.
Rust AI Agent SDK
Builder for AccuracyEvaluator.
Fields
| Name | Type | Description |
|---|
input | Option<String> | - |
expected | Option<String> | - |
actual | Option<String> | - |
config | EvaluatorConfig | - |
Methods
fn input(mut self, input: impl Into<String>) -> Self
Set input text.
Parameters:
| Name | Type |
|---|
input | impl Into<String> |
expected
fn expected(mut self, expected: impl Into<String>) -> Self
Set expected output.
Parameters:
| Name | Type |
|---|
expected | impl Into<String> |
actual
fn actual(mut self, actual: impl Into<String>) -> Self
Set actual output.
Parameters:
| Name | Type |
|---|
actual | impl Into<String> |
threshold
fn threshold(mut self, threshold: f64) -> Self
Set threshold.
Parameters:
build
fn build(self) -> AccuracyEvaluator
Build the evaluator.
Source
View on GitHub
praisonai/src/eval/mod.rs at line 383