Agent framework - verified
AG2 (formerly AutoGen): features, install and latest version
AG2 (formerly AutoGen) is an AI agent framework maintained by AG2AI (volunteer maintainers from several organizations; project administrators Chi Wang and Qingyun Wu). As its docs describe it: AG2 is an open-source, async Python framework for building AI agents and multi-agent networks that diverged from the original AutoGen codebase in November 2024; since v1.0 the classic autogen API lives in the separate AG2 Classic package. It supports Python. License: Apache-2.0. Latest release: Python package ag2 1.1.2 (October 3, 2026).
- Languages
- 1
- Latest Python
- 1.1.2
- Released
- 2026-10-03
- Features documented
- 10 of 10
Install
Copied verbatim from the page linked under each command.
Quickstart
The first example from the official docs, unchanged. It may need an API key for the model provider it calls.
import asyncio
from ag2 import Agent
from ag2.config import OpenAIConfig
agent = Agent(
"assistant",
prompt="You are a helpful assistant.",
config=OpenAIConfig(model="gpt-4o-mini"),
)
async def main() -> None:
reply = await agent.ask("Summarize the main differences between Python lists and tuples.")
print(reply.body)
asyncio.run(main())Features
What the AG2 (formerly AutoGen) docs say it supports. Not stated means the docs do not say either way.
| Feature | Value | Source |
|---|---|---|
| MCP | Yes | docs.ag2.ai/docs/user-guide/tools/mcp_servers |
| Multi-agent | Yes | docs.ag2.ai/docs/user-guide/network/overview |
| Durable execution | Yes | docs.ag2.ai/docs/user-guide/resume |
| Human in the loop | Yes | docs.ag2.ai/docs/user-guide/context/human_in_the_loop |
| Streaming | Yes | docs.ag2.ai/docs/user-guide/agents |
| Structured output | Yes | docs.ag2.ai/docs/user-guide/structured_output |
| Tracing | Yes | docs.ag2.ai/docs/user-guide/telemetry/agent |
| Memory | Yes | docs.ag2.ai/docs/user-guide/advanced/knowledge_store |
| Evals | Yes | docs.ag2.ai/docs/user-guide/evaluation/evaluation |
| Model-agnostic | Yes | github.com/ag2ai/ag2/blob/main/README.md |
| Languages | Python | See sources below |
| License | Apache-2.0 | github.com/ag2ai/ag2/blob/main/LICENSE |
| Latest Python release | ag2 1.1.2October 3, 2026 | pypi.org/project/ag2/1.1.2 |
Compare AG2 (formerly AutoGen)
FAQ
Does AG2 (formerly AutoGen) support MCP?
Yes, per https://docs.ag2.ai/docs/user-guide/tools/mcp_servers/
Which languages does AG2 (formerly AutoGen) support?
Python. Published packages: ag2 (Python).
How do I install AG2 (formerly AutoGen)?
For Python: "pip install "ag2[openai]"", as shown at https://docs.ag2.ai/docs/user-guide/quick-start/. This page lists 2 install commands, each copied from the linked source.
What is the latest version of AG2 (formerly AutoGen)?
As of October 18, 2026: Python package ag2 1.1.2 (October 3, 2026), https://pypi.org/project/ag2/1.1.2/.
What license is AG2 (formerly AutoGen) released under?
Apache-2.0. The license is at https://github.com/ag2ai/ag2/blob/main/LICENSE.
Does AG2 (formerly AutoGen) support durable execution?
Does AG2 (formerly AutoGen) support human-in-the-loop?
Yes, per https://docs.ag2.ai/docs/user-guide/context/human_in_the_loop/
Is AG2 (formerly AutoGen) model-agnostic?
Which features does AG2 (formerly AutoGen) document?
10 of the 10 tracked here: MCP, Multi-agent, Durable execution, Human in the loop, Streaming, Structured output, Tracing, Memory, Evals and Model-agnostic.
Sources
Last verified from the pages below.
- GitHub README - github.com
- Docs: Quick Start - docs.ag2.ai
- Docs index (llms.txt) - docs.ag2.ai
- Docs: Resuming a Turn - docs.ag2.ai
- Docs: Agent Communication - docs.ag2.ai
- PyPI ag2 1.1.2 - pypi.org
- AG2 Classic repository - github.com
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.