Skip to content

feat: add AG2 (formerly AutoGen) integration package and sample#1512

Open
VasiliyRad wants to merge 4 commits intokagent-dev:mainfrom
VasiliyRad:vasiliyr/03152026
Open

feat: add AG2 (formerly AutoGen) integration package and sample#1512
VasiliyRad wants to merge 4 commits intokagent-dev:mainfrom
VasiliyRad:vasiliyr/03152026

Conversation

@VasiliyRad
Copy link

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:

  • python/packages/kagent-ag2/ — AG2AgentExecutor wrapping initiate_group_chat as an A2A executor, KAgentApp for FastAPI application building, basic unit tests
  • python/samples/ag2/research-report/ — 2-agent research team with K8s deployment manifest and Dockerfile
  • Doc updates: README, CLAUDE.md, CNCF technical review, SKILL.md

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.

@VasiliyRad VasiliyRad requested a review from EItanya as a code owner March 17, 2026 05:06
Copilot AI review requested due to automatic review settings March 17, 2026 05:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ag2 package with AG2AgentExecutor and KAgentApp wrapping 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants