> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Evaluation Score • Rust AI Agent SDK

> EvaluationScore: Score from an evaluation.

# EvaluationScore

> Defined in the [**eval**](../modules/eval) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Score from an evaluation.

## Fields

| Name         | Type                   | Description              |
| ------------ | ---------------------- | ------------------------ |
| `value`      | `f64`                  | Score value (0.0 to 1.0) |
| `reasoning`  | `Option&lt;String&gt;` | Score reasoning          |
| `confidence` | `Option&lt;f64&gt;`    | Confidence level         |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(value: f64) -> Self
```

Create a new score.

**Parameters:**

| Name    | Type  |
| ------- | ----- |
| `value` | `f64` |

### `with_reasoning`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn with_reasoning(mut self, reasoning: impl Into<String>) -> Self
```

Set reasoning.

**Parameters:**

| Name        | Type                      |
| ----------- | ------------------------- |
| `reasoning` | `impl Into&lt;String&gt;` |

### `with_confidence`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn with_confidence(mut self, confidence: f64) -> Self
```

Set confidence.

**Parameters:**

| Name         | Type  |
| ------------ | ----- |
| `confidence` | `f64` |

### `is_passing`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn is_passing(&self, threshold: f64) -> bool
```

Check if passing (>= threshold).

**Parameters:**

| Name        | Type  |
| ----------- | ----- |
| `threshold` | `f64` |

### `as_percentage`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn as_percentage(&self) -> f64
```

Convert to percentage.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/eval/mod.rs#L29">
  `praisonai/src/eval/mod.rs` at line 29
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Evaluation" icon="gavel" href="/docs/rust/evaluation" />

  <Card title="Rust Criteria" icon="check-double" href="/docs/rust/criteria" />
</CardGroup>
