Evaluation Score • Rust AI Agent SDK
EvaluationScore: Score from an evaluation.
EvaluationScore
Defined in the eval module.
Rust AI Agent SDK
Score from an evaluation.
Fields
| Name | Type | Description |
|---|---|---|
value | f64 | Score value (0.0 to 1.0) |
reasoning | Option<String> | Score reasoning |
confidence | Option<f64> | Confidence level |
Methods
new
fn new(value: f64) -> SelfCreate a new score.
Parameters:
| Name | Type |
|---|---|
value | f64 |
with_reasoning
fn with_reasoning(mut self, reasoning: impl Into<String>) -> SelfSet reasoning.
Parameters:
| Name | Type |
|---|---|
reasoning | impl Into<String> |
with_confidence
fn with_confidence(mut self, confidence: f64) -> SelfSet confidence.
Parameters:
| Name | Type |
|---|---|
confidence | f64 |
is_passing
fn is_passing(&self, threshold: f64) -> boolCheck if passing (>= threshold).
Parameters:
| Name | Type |
|---|---|
threshold | f64 |
as_percentage
fn as_percentage(&self) -> f64Convert to percentage.
Source
View on GitHubpraisonai/src/eval/mod.rs at line 29