Dev & Engineering multi-agentpythontool-callinghuman-in-the-loopknowledge-storenetwork

AG2: Open-Source AgentOS

A programming framework for building AI agents and enabling multi-agent cooperation to solve tasks.

FollowAgents review · FARS-2.1
Not recommended
55/ 100 5-point scale 2.8 / 5
1 2 3 4 5 6
1Trust12 / 29 · 2.1/5

Evidence shows: README emphasizes API keys via environment variables to avoid hardcoding, reflecting partial least privilege practice, but no finer-grained permission control documentation, so score 1. User confirmation: README demonstrates human-in-the-loop via context.input to pause and request human approval, sufficient evidence, score 2. Data flow transparency: README mentions hub has write-ahead log and audit trail, but no detailed data flow or log content, insufficient, score 1. Sensitive data handling: only mentions keys via env vars, no other sensitive data policies, score 1. Dependency security: pyproject.toml lists dependencies and version ranges, but no security audit or vulnerability scanning, score 1. External effects: tools can call external APIs, but no side-effect control, score 1. Rollback: no rollback mechanism mentioned, score 1. Source attribution: README and LICENSE clarify copyright and contributors, but publisher unverified, score 2.

2Reliability8 / 14 · 2.9/5

Self-consistency: README and pyproject.toml are mostly consistent in version, dependencies, and features, but some inconsistencies like README mentions 'AG2 Classic' while pyproject.toml does not, score 2. Dependency availability: dependency list complete, but no availability guarantee, score 2. Failure messages: error handling may exist in code, but not documented, score 1.

3Adaptability12 / 18 · 3.3/5

Audience and scenarios: README targets developers with multiple scenario examples, score 2. Capability boundaries: README distinguishes AG2 and AG2 Classic, but not all boundaries, score 2. Trigger precision: tool calls and event triggers clearly explained, score 2. Environment fit: supports multiple Python versions and OS, but no specific environment limitations, score 2.

4Convention11 / 18 · 3.1/5

Information architecture: README well-structured with TOC and links, score 2. Install notes: provides pip install commands and dependency instructions, score 2. Naming stability: version 1.0.1 indicates stability, but no naming conventions, score 2. Examples and FAQ: multiple code examples, but no FAQ, score 2. Known limitations: not explicitly listed, score 1. License: Apache-2.0 license complete, score 3. Versioning and changelog: version number in pyproject.toml, but no changelog, score 1. Maintenance responsibility: README mentions maintainers, but no clear division, score 2.

5Effectiveness9 / 13 · 3.5/5

Output usability: code examples show how to get replies, but no output format variety, score 2. Marginal value: framework provides multi-agent collaboration, tool calling, etc., high value, score 2. Cost-benefit: open-source free, but no performance or cost analysis, score 2.

6Verifiability3 / 8 · 1.9/5

Claim traceability: claims in README lack specific evidence or links, score 1. Cross-source corroboration: only README and pyproject.toml, lack other sources, score 1. Fact-inference separation: facts and inferences mixed, not clearly separated, score 1.

Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision 9f24241bc41a
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Publisher identity unverified, proceed with caution.
  • Dependency security lacks audit or vulnerability scanning, check yourself.
  • Sensitive data handling policies unclear, especially user data.
  • Rollback mechanism absent, be aware.
  • Known limitations not listed, potential hidden issues.
Review evidence [1][2][3][4][5][6][7][8]
See the full review method →

What does this agent do, and when should you use it?

AG2 (formerly AutoGen) is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. AG2 v1.0 introduces a protocol-driven architecture with a new top-level `ag2` package, focusing on the `Agent` class, async operations, and a Network system with a Hub and typed channels for orchestration. It includes features like tool calling via `@tool` decorator, human-in-the-loop support via `hitl_hook`, and knowledge storage and compaction. The framework requires Python 3.10+ and supports multiple LLM providers (OpenAI, Anthropic, Gemini, etc.). The classic AutoGen framework (the `autogen.*` namespace) has moved to a separate repository, `ag2ai/ag2-classic`, and remains maintained.

AG2 enables developers to create Agent instances that interact via ask() methods, use decorated functions as tools, and incorporate human oversight through context.input. It orchestrates multiple agents via a Hub and various channel types (conversation, consulting, discussion, workflow), logging to a write-ahead log. The framework provides KnowledgeStore implementations (e.g., DiskKnowledgeStore) and strategies like SummarizeCompact for memory management. After installation, you can run a simple agent by importing Agent and OpenAIConfig, setting your API key, and calling ask().

  1. Developers needing a flexible multi-agent framework to build applications where multiple AI agents collaborate.
  2. AI assistants requiring tool calling and human approval workflows (human-in-the-loop).
  3. Systems that need memory persistence across sessions (e.g., remembering user preferences).
  4. Orchestrating AI agents into networks (using channels like conversation or workflow) to solve complex tasks.
  5. Researchers who want to test different model providers (OpenAI, Anthropic, Gemini) while keeping code unified.

What are this agent's strengths and limitations?

Pros
  • Protocol-driven network (Hub and channels) offers more flexible and scalable orchestration than classic GroupChat.
  • Built-in tool calling, human-in-the-loop, and knowledge storage (KnowledgeStore).
  • Supports multiple major LLM providers (OpenAI, Anthropic, Gemini, etc.) for easy switching.
  • Active community and thorough documentation (docs.ag2.ai).
Limitations
  • Migration from AutoGen requires code refactoring: imports, class names, and orchestration patterns change (e.g., ConversableAgentAgent).
  • Core uses async APIs, which can have a learning curve for developers unfamiliar with asyncio.
  • Documentation is primarily for Python, potentially unsuitable for non-Python developers.
  • Depends on external LLM APIs, requiring network connection and API keys, which may incur costs.

How do you install or deploy this agent?

On Windows/Linux run pip install ag2[openai], on Mac run pip install 'ag2[openai]'. Alternatively, install extras for your provider: ag2[anthropic], ag2[gemini], ag2[ollama]. Requires Python 3.10+.

How do you use this agent?

Set your API key: export OPENAI_API_KEY="<your-api-key>" (or ANTHROPIC_API_KEY, etc.). Import Agent and OpenAIConfig from ag2. Create an Agent instance, then await agent.ask("your question"). For tools, decorate an async function with @tool and pass it in the tools parameter. For multi-agent, use Hub.open() and hub.register() to create agents and channels. See documentation and examples for detailed workflows.

How does this agent compare with similar options?

Compared to AutoGen (classic), AG2 v1.0 introduces a new network-based orchestration model that emphasizes protocol-driven design.

FAQ

What is the difference between AG2 and AutoGen?
AG2 v1.0 is the successor to AutoGen but with a new architecture; imports and class names changed (autogenag2, ConversableAgentAgent). The classic AutoGen has moved to a separate repository ag2-classic and remains installable.
What are the hardware requirements for AG2?
AG2 only requires Python 3.10+ and network connectivity (to call LLM APIs). No GPU is needed because it relies on external model providers.
How do I migrate from AutoGen?
Official migration guide is available at docs.ag2.ai/docs/user-guide/network/migration_from_group_chat/. It's recommended to understand the new concepts first and then refactor your code.
Which model providers are supported?
AG2 supports OpenAI, Anthropic, Gemini, Ollama, etc., via different extras. Install the corresponding extra and set the API key.

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents