HumanReview. Conditions only support requires_confirmation. Passing unsupported fields (like requires_output_review) raises a ValueError.
User-Controlled Branching
Whenrequires_confirmation=True, the condition pauses for a user decision:
- Confirm: Execute the
stepsbranch (if branch) - Reject: Behavior depends on
on_rejectsetting
Parameters
OnReject Options
Branch Execution
Without else_steps
If noelse_steps are defined and the user rejects with on_reject=OnReject.else_branch, the condition is skipped:
Combining with Evaluator
Theevaluator defaults to True. Leave it unset with requires_confirmation=True and the user’s decision alone picks the branch:
evaluator still runs. A custom evaluator that returns False routes a confirmed condition to else_steps. Rejecting with on_reject=OnReject.else_branch skips evaluation and forces the else branch.