AG2 is the community fork of AutoGen. PraisonAI supports AG2 as a dedicated framework backend with GroupChat orchestration, automatic tool registration, and native AWS Bedrock support.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Need a framework that isn’t listed here? See Framework Adapter Plugins to register your own via Python entry points.
Which AG2 Option to Choose
PraisonAI has two AG2-related framework options:| Option | Install | When to Use |
|---|---|---|
framework: ag2 | pip install "praisonai[ag2]" | New projects, Bedrock support, latest AG2 |
framework: autogen | pip install "praisonai[autogen]" | Existing AutoGen v0.2/v0.4 projects |
Quick Start (AG2)
How AG2 Works
AG2 uses a GroupChat pattern: aUserProxy agent initiates the conversation, and a GroupChatManager routes messages between your defined agents. Agents collaborate until one says “TERMINATE”.
Multi-Agent Example
AWS Bedrock Support
AG2 natively supports AWS Bedrock models. No API key needed - uses your AWS credentials.~/.aws/credentials, environment variables, or IAM role).
Auto Mode
Legacy AutoGen (v0.2 / v0.4)
For existing projects using the older AutoGen package:AutoGen Version Selection
Framework Selection Priority
- CLI flag (
--framework ag2) takes precedence - YAML file (
framework: ag2) is used if no CLI flag - Default: praisonai framework
The
roles format YAML is required for both ag2 and autogen frameworks. The newer steps + agents workflow format only supports the praisonai framework.Troubleshooting
Unsupported framework error: If you seeUnsupported framework: autogen. Registered: ['ag2', 'autogen', 'autogen_v4', 'crewai', 'praisonai'], check spelling — frameworks are registered via the adapter registry.
Missing installation errors:
AG2 is not available. Install with: pip install ag2— Install AG2 dependenciesAutoGen v0.2 is not available. Install with: pip install autogen— Install AutoGen v0.2 dependencies
Best Practices
Use AG2 for new projects
Use AG2 for new projects
The dedicated
ag2 framework uses the latest AG2 package with LLMConfig support and native Bedrock. Use autogen only for existing codebases.Keep agent roles focused
Keep agent roles focused
Each role should have a clear, distinct responsibility. The GroupChat manager routes messages based on role descriptions.
Use Bedrock for AWS environments
Use Bedrock for AWS environments
Set
api_type: bedrock in the role’s llm config. No API keys needed when running on AWS with proper IAM roles.Related
CrewAI
CrewAI framework integration
Agents
PraisonAI native agents

