Skip to main content
Loops support confirmation HITL, pausing before the first iteration to let users decide whether to start the loop.

Start Confirmation

When requires_confirmation=True, the loop pauses before executing:
  • Confirm: Execute the loop iterations
  • Reject: Skip the entire loop

Parameters

Loop Behavior

The confirmation happens once before the loop starts. Individual iterations do not pause for confirmation.

With should_continue

The should_continue function controls iteration. Confirmation happens before any iteration:

Streaming

Handle loop HITL in streaming workflows:

Developer Resources