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.
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) -> Self
Create a new score.
Parameters:
with_reasoning
fn with_reasoning(mut self, reasoning: impl Into<String>) -> Self
Set reasoning.
Parameters:
| Name | Type |
|---|
reasoning | impl Into<String> |
with_confidence
fn with_confidence(mut self, confidence: f64) -> Self
Set confidence.
Parameters:
is_passing
fn is_passing(&self, threshold: f64) -> bool
Check if passing (>= threshold).
Parameters:
as_percentage
fn as_percentage(&self) -> f64
Convert to percentage.
Source
View on GitHub
praisonai/src/eval/mod.rs at line 29