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

# evaluate • Rust AI Agent SDK

> evaluate: Evaluate the condition against the given context. # Arguments * `context` - Dictionary containing variables for evaluation. May include workflow...

# evaluate

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ConditionProtocol**](../classes/ConditionProtocol) class in the [**conditions**](../modules/conditions) module.

Evaluate the condition against the given context. # Arguments \* `context` - Dictionary containing variables for evaluation. May include workflow variables, previous outputs, etc. # Returns Boolean result of condition evaluation. Returns false on evaluation errors (fail-safe).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def evaluate(&self, context: &HashMap<String, serde_json::Value>) -> bool
```

## Parameters

<ParamField query="context" type="&HashMap<String" required={true}>
  No description available.
</ParamField>

<ParamField query="serde_json" type=":Value>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

***

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