Skip to main content
Conditions support confirmation HITL, allowing users to decide which branch to execute at runtime.

User-Controlled Branching

When requires_confirmation=True, the condition pauses for user decision:
  • Confirm: Execute the steps branch (if branch)
  • Reject: Behavior depends on on_reject setting

Parameters

OnReject Options

Branch Execution

Without else_steps

If no else_steps are defined and user rejects with on_reject=OnReject.else_branch, the condition is skipped:

Combining with Evaluator

When requires_confirmation=True, the evaluator is ignored. The user’s decision takes precedence:

Streaming

Handle condition HITL in streaming workflows:

Developer Resources