Skip to main content
Steps support two HITL modes: confirmation (approve/reject) and user input (collect parameters).

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.

The @pause Decorator

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

Streaming

Handle HITL in streaming workflows:

Developer Resources