#7070th of 142 in Agent frameworks and SDKs
ag2
Python framework for building single agents and multi-agent networks
- Stars
- 5.1k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
4,378 on 22 Apr 20265,060 on 11 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
AG2 v1.0 is an async Python library (import ag2) where an Agent calls a model provider, runs @tool functions and returns a reply. Multiple agents coordinate through a Network: a Hub with a write-ahead log and typed channels (conversation, consulting, discussion, workflow). Optional harness pieces add a knowledge store, memory injection and history compaction. The older autogen API now lives in ag2-classic.
Who it is for: Python developers building multi-agent LLM applications
Strengths
- Typed Network channels with a hub write-ahead log and audit trail for multi-agent runs
- Opt-in knowledge store and summarizing history compaction, with disk-backed persistence
- Human-in-the-loop via context.input() inside tools, with a pluggable hitl_hook
- Provider extras for OpenAI, Anthropic, Gemini and Ollama; minimal default dependencies
Weaknesses
- v1.0 is not a drop-in upgrade from the autogen-based classic API
- Requires Python 3.11 or newer
- Async-only API; no synchronous entry point shown
- Maintained by volunteers across organizations, per the README
What it needs
- no GPU
- Needs Python >= 3.11, LLM provider API key (OpenAI, Anthropic, Gemini) or Ollama
- Models: OpenAI, Anthropic, Gemini, Ollama
What changed
- v.1.3.1 ↗ (opens in a new tab)Breaking
“A2UI v1.0 now speaks the stable upstream spec. 1.3.0 targeted a release candidate. v1.0 messages carry "version": "1.0" instead of "v1.0", the basic catalog requires TextField.value, and custom v1.0 …”
- v1.2.2 ↗ (opens in a new tab)Breaking
“OpenAIConfig is deprecated and becomes the Responses API in 1.4.0. The current Chat Completions behavior is now OpenAICompletionsConfig; OpenAIConfig still works unchanged but emits a DeprecationWarn…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Agent frameworks and SDKs
See all 142| Rank | Project | Score |
|---|---|---|
| 1 | ppt-masterAgent skill that turns documents into natively editable PowerPoint decks | 96 out of 100 |
| 2 | openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing | 92 out of 100 |
| 3 | mastraTypeScript framework for building AI agents, workflows and MCP servers | 92 out of 100 |
| #4 | browser-usePython library that lets an LLM agent control a web browser | 90 out of 100 |
| #5 | copilotkitReact and Angular SDK for adding agent chat and generative UI to apps | 90 out of 100 |