AG2

Active
GitHub Python Apache-2.0

Description

AG2 (formerly AutoGen) is an open-source AgentOS providing a multi-agent conversation framework with flexible agent orchestration, tool integration, and distributed collaboration for building complex multi-agent systems.

Key Features

  • Multi-agent conversation framework with flexible orchestration patterns including swarms, group chats, and nested chats
  • Support for multiple LLM providers with configurable API keys and model selection
  • Human-in-the-loop workflows enabling human oversight and input in agent conversations
  • Tool registration and execution system allowing agents to invoke external programs and APIs
  • Code execution capabilities with Docker support for sandboxed Python code running
  • Advanced agent design patterns including structured outputs and RAG integration

Use Cases

💡 Building collaborative AI systems where multiple agents work together to solve complex tasks
💡 Creating automated workflows with human oversight for critical decision-making processes
💡 Developing code review systems with agent collaboration for quality assurance
💡 Implementing research assistants that can gather, analyze, and synthesize information
💡 Building customer support systems with multi-agent coordination

Quick Start

Install AG2 via pip install 'ag2[openai]'. Configure API keys in OAI_CONFIG_LIST file. Create a simple script with AssistantAgent and UserProxyAgent to start your first agent conversation. Example: user_proxy.run(assistant, message='Summarize Python lists vs tuples').process()

Related Projects

Related Articles