Add AG2 (formerly AutoGen) multi-agent runtime#684
Open
VasiliyRad wants to merge 4 commits intornadigital:masterfrom
Open
Add AG2 (formerly AutoGen) multi-agent runtime#684VasiliyRad wants to merge 4 commits intornadigital:masterfrom
VasiliyRad wants to merge 4 commits intornadigital:masterfrom
Conversation
…t tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
@iandjx, could you please review this change? It adds AG2 as a new multi-agent runtime alongside LangGraph and CrewAI. |
Collaborator
|
@VasiliyRad is this deployed to the cloud? How do i test it out? thanks |
Author
Not on cloud yet. To test: run locally, go to Apps → New App → Process App — AG2 is now one of the framework options. Create an app with agents/tasks, save, and hit Play.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
AppType.AG2as a third runtime alongside the existing LangGraph and CrewAI runtimes. Implementsag2/builder.py(parallel tocrew/builder.py) with three orchestration modes: two-agent, group chat, and reasoning. Includes platform tool adapter, Socket.IO streaming integration, LLM config bridge, and a webapp form component for mode selection. Uses AG2 v0.11+ with Docker sandbox for safe code execution.Why: AgentCloud currently supports LangGraph (stateful graph workflows) and CrewAI (role-based crews), but both use a central orchestrator that decides turn order at design time. AG2 fills a gap with conversational multi-agent patterns — GroupChat with LLM-driven dynamic speaker selection and ReasoningAgent with built-in tree-of-thought. ReasoningAgent has no equivalent in LangGraph or CrewAI and is the clearest differentiator for complex planning tasks. The implementation follows the existing
crew/module pattern exactly (builder + runner + streaming), so the integration surface is well-defined and the review scope is contained.Files added:
agent-backend/ag2/(4 files) +webapp/src/components/AgentCloudAG2Form.tsxFiles modified:
agent-backend/models/apptype.py,agent-backend/router.py