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.88k stars 4.35k forks source link

[Issue]: How to redirect to one specific agent #1883

Open YogeshNat opened 5 months ago

YogeshNat commented 5 months ago

Describe the issue

How to redirect the input based on expertise in groupchat? For example, In a groupchat there are two agent (say math and science), the input is "what is 2+2", Based on the input the manager should redirect it to math Agent. The other agent should not reply. How to do this?

Thanks Yogesh

Steps to reproduce

No response

Screenshots and logs

No response

Additional Information

No response

qingyun-wu commented 5 months ago

Do you have an explicit rule/criteria for deciding what message to predict to which agent? If so, you could achieve it using a custom speaker_selection_method. Find an example in this notebook: https://github.com/microsoft/autogen/blob/main/notebook/agentchat_groupchat_customized.ipynb