/** * `when` condition evaluation for Task routing. * * Port of Python `praisonaiagents.conditions.evaluator.evaluate_condition`: * `{{var}}` placeholders are substituted from the routing context, then the * expression is read as a numeric comparison, a string equality, a * contains check, or a truthy check. Errors evaluate to false (fail-safe). * * evaluateWhen('{{score}} > 80', { score: 90 }) // true * evaluateWhen('{{status}} == approved', { status: 'approved' }) // true * evaluateWhen('error in {{previous_output}}', { previous_output: 'An error' }) // true * evaluateWhen('{{flag}}', { flag: 'yes' }) // true */ /** Evaluate a Task `when` expression against `context`. */ export declare function evaluateWhen(condition: string, context: Record): boolean;