Skip to main content
Steps support three HITL modes: confirmation (approve/reject before execution), user input (collect parameters before execution), and output review (review/edit/reject after execution). All HITL settings are configured via HumanReview.

Confirmation

Pause before executing a step. The user confirms to proceed or rejects to skip/cancel.

Parameters

OnReject Options

User Input

Collect parameters from the user before step execution. Input values are passed to the step via step_input.additional_data["user_input"].

Parameters

UserInputField

Accessing User Input

User input is available in the step function via step_input.additional_data["user_input"]:
For agent-based steps, user input is automatically appended to the message.

Output Review

Pause after a step executes so the user can review the output before the workflow continues. If the user rejects, the step re-executes (up to max_retries). See the dedicated Output Review page for full details including editing output and reject with feedback.

Parameters

Timeout

Set a deadline for the user to respond. If it expires, on_timeout fires automatically. See the dedicated Timeout page for full details.

The @pause Decorator

Use the @pause decorator to configure HITL directly on functions:

Streaming

Handle HITL in streaming workflows:

Developer Resources