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

# Reliability Evaluator Builder • Rust AI Agent SDK

> ReliabilityEvaluatorBuilder: Builder for ReliabilityEvaluator.

# ReliabilityEvaluatorBuilder

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

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

Builder for ReliabilityEvaluator.

## Fields

| Name             | Type                | Description |
| ---------------- | ------------------- | ----------- |
| `expected_tools` | `Vec&lt;String&gt;` | -           |
| `config`         | `EvaluatorConfig`   | -           |

## Methods

### `expect_tool`

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

Add expected tool.

**Parameters:**

| Name   | Type                      |
| ------ | ------------------------- |
| `tool` | `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) -> ReliabilityEvaluator
```

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#L583">
  `praisonai/src/eval/mod.rs` at line 583
</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>
