pub fn evaluate_structured_condition(
condition: &Condition,
ctx: &ExecutionContext,
result: Option<&Value>,
) -> Result<bool>Expand description
Evaluate a structured condition against ctx + optional tool
result.
Behaviour matches the worker’s pre-PR-2b
CaseEvaluator::evaluate_condition:
condition.leftresolution order:"result"→ the supplied tool result (orNullifNone)."result.<path>"→ JSON path navigation of the result.- Variable lookup via
ctx.get_variable(&left). - Template rendering via
TemplateEngine::render. - Literal string.
condition.rightis template-rendered againstctxbefore use.- Operator semantics match the worker’s inline implementation.
This function is pure and synchronous — no I/O, no async.