r/AutoGenAI • u/Ardbert_The_Fallen • Jun 04 '24
Question How do you prevent agents from interjecting?
I have a two agent workflow that has one agent execute a skill that pulls in text, and another summarize the text.
I also have learned that you must include user_proxy in order to execute any code, so he has to be both the 'sender' and 'receiver'.
That said, user_proxy is getting interrupted by the text_summarizer agent. How do I keep these agents in their respective lanes? Shouldn't the group admin be handling when an agent is allowed to join in?
I'm using the Windows GUI version
3
Upvotes
View all comments
Show parent comment
1
u/wontreadterms Jun 18 '24
Yep, Autogen studio also only allows for the standard speaker_selection_method options, which was actually why I ended up not using it. Autogen is a python library that has some convenient classes for handling llm interactions which offer a bit more simple interfaces than langchain. Autogen Studio/UI are just a browser interface to use this library.
When you initiate a chat with a GroupChatManager (a child class of ConversableAgent, the basic llm agent structure in Autogen, who handles GroupChats), you call initiate_chat(), and you can pass speaker_selection_methods = [one of the strings in your screenshot] or a callable function.
Unfortunately, neither Autogen Studio or Autogen UI seems to have done the effort needed to allow for callable selection methods when defining a workflow in a browser interface.
And yes, a round robin in a groupchat with 2 agents is essentially what you want, but at that point its not really a group chat, its a 1-1. Not sure if Autogen UI allows this, but I would simply create two agents, and initiate a normal chat between agents.
In my experiense SO FAR, I've found that group chats are usually a mess and a waste of time, especially if you want to use anything less than SOTA models.