AutoGen2 (AG2) — Creation and Coordination of AI Agents
AG2 advances the AutoGen approach to building multi-agent systems: specialized AI agents are assigned distinct roles, tools, and messaging rules.

AG2 is a community fork of AutoGen, which, after part of the team split off in November 2024, has been developed under the management of the ag2ai organization. Microsoft continued its own branch of the project, later steering it toward the Microsoft Agent Framework.
In version 1.0, released in 2026, the framework focused on an asynchronous architecture: model and tool calls do not block execution, and responses are streamed by default. Support for the MCP, A2A, and AG-UI protocols was also announced.
At the core of AG2 is the Agent—an object with a prompt, a connected model, and a set of tools. Python functions can be marked with the @tool decorator: the library automatically passes the model’s call request, executes the function, and returns the result to the conversation. For code execution, SandboxCodeTool and SandboxShellTool are provided, with isolated environments from E2B and boxd.
The framework supports human-in-the-loop: execution can be paused for a human to confirm an action or provide data. For multiple agents in AG2 v1.x, a Network with typed channels is used. For example, one agent drafts a document, a second reviews it, and a third refines the approved version. Additionally, middleware for intercepting calls and structured responses based on Pydantic schemas are available.





