feat: add AG2 (formerly AutoGen) integration package and sample#1512
Open
VasiliyRad wants to merge 4 commits intokagent-dev:mainfrom
Open
feat: add AG2 (formerly AutoGen) integration package and sample#1512VasiliyRad wants to merge 4 commits intokagent-dev:mainfrom
VasiliyRad wants to merge 4 commits intokagent-dev:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds AG2 (formerly AutoGen) as a new BYO agent framework integration for kagent, following the same pattern as existing integrations (kagent-crewai, kagent-openai). Includes the integration package, a sample research-report agent, and documentation updates.
Changes:
- New
kagent-ag2package withAG2AgentExecutorandKAgentAppwrapping AG2 group chat as an A2A executor - Sample 2-agent research-report application with Dockerfile and K8s deployment manifest
- Documentation updates across README, CLAUDE.md, SKILL.md, and CNCF technical review to list AG2
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| python/packages/kagent-ag2/src/kagent/ag2/_executor.py | Core executor wrapping AG2 group chat for A2A protocol |
| python/packages/kagent-ag2/src/kagent/ag2/_a2a.py | KAgentApp FastAPI builder for AG2 |
| python/packages/kagent-ag2/src/kagent/ag2/init.py | Package init exporting KAgentApp |
| python/packages/kagent-ag2/pyproject.toml | Package metadata and dependencies |
| python/packages/kagent-ag2/tests/test_executor.py | Basic unit tests for executor |
| python/samples/ag2/research-report/* | Sample app with agent card, manifest, Dockerfile |
| README.md, CLAUDE.md, SKILL.md, technical-review.md | Doc updates mentioning AG2 |
| examples/modelconfig-with-tls.yaml | Comment update adding AG2 to framework list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
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 AG2 as a supported BYO agent framework in kagent. AG2 is the community-driven fork of Microsoft AutoGen with a modernized API for multi-agent orchestration.
Changes:
The integration follows the same pattern as kagent-crewai and kagent-openai: pattern_factory creates fresh agents per request, group chat runs via asyncio.to_thread, results emitted as A2A events.