microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
32.63k stars 4.75k forks source link

[Bug]: Silent = True does not work for group chats. #2402

Open Neeraj319 opened 6 months ago

Neeraj319 commented 6 months ago

Describe the bug

When passing Silent=True in initiate_chat function with group_chat_manager as a recipient it does not work (all the messages are printed).

Steps to reproduce

example code to reproduce the bug:

user_proxy = autogen.UserProxyAgent(
    name="User_proxy",
    system_message="A human admin.",
    code_execution_config={
        "last_n_messages": 2,
        "work_dir": "groupchat",
        "use_docker": False,
    },
    human_input_mode="TERMINATE",
)
coder = autogen.AssistantAgent(
    name="Coder",
    llm_config=llm_config,
)
pm = autogen.AssistantAgent(
    name="Product_manager",
    system_message="Creative in software product ideas.",
    llm_config=llm_config,
)
groupchat = autogen.GroupChat(agents=[user_proxy, coder, pm], messages=[], max_round=12)
manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=llm_config)
user_proxy.initiate_chat(
    manager,
    message="Find a latest paper about gpt-4 on arxiv and find its potential applications in software.",
)

Model Used

gpt-4

Expected Behavior

There should have been no chats printed in the cli.

Screenshots and logs

Logs of the chat messages being printed:

image image

Additional Information

pyautogen version == 0.2.24 python version == 3.10.12

Hk669 commented 4 months ago

@krishnashed can i know the status of this issue? thanks

krishnashed commented 4 months ago

Im halfway into the implementation, will post updates here

Hk669 commented 4 months ago

Im halfway into the implementation, will post updates here

Sure, thanks

Adithyan777 commented 3 months ago

@Neeraj319 had a similar issue but adding silent=True while initializing the groupchat manager fixed it for me. Hope it helps