Human-in-the-loop (HITL) allows agents to pause execution, request human input, and resume from the exact point they stopped. This is achieved through three core components:
- Interrupt: The agent pauses and sends information to the user (e.g., asking for approval or clarification).
- Checkpoint: The framework saves the current execution state to a
CheckPointStore. - Resume: The user provides input, and the framework restores the saved state to continue execution.
Common patterns include Approval (pausing before an action), Review & Edit (modifying tool arguments), Feedback Loops (refining content), and Follow-up (asking for clarification).