autogen
autogen copied to clipboard
Document process for supporting new types of Agents and Teams in AGS
AGS currently has support for AssistantAgent agent and RoundRobin/LLM Selector teams from AgentChat. As developers experiment with new types of custom agents and teams, we will need clear documentation on how to support these new agent types in AGS.
Current approach
- Define your new agents and teams, add them to autogenstudio.components
- Update datamodel AgentTypes and TeamTypes to include new datamodel . Add new AgentConfig that extends
AgentConfig.
class AgentTypes(str, Enum):
ASSISTANT = "AssistantAgent"
USERPROXY = "UserProxyAgent"
+ CUSTOMWEBSURFER="CustomWebSurfer" # your new agent
- Update ComponentFactory to include logic on how to instantiate new custom agent
- Update tests
In the future, it would be great to figure out something more automatic. E.g., add type definitions and class to some directory and logic to load is inferred.