Install
pip install ag2AG2 is the community fork of AutoGen. Same multi-agent DNA, plus a new event-driven architecture (autogen.beta), A2A protocol support, and a first-class CLI.
Install
pip install ag2Version
v0.13.3 · June 2026 · Python 3.10+
Best for
Research-grade multi-agent systems, GroupChat, event-driven conversations.
ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.3 (.routine-envs/refresh-py, 2026-06-07) with upstream jsonschema warning suppressed (known upstream issue); 57 top-level exports confirmed. No DeprecationWarning emissions from ag2 itself.ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.2 (.routine-envs/check-0529-ag2) with warnings suppressed (upstream jsonschema issue); 57 top-level exports confirmed.ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.1 (.routine-envs/check-0523-ag2) with -W error::DeprecationWarning (warnings suppressed for upstream issues); 57 top-level exports confirmed.SwarmAgent and initiate_swarm_chat have been removed from the top-level autogen namespace. The canonical path is now from autogen.agentchat.contrib.swarm_agent import SwarmAgent, initiate_swarm_chat. Three new top-level swarm functions added: run_swarm(initial_agent, messages, agents, ...), a_run_swarm(...) (async), and a_initiate_swarm_chat(...) (async). All previously-verified core symbols (ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, LLMConfig) confirmed present in installed ag2==0.13.0 (.routine-envs/check-0520-ag2).autogen imports emit DeprecationWarning via jsonschema.RefResolver (upstream issue in jsonschema>=4.18.0; does not affect ag2 API behaviour).autogen.beta — new event-driven architecture for complex conversations.from autogen import ConversableAgent, LLMConfig
# Option A — inline configllm_config = LLMConfig({"api_type": "openai", "model": "gpt-4o"})
# Option B — load from OAI_CONFIG_LIST env var or file# llm_config = LLMConfig.from_json(env="OAI_CONFIG_LIST")# llm_config = LLMConfig.from_json(path="OAI_CONFIG_LIST.json")
agent = ConversableAgent( name="assistant", llm_config=llm_config, system_message="You are a helpful assistant.",)
reply = agent.generate_reply( messages=[{"role": "user", "content": "Hello!"}])print(reply)
config_list_from_jsonis not re-exported at the top ofautogenin v0.11+. UseLLMConfig/LLMConfig.from_json(preferred) or the deep pathfrom autogen.llm_config.config import config_list_from_json.
Ready? Start Zero → Hero Step 1 →
| Date | Version | Changes | Reviewer |
|---|---|---|---|
| 2026-06-07 | 0.13.3 | Patch release bump 0.13.2 → 0.13.3; version card updated to v0.13.3; “What’s new” heading updated; v0.13.3 bullet added; comprehensive guide description updated; revision history entry added. Core symbols (ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.3 (.routine-envs/refresh-py, 2026-06-07) with upstream jsonschema warning suppressed; 57 top-level exports confirmed. | Claude routine |
| 2026-05-29 | 0.13.2 | Patch release bump 0.13.1 → 0.13.2; “What’s new” heading updated to v0.13.2; v0.13.2 bullet added; comprehensive guide header updated; revision history entry added. Core symbols (ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.2 (.routine-envs/check-0529-ag2) with warnings suppressed (upstream issue); 57 top-level exports confirmed. | Claude routine |
| 2026-05-23 | 0.13.1 | Patch release bump 0.13.0 → 0.13.1; “What’s new” heading updated to v0.13.1; v0.13.1 bullet added; comprehensive guide header updated; revision history entry added. Core symbols (ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, register_function, runtime_logging) verified against installed ag2==0.13.1 (.routine-envs/check-0523-ag2) with warnings suppressed (upstream issue); 57 top-level exports confirmed. | Claude routine |
| 2026-05-20 | 0.13.0 | Version bumped 0.12.3 → 0.13.0; “What’s new” heading updated to v0.13.0; v0.13.0 bullet added documenting swarm API refactor (SwarmAgent/initiate_swarm_chat moved to autogen.agentchat.contrib.swarm_agent; new top-level run_swarm, a_run_swarm, a_initiate_swarm_chat); comprehensive guide header updated; revision history entry added. Core symbols (ConversableAgent, AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager, LLMConfig) verified against installed ag2==0.13.0 (.routine-envs/check-0520-ag2) with -W error::DeprecationWarning; all PASS. | Claude routine |
| 2026-05-09 | 0.12.3 | Version bumped 0.12.2 → 0.12.3 (patch release); “What’s new” updated; comprehensive guide header updated; revision history entry added. autogen.ConversableAgent, GroupChat, GroupChatManager, AssistantAgent, UserProxyAgent verified against installed ag2 0.12.3 (.routine-envs/check-0509-py). Upstream DeprecationWarning via jsonschema.RefResolver noted as ag2 upstream issue. | Claude routine |
| 2026-05-01 | 0.12.2 | Version bumped 0.12.1 → 0.12.2; comprehensive guide header updated; revision history entry added. autogen.ConversableAgent import verified against installed 0.12.2 (.routine-envs/check-ag2-0501). | Claude routine |
| 2026-04-25 | 0.12.1 | Version bumped 0.12.0 → 0.12.1; comprehensive guide header updated; revision history entry added. Snippets verified against installed 0.12.1. | Claude routine |
| 2026-04-21 | 0.11.5 | Index redesigned with Zero → Hero + Jump-to-topic grid. | — |
| April 5, 2026 | 0.11.5 | event-driven architecture; A2A; CLI; QuickResearchTool. | — |
| November 2025 | 0.3.2 | Initial AG2 rebrand after AutoGen → AG2 community continuation. | — |