microsoft / autogen

A programming framework for agentic AI. Discord: https://aka.ms/autogen-dc. Roadmap: https://aka.ms/autogen-roadmap
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
29.89k stars 4.35k forks source link

Groupchat auto-terminate. #581

Open NikhilModi488 opened 9 months ago

NikhilModi488 commented 9 months ago

Hi @iemejia @lgersman @qinc @msaelices @craigomatic,

I am facing some issues while working on the group chat of Autogen, i.e, while the chat incoming the chat comes and it terminates the whole chat for me and I am not able to access the same after this issue and it has happened to me multiple times in the group chat.

I have tried this as well but the issue persists. is_termination_msg=lambda x: x.get("content", "").rstrip().endswith("TERMINATE")

groupchat = autogen.GroupChat(agents=[user_proxy, Interactor, Planner, executor, critic, Engineer, Analyst, Agent_selector], messages=[]) manager = autogen.GroupChatManager(groupchat=groupchat) user_proxy.initiate_chat(manager, message=usr_input,clear_output=True, clear_history=True)

Please look into this.

Thank You.

gagb commented 9 months ago

Where have you set the above is_termination_msg?

NikhilModi488 commented 9 months ago

Where have you set the above is_termination_msg?

Only in user proxy.

user_proxy = autogen.UserProxyAgent( name="user_proxy", human_input_mode="ALWAYS", code_execution_config=False, is_termination_msg=lambda x: x.get("content", "").rstrip().endswith("TERMINATE"), llm_config={'temperature': 0}, )