How does AG-UI include Human In The Loop into their protocol? #158
Replies: 3 comments
-
My guess is that it's something like this:
|
Beta Was this translation helpful? Give feedback.
-
The agent creates a plan (book flight, book hotel, rent car) and presents it to the user as a checklist. The user unchecks "rent car" and approves the rest. The agent then proceeds. This is also a tool call already right??
Yes, I also think so but I wouldn't like this, this feels like you cannot create a UI for each possible tool that is being called. This feels like in your UI you really have to check what TOOL_START_EVENT will return as name and based on that specific name render the frontend a certain way. Still thank you very much for your response! |
Beta Was this translation helpful? Give feedback.
-
This will be part of the tool call. The implementation can be a helper function that yields to the main loop and resumes when an appropriate Ack event is received. And yes, I kind of agree with your sentiment that this feels like something that could be handled more cleanly, perhaps as a first-class citizen, but I can also see why the AG-UI designers chose this approach (I suspect because it's agent framework agnostic). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey AG-UI,
I was wondering how you recommend adding a Human In The Loop principle to an application. I am not using any Agent framework, but I think I kind of get how to do it.
These are all the events in the latest version. I am thinking that when ToolCallArgsEvent is called you could await and let the user return something which would cancle everything or change certain arguments.
Is this how you guys envision the developer to include Human In The Loop? As far as I have seen MCP doesn't have specific tool decoration for tools you would want a Human In The Loop for.
Kind Regards,
Frederik
Beta Was this translation helpful? Give feedback.
All reactions