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.
Name | Description |
---|---|
initial_agent | The first agent to speak Type: ConversableAgent |
tool_execution | The tool execution agent Type: ConversableAgent |
swarm_agent_names | List of all agent names Type: list[str] |
user_agent | Optional user proxy agent Type: UserProxyAgent | None |
swarm_after_work | Swarm-level after work Type: AfterWorkOption | Callable[…, Any] | None |
Type | Description |
---|---|
Callable[[ConversableAgent, GroupChat], Agent | None] | Callable transition function (for sync and async swarm chats) |