Implementing Dynamic Agent Switching Based on User Intent in AutoGen #5399
Unanswered
glarunsingh
asked this question in
Q&A
Replies: 1 comment
-
I recommend start with the new v0.4 API, go through the tutorial, and look at SelectorGroupChat which is designed for your scenario. Tutorial: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/index.html SelectorGroupChat: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/selector-group-chat.html The 0.2 API is more of a research prototype and has many flaws. Even though many YouTube videos are made for it we don't recommend using it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am new to generative AI and AutoGen. We are developing a healthcare application for an insurance company with three key features: healthcare provider, claims status provider, and doctor appointment booking. For these features, we have three agents.
When a user inquires about health, the healthcare provider agent should be triggered. If, during the conversation, the user wants to book a doctor's appointment, the doctor appointment booking agent should be activated. Similarly, if the user wants to check the status of their claims, the claims status provider agent should be triggered.
I have researched AutoGen and found that there is a termination word to exit from one agent to another. However, I want to trigger the agents based on user intent dynamically. For this, I believe the dynamic group chat feature or LLM-based function call can be utilized. Unfortunately, I couldn't find any related sample codes for this.
As I am new to this, I am struggling to implement it. Could anyone share sample codes or guide me on how to approach this use case based on user intent? Additionally, within my agents, I have multiple tool or function calling codes enabled.
Here is the code I have so far:
app.py file:
Beta Was this translation helpful? Give feedback.
All reactions