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
def evaluate(context: Dict[str, Any]) -> boolParameters
ParamField
Dict[str, Any]Dictionary containing the decision key.
Returns
ResponseField
boolTrue if decision value matches a route key.
Source
View on GitHubpraisonaiagents/conditions/evaluator.py at line 92