What is AgentChat?
AgentChat builds on top of the Core API to provide:- Pre-built agent types - AssistantAgent, CodeExecutorAgent, UserProxyAgent, and more
- Team patterns - RoundRobin, Selector, Swarm, and GraphFlow orchestration
- Simplified tool integration - Easy-to-use tool and MCP server support
- Model flexibility - Support for all major LLM providers
- Memory management - Built-in state and memory handling
Agents
Learn about AssistantAgent, CodeExecutorAgent, and custom agents
Teams
Explore multi-agent orchestration patterns
Tools
Integrate tools and MCP servers with your agents
Models
Connect to OpenAI, Anthropic, Azure, and more
When to use AgentChat
Use AgentChat when you want to:- Rapid prototyping - Get a working multi-agent system in minutes
- Common patterns - Use established orchestration patterns (round-robin, selector, swarm)
- Simplified development - Focus on your application logic, not infrastructure
- Tool integration - Easily connect agents to external tools and APIs
For advanced use cases requiring full control over message routing and agent lifecycle, consider using the Core API directly.
Quick example
Core concepts
Agents
Agents are the building blocks of your application. Each agent has:- A name and description
- A model client for LLM interactions
- Optional tools for external capabilities
- A system message defining its behavior
Teams
Teams orchestrate multiple agents working together:- RoundRobinGroupChat - Agents take turns in sequence
- SelectorGroupChat - An LLM selects the next speaker
- Swarm - Agents hand off tasks dynamically
- GraphFlow - Custom graph-based orchestration
Messages
Agents communicate through typed messages:TextMessage- Plain text communicationToolCallSummaryMessage- Results from tool executionHandoffMessage- Task transfers between agentsStructuredMessage- Typed structured data
Tools
Tools extend agent capabilities:- Function tools - Python functions as tools
- MCP servers - Model Context Protocol servers
- Code execution - Safe code execution in containers
- Custom tools - Build your own tool implementations
Architecture
AgentChat sits on top of the Core layer:Next steps
Quickstart
Build your first agent in 5 minutes
Agents
Explore different agent types
Teams
Learn about multi-agent patterns
Examples
See AgentChat in action