Download Latest Version v0.13.0 source code.tar.gz (7.0 MB)
Email in envelope

Get an email when there's a new version of AG2

Home / v0.13.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-13 8.9 kB
v0.13.0 source code.tar.gz 2026-05-13 7.0 MB
v0.13.0 source code.zip 2026-05-13 8.7 MB
Totals: 3 Items   15.7 MB 0

Highlights

๐Ÿ›ฃ๏ธ The Path to v1.0 โ€” A Major Step

v0.13.0 is a significant release for our journey to V1.0. It introduces a brand-new Multi-Agent Network runtime and LiveAgent for full-duplex realtime voice. Plus, A2A v1.0 and MCP now in Beta to complete the connectivity story.

๐Ÿ“ Release Roadmap

๐ŸŒ Network โ€” Multi-Agent Runtime (NEW)

Other frameworks treat an agent or a graph as the primitive. AG2 Beta makes the channel between agents the primitive โ€” a durable, identity-scoped, protocol-typed container. Open it, work inside it, close it. The channel is the artifact.

  • ๐Ÿ”— Channel as the unit โ€“ Append-only event log per channel. Adapter state is derived from the log, so a hub restart is a non-event.
  • ๐ŸŽญ Choreography you can dial in โ€“ From open multi-party discussion to fully declared workflows, all on the same primitive. Four built-in patterns ship today:
    • consulting โ€” 1โ†”1, one round (strict Q+R, auto-close)
    • conversation โ€” 1โ†”1, multi-turn (bidirectional, long-running)
    • discussion โ€” N-party turn-taking (round-robin, dynamic, or static ordering)
    • workflow โ€” orchestrated by a declarative TransitionGraph, with conditions and dynamic handoffs (great for transitioning your classic AG2 group chats - Guidance)
  • ๐Ÿ› ๏ธ Design your own orchestration โ€“ The ChannelAdapter protocol is small (~50 lines for a custom adapter). Define your own manifest, state, and turn-taking rules; reuse the durability and identity layers for free.
  • ๐Ÿชช Identity is three records โ€“ Passport (immutable, hub-stamped), Resume (mutable track record + observed stats), SKILL.md (LLM-facing doc). Discovery ranks by observed outcomes.
  • ๐Ÿค Federation with Passport + Visa โ€“ A channel can span two hubs the same way a TCP connection spans two networks. Cross-org channels are the base case, not an extension.
  • ๐Ÿ‘ค HumanClient โ€“ Humans are peers on the network, not a special case.

๐ŸŽฎ Try it in the Playground โ€“ An 8-page hands-on walkthrough (~30 min) with full code examples. Build a hub, register agents, open channels, walk through all four turn-taking patterns, hub-side governance, and write your own adapter from scratch.

๐Ÿ“” Docs: Multi-Agent Network

๐ŸŽ™๏ธ LiveAgent โ€” Realtime Voice (NEW)

New autogen.beta.live module for full-duplex voice agents backed by provider realtime APIs. Unlike turn-by-turn STT/TTS pipelines, LiveAgent opens a single bidirectional session for the entire conversation โ€” audio flows in and out continuously.

  • ๐ŸŽค Single bidirectional session โ€“ No turn-by-turn round trips.
  • ๐Ÿ›‘ Built-in VAD and barge-in โ€“ Voice activity detection and interruption support out of the box.
  • ๐Ÿ› ๏ธ Same tool surface as Agent โ€“ @agent.tool decorator works identically; tool calls route through AG2's normal executor.
  • ๐ŸŒ Provider-neutral โ€“ OpenAI Realtime (10 voices: alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, cedar) and Gemini Live (8 voices: Aoede, Charon, Fenrir, Kore, Leda, Orus, Puck, Zephyr).
  • ๐Ÿ“ Text-only mode โ€“ Keep the realtime session for low-latency turn detection but disable audio output entirely.
  • ๐Ÿ”Š Audio peers โ€“ SoundDevicePlayer and SoundDeviceRecorder share the conversation context with the agent.

๐Ÿ“” Docs: LiveAgent ยท STT & TTS alternative also available.

๐Ÿ”— A2A v1.0 โ€” Now in Beta

A2A is now available in the Beta framework via the new autogen.beta.a2a module.

  • ๐Ÿ“ก Expose any AG2 Agent over A2A via A2AServer
  • ๐Ÿ”Œ Connect to a remote A2A endpoint as if it were an LLM provider via A2AConfig
  • ๐Ÿšš Transport-agnostic: JSON-RPC, HTTP+JSON (REST), or gRPC
  • ๐Ÿ“ฅ Tasks & push notifications for long-running work
  • Install with pip install "ag2[a2a]"

๐Ÿ“” Docs: A2A Overview

๐Ÿ”Œ MCP โ€” Now in Beta

Native MCP support in Beta with two connection patterns:

  • ๐Ÿ”„ Client-side (MCPServer) โ€“ AG2 connects to the MCP server, discovers tools, and executes them locally. Works with every provider. Supports remote HTTP and local stdio subprocesses.
  • ๐Ÿš€ Provider-side (MCPServerTool) โ€“ Server URL and credentials forwarded to the LLM provider (e.g. Anthropic).

๐Ÿ“” Docs: MCP Servers

๐Ÿ”ฌ Other Beta Updates

  • ๐Ÿงฌ Task Lifecycle Primitive โ€“ New foundation for managing long-running agent tasks.
  • ๐Ÿง  Gemini/Vertex AI Thinking Level โ€“ Thinking Level support added to the Gemini/Vertex AI client with thinking token usage tracking.
  • โš™๏ธ Anthropic extra_body Config โ€“ New configuration support for passing extra_body to Anthropic requests.
  • ๐Ÿ“š Knowledge: Opt-Out Flags + Observable Aggregation Lifecycle โ€“ More control over harness behavior, plus observability into aggregation.
  • ๐Ÿ”ง Typed Gemini ToolCallEvent Subclass โ€“ Replaced ToolCallEvent.provider_data with a typed Gemini subclass.

๐Ÿ” Security

  • ๐Ÿ›ก๏ธ SSRF Protection in Document Agent โ€“ URL validation added to prevent Server-Side Request Forgery.

Bug Fixes

  • ๐Ÿ”ง Beta: Gemini Schema โ€“ Strip additionalProperties recursively to fix anyOf rejections.
  • ๐Ÿ”ง Beta: Policies โ€“ Pair tool calls/results correctly after history trim.
  • ๐Ÿ”ง LLMConfig in Notebooks โ€“ Fixed LLMConfig usage across 5 notebooks.
  • ๐Ÿ”ง uv sync Resolution โ€“ Aligned optional-extras pins so uv sync resolves.

Documentation & Maintenance

  • ๐Ÿ“” Switched interop-pydantic-ai extra to pydantic-ai-slim.
  • ๐Ÿงช Various test fixes and LLM provider/package alignments.

What's Changed

New Contributors

Full Changelog: https://github.com/ag2ai/ag2/compare/v0.12.3...v0.13.0

Source: README.md, updated 2026-05-13