Skip to main content

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

NameTypeDescription
valuef64Score value (0.0 to 1.0)
reasoningOption<String>Score reasoning
confidenceOption<f64>Confidence level

Methods

new

fn new(value: f64) -> Self
Create a new score. Parameters:
NameType
valuef64

with_reasoning

fn with_reasoning(mut self, reasoning: impl Into<String>) -> Self
Set reasoning. Parameters:
NameType
reasoningimpl Into&lt;String&gt;

with_confidence

fn with_confidence(mut self, confidence: f64) -> Self
Set confidence. Parameters:
NameType
confidencef64

is_passing

fn is_passing(&self, threshold: f64) -> bool
Check if passing (>= threshold). Parameters:
NameType
thresholdf64

as_percentage

fn as_percentage(&self) -> f64
Convert to percentage.

Source

View on GitHub

praisonai/src/eval/mod.rs at line 29

Rust Evaluation

Rust Criteria