AutoGen 0.4: What Changed?
AutoGen từ Microsoft Research đã rewrite hoàn toàn ở version 0.4:
| Feature | AutoGen 0.2 | AutoGen 0.4 |
|---|---|---|
| Architecture | Monolithic | Modular |
| Async | Partial | Full async/await |
| Streaming | Limited | First-class |
Core Concepts
1. Agents
- AssistantAgent: LLM-powered với tool support
- UserProxyAgent: Human hoặc code execution
2. Teams (Group Chats)
- RoundRobinGroupChat: Agents speak in order
- SelectorGroupChat: LLM decides who speaks next
3. Messages & Streaming
Stream conversation async, mỗi message có source và content.
Conversation Architectures
Architecture 1: Two-Agent Ping-Pong
Classic: User ↔ Assistant
Architecture 2: Group Discussion
Multiple agents discuss until consensus
Architecture 3: Hierarchical Delegation
Manager delegates cho specialists dựa trên task type
Advanced: Custom Agent Types
Extend BaseChatAgent để tạo agents với capabilities riêng như RAG, specialized tools, etc.
🔥 Sử dụng SelectorGroupChat cho dynamic conversations, RoundRobinGroupChat cho predictable workflows.
