Skip to main content

evaluate

Method
This is a method of the ExpressionCondition class in the evaluator module.
Evaluate the condition against the given context.

Signature

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

Parameters

context
Dict
required
Dictionary containing variables for evaluation. Special key ‘previous_output’ is also substituted.

Returns

Returns
bool
Boolean result of condition evaluation. Returns False on evaluation errors (fail-safe).

Uses

  • evaluate_condition

Source

View on GitHub

praisonaiagents/conditions/evaluator.py at line 44