evaluate • AI Agent SDK

evaluate: Evaluate the condition against the given context.

evaluate

Method

</div>

This is a method of the ConditionProtocol class in the protocols module.

Evaluate the condition against the given context.

Signature

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

Parameters

ParamField Dict[str, Any]

Dictionary containing variables for evaluation. May include workflow variables, previous outputs, etc.

Returns

ResponseField bool

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

Source

View on GitHub

praisonaiagents/conditions/protocols.py at line 41


Related Documentation