Routing mechanism in AgentGroupChat to receive response from a SINGLE AGENT at one time. #11326
-
We are using AgentGroup where multiple agents collaborate to handle user query. We notices as soon as we provide a user prompt, all agents respond individually and there is a flood of messages. What we want is a routing mechanism where kernel decides which single agent will respond and returns a single response. I did read that there is a concept of Single turn and multiturn. But semantic kernel documentation mentions that in single turn, kernel won't decide on its own which agent which handle the query. We need to manually provide the agent which will handle the query, that defeats the purpose of being Agentic system. Any views or suggestions are very much appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Adding @TaoChenOSU and @crickman for comments. |
Beta Was this translation helpful? Give feedback.
Hi @MahorShekhar, thank you for bringing up the discussion!
The current AgentGroupChat provides a customizable selection strategy where you can instruct the group on how to select the next agent based on the current state of the chat: https://github.com/microsoft/semantic-kernel/blob/main/python/samples/getting_started_with_agents/chat_completion/step7_kernel_function_strategies.py. We also provide some simple out-of-the box strategy: https://github.com/microsoft/semantic-kernel/blob/main/python/semantic_kernel/agents/strategies/selection/sequential_selection_strategy.py
Please don't hesitate to post if you have further questions.