> ## 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.

# Accuracy Evaluator Builder • Rust AI Agent SDK

> AccuracyEvaluatorBuilder: Builder for AccuracyEvaluator.

# AccuracyEvaluatorBuilder

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

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

Builder for AccuracyEvaluator.

## Fields

| Name       | Type                   | Description |
| ---------- | ---------------------- | ----------- |
| `input`    | `Option&lt;String&gt;` | -           |
| `expected` | `Option&lt;String&gt;` | -           |
| `actual`   | `Option&lt;String&gt;` | -           |
| `config`   | `EvaluatorConfig`      | -           |

## Methods

### `input`

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

Set input text.

**Parameters:**

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

### `expected`

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

Set expected output.

**Parameters:**

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

### `actual`

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

Set actual output.

**Parameters:**

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

### `threshold`

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

Set threshold.

**Parameters:**

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

### `build`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn build(self) -> AccuracyEvaluator
```

Build the evaluator.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/eval/mod.rs#L383">
  `praisonai/src/eval/mod.rs` at line 383
</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" />

  <Card title="Rust Agent UI" icon="display" href="/docs/rust/agent-ui-agui" />

  <Card title="Rust AGUI" icon="display" href="/docs/rust/agui" />
</CardGroup>
