Start Confirmation
Whenrequires_confirmation=True, the loop pauses before executing:
- Confirm: Execute the loop iterations
- Reject: Skip the entire loop
Parameters
| Parameter | Type | Description |
|---|---|---|
requires_confirmation | bool | Pause before first iteration |
confirmation_message | str | Message shown to the user |
on_reject | OnReject | Action when rejected: skip (default), cancel |
Loop Behavior
The confirmation happens once before the loop starts. Individual iterations do not pause for confirmation.| User Action | Result |
|---|---|
| Confirm | Execute all iterations (up to max_iterations or until should_continue returns False) |
| Reject | Skip the loop entirely |
With should_continue
Theshould_continue function controls iteration. Confirmation happens before any iteration: