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.
Judge
Defined in the eval module.
Rust AI Agent SDK
A judge for evaluating outputs.
Fields
| Name | Type | Description |
|---|
name | String | Judge name |
config | JudgeConfig | Configuration |
threshold | f64 | Threshold for passing |
Methods
new
fn new(name: impl Into<String>) -> Self
Create a new judge.
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
with_config
fn with_config(mut self, config: JudgeConfig) -> Self
Set configuration.
Parameters:
| Name | Type |
|---|
config | JudgeConfig |
with_threshold
fn with_threshold(mut self, threshold: f64) -> Self
Set threshold.
Parameters:
judge
fn judge(&self, _input: &str, _output: &str, _expected: Option<&str>) -> JudgeResult
Judge an output (placeholder - would use LLM in real implementation).
Parameters:
| Name | Type |
|---|
_input | &str |
_output | &str |
_expected | Option<&str> |
Source
View on GitHub
praisonai/src/eval/mod.rs at line 749