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.
CriteriaScore
Defined in the eval module.
Rust AI Agent SDK
Score for a specific criterion.
Fields
| Name | Type | Description |
|---|
name | String | Criterion name |
score | f64 | Score value |
weight | f64 | Weight for this criterion |
feedback | Option<String> | Feedback |
Methods
new
fn new(name: impl Into<String>, score: f64) -> Self
Create a new criteria score.
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
score | f64 |
with_weight
fn with_weight(mut self, weight: f64) -> Self
Set weight.
Parameters:
with_feedback
fn with_feedback(mut self, feedback: impl Into<String>) -> Self
Set feedback.
Parameters:
| Name | Type |
|---|
feedback | impl Into<String> |
weighted_score
fn weighted_score(&self) -> f64
Get weighted score.
Source
View on GitHub
praisonai/src/eval/mod.rs at line 183