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
| Name | Type |
|---|---|
name | impl Into<String> |
with_config
| Name | Type |
|---|---|
config | JudgeConfig |
with_threshold
| Name | Type |
|---|---|
threshold | f64 |
judge
| Name | Type |
|---|---|
_input | &str |
_output | &str |
_expected | Option<&str> |
Source
View on GitHub
praisonai/src/eval/mod.rs at line 749
