Autogen Studio | How to terminate group chat without terminating the whole workflow? #4023
Unanswered
summersonnn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need three agents in total: two standard agents and a code-executing user_agent.
It seems the autonomous workflow supports a maximum of two agents. To address this, I created a "GroupChat assistant" comprising two agents (let’s call them A and B). Here, user_agent initiates the conversation and then transfers control to GroupChat manager.
The issue is that the GroupChat never terminates; A and B continue conversing indefinitely. I attempted to resolve this by adding system prompts within GroupChat, specifying that the agents shouldn't perform code execution. The system prompt I added to the GroupChat manager was : “You don’t have permission to execute code. If a task requires code execution, terminate the chat. Do not assign coding tasks to any agent within this group.”
Unfortunately, this approach didn’t work. The GroupChat manager doesn't transfer any intermediate results back to the user_agent, which is what I need.
I also tried incorporating another user_agent within GroupChat, assuming it would activate if there’s a coding task. However, this setup is unreliable. Often, it fails to trigger, with A and B talking for multiple cycles before eventually assigning the task to the user_agent in the group chat.
Is there something I’m overlooking? Is there truly no way to end the GroupChat effectively?
Beta Was this translation helpful? Give feedback.
All reactions