Replies: 1 comment
|
Hi @deepakn27 , The key thing: there's no single "HITL flag" that tunnels an approval from Agent B all the way back to the UI. You chain three independent pause/resume mechanisms — one per hop — and carry correlation IDs so each resume targets the right paused task. One of those hops has a current gap (below). The three layers
Resume cascades back down: UI result → Agent A resumes → reply on the same A2A Gotchas that will bite you
Simplest workaround today (sidesteps the A2A gap)Keep the approval on the A ↔ UI hop only. Don't pause inside B — gate the sensitive action at Agent A: A exposes the approval as an AG-UI frontend tool, gets the human's decision, and only then calls B to execute (split B into a "propose/plan" call and an "execute" call). HITL stays entirely where it's well-supported, with no There's a full walkthrough of the UI hop in the AWS tutorial [Building HITL AI Agents with Strands, AG-UI and CopilotKit on AgentCore](https://builder.aws.com/content/3C80MYfWY9419ZDJyqsnJpPmvYy/building-human-in-the-loop-hitl-ai-agents-with-strands-agents-ag-ui-and-copilotkit-on-amazon-bedrock-agentcore). |
Uh oh!
There was an error while loading. Please reload this page.
How can we perform Human in the loop in A2A agents
UI ----(AGUI)-----> Agent A ---(A2A)-------> Agent B
UI calls Agent A using AGUI protocol
Agent A calls Agent B using remote A2A
If AgentB want to call a tool which need Human Approval, How can we take flow back to UI ?
All reactions