HumanInTheLoopMiddleware
A middleware in LangChain used to insert human approval steps during agent execution. It adds additional nodes to the graph.
Timeline (last 90 days)
After adding the approval middleware via HumanInTheLoopMiddleware, a fifth node, HumanInTheLoopMiddleware.after_model, appears in the graph.
When using human approval, the first invoke causes the agent to pause, and a __interrupt__ key appears in the result, whose payload contains action_requests and review_configs.
All Facts (2)
After adding the approval middleware via HumanInTheLoopMiddleware, a fifth node, HumanInTheLoopMiddleware.after_model, appears in the graph.
50%UnverifiedWhen using human approval, the first invoke causes the agent to pause, and a __interrupt__ key appears in the result, whose payload contains action_requests and review_configs.
50%