microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
32.34k stars 4.72k forks source link

Swarm/handoff pattern in agentchat #3946

Open ekzhu opened 3 days ago

ekzhu commented 3 days ago

What feature would you like to be added?

A popular pattern.

  1. Refactor agents to run tools call or communicate that this is just one way to handle tool calls
  2. chat agent can receive and return a sequence of messages
  3. the team/orchestrator/groupchatmanager - processes the list of messages and decide who to speak next [ToolCall, ToolCallResult, StopMesasge, NextSpeaker]. The team needs to interpret this returned list, broadcast this to others to keep context, and define the next speaker
  4. A base GroupChat/Team and child classes that implement RoundRobin/LLM/Handoff

Why is this needed?

Alternative to LLM-selector group chat.

jackgerrits commented 3 days ago

I'd like to add a requirement to clearly define what happens if multiple handoff messages are produced in a sequence