Criteria Score • Rust AI Agent SDK
CriteriaScore: Score for a specific criterion.
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) -> SelfCreate a new criteria score.
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
score | f64 |
with_weight
fn with_weight(mut self, weight: f64) -> SelfSet weight.
Parameters:
| Name | Type |
|---|---|
weight | f64 |
with_feedback
fn with_feedback(mut self, feedback: impl Into<String>) -> SelfSet feedback.
Parameters:
| Name | Type |
|---|---|
feedback | impl Into<String> |
weighted_score
fn weighted_score(&self) -> f64Get weighted score.
Source
View on GitHubpraisonai/src/eval/mod.rs at line 183