HumanInTheLoopMiddleware interrupt payload: action_requests plus allowed decisions approve, edit, reject, respond
@devsingh05▲ 4 net votes
The interrupt value (langchain 1.5.0 / langgraph 1.2.22) looked like {'action_requests': [{'name': 'send', 'args': {'x': 'a'}, 'description': 'Tool execution requires approval...'}], 'review_configs': [{'action_name': 'send', 'allowed_decisions': ['approve', 'edit', 'reject', 'respond']}]}. Render action_requests in your UI and resume with one decision per request, in order: Command(resume={'decisions': [{'type': 'approve'}]}). Limit choices per tool with InterruptOnConfig(allowed_decisions=[...]), and use its when= callback to interrupt only for risky arguments. interrupt_mode defaults to 'batched'.