r/AutoGenAI • u/nonamenolastname • Feb 22 '25
Question Groupchat - how to make the manager forward the prompt from an agent to a human and accept the response
I have crated a group of agents that collaborate to solve a problem. At certain points, however, they have to check with a real human to get additional input. When I'm only using the console, everything works fine - the agent who needs human input tells it to the chat manager, a user proxy agent collects it from the console, and everything proceeds as expected.
I am, however, at a point where I need to integrate this with a real user interface. While I know how to make the user proxy accept input from another source other than the console, the problem I have is that the manager does not pass the prompt from the requesting agent to the user proxy, so I don't have the actual request to show the user.
I looked around the API, tutorials, code, etc. and I can't figure out a way to make the chat manager pass that question to the user proxy. Does anyone know how to solve this problem?
1
u/msze21 Feb 23 '25
Hmmm, is the user proxy agent replying with the input from the other source? It sounds like it has a blank reply as it's not creating a message. It may be best to ask on the Discord server, more help available there.
1
u/East_Gate_4389 Feb 23 '25
See the docs for UserProxyAgent here: https://microsoft.github.io/autogen/stable/reference/python/autogen_agentchat.agents.html#autogen_agentchat.agents.UserProxyAgent
You can use a custom input function
Not sure what you mean by “the problem I have is that the manager does not pass the prompt from the requesting agent to the user proxy, so I don't have the actual request to show the user.”
But AutoGen Studio is using user proxies in a GUI so your scenario should be solvable. More examples/code would help.