Skip to main content

evaluate

Method
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]) -> bool

Parameters

context
Dict
required
Dictionary containing the decision key.

Returns

Returns
bool
True if decision value matches a route key.

Source

View on GitHub

praisonaiagents/conditions/evaluator.py at line 94