evaluate • AI Agent SDK

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

evaluate

Method

</div>

This is a method of the DictCondition class in the evaluator module.

Check if the context contains a valid routing decision.

Signature

python
def evaluate(context: Dict[str, Any]) -> bool

Parameters

ParamField Dict[str, Any]

Dictionary containing the decision key.

Returns

ResponseField bool

True if decision value matches a route key.

Source

View on GitHub

praisonaiagents/conditions/evaluator.py at line 92


Related Documentation