Definition
Human-in-the-Loop
Human-in-the-loop workflows bring a person into a decision or review step. An agent can pause before an action so an authorized reviewer can approve, modify or reject the proposal. The workflow needs to preserve the pending state, the evidence shown to the reviewer and the decision that governs resumption.
Tie approval to the proposed action
An agent proposes a $25 refund for one order. Show the reviewer the order, amount and reason. If the action changes to $40 while the run is paused, request approval for that revised proposal. Record a distinct attempt and resume from the saved state. Keep the refund action idempotent so a resumed run or retry can recognize a prior execution.
LangGraph interruptions, checkpoints and resumption
Intelligence at Scale by Shashank Agarwal
Explained in
Chapter 10: Building AI Agents
Frameworks, patterns, and how to actually build an agent that works.
Related terms