swarm_agent
autogen.agentchat.contrib.swarm_agent.create_swarm_transition
create_swarm_transition
Creates a transition function for swarm chat with enclosed state for the use_initial_agent.
Parameters:Name | Description |
---|---|
initial_agent | The first agent to speak Type: autogen.agentchat.conversable_agent.ConversableAgent |
tool_execution | The tool execution agent Type: autogen.agentchat.conversable_agent.ConversableAgent |
swarm_agent_names | List of all agent names Type: list[str] |
user_agent | Optional user proxy agent Type: autogen.agentchat.user_proxy_agent.UserProxyAgent | None |
swarm_after_work | Swarm-level after work Type: autogen.agentchat.contrib.swarm_agent.AfterWorkOption | Callable | None |
Type | Description |
---|---|
Callable[[autogen.agentchat.conversable_agent.ConversableAgent, autogen.agentchat.groupchat.GroupChat], autogen.agentchat.agent.Agent | None] | Callable transition function (for sync and async swarm chats) |