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

# Criteria Evaluator Builder • Rust AI Agent SDK

> CriteriaEvaluatorBuilder: Builder for CriteriaEvaluator.

# CriteriaEvaluatorBuilder

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

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

Builder for CriteriaEvaluator.

## Fields

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

## Methods

### `criterion`

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

Add a criterion.

**Parameters:**

| Name        | Type                      |
| ----------- | ------------------------- |
| `criterion` | `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) -> CriteriaEvaluator
```

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