> ## 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 • AI Agent SDK

> evaluate: Check if the context contains a valid routing decision.

# evaluate

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

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

Check if the context contains a valid routing decision.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def evaluate(context: Dict[str, Any]) -> bool
```

## Parameters

<ParamField query="context" type="Dict" required={true}>
  Dictionary containing the decision key.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if decision value matches a route key.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/conditions/evaluator.py#L94">
  `praisonaiagents/conditions/evaluator.py` at line 94
</Card>

***

## Related Documentation

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

  <Card title="LLM as Judge" icon="scale-balanced" href="/docs/features/llm-as-judge" />

  <Card title="Evaluation Loop" icon="rotate" href="/docs/eval/evaluation-loop" />
</CardGroup>
