Use AG2 framework with PraisonAI for multi-agent GroupChat orchestration, tool registration, and AWS Bedrock support
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.
framework: ag2topic: Research the latest developments in AI agentsroles: researcher: role: AI Research Specialist goal: Find and summarize recent AI agent developments backstory: Expert researcher with deep knowledge of AI trends. tasks: research_task: description: Research the latest developments in {topic} expected_output: Summary report with key findings
AG2 uses a GroupChat pattern: a UserProxy agent initiates the conversation, and a GroupChatManager routes messages between your defined agents. Agents collaborate until one says “TERMINATE”.
framework: ag2topic: Write a blog post about renewable energyroles: researcher: role: Energy Research Analyst goal: Gather facts about renewable energy trends backstory: Expert in energy research and data analysis. tasks: research_task: description: Research current renewable energy trends for {topic} expected_output: Research brief with statistics and trends writer: role: Content Writer goal: Write engaging blog content based on research backstory: Skilled writer who turns technical research into readable content. tasks: writing_task: description: Write a blog post based on the research findings expected_output: Complete blog post with introduction, body, and conclusion
For existing projects using the older AutoGen package:
pip install "praisonai[autogen]"
framework: autogentopic: Create Movie Script About Cat in Marsroles: researcher: role: Research Analyst goal: Gather information about Mars and cats backstory: Skilled in research, with a focus on gathering accurate and relevant information. tasks: research_task: description: Research about Mars environment and cat behavior expected_output: Research findings document with key facts