Python: AutoGen migration samples#1738
Merged
ekzhu merged 6 commits intomicrosoft:mainfrom Oct 28, 2025
ekzhu:autogen-migration
Merged
Python: AutoGen migration samples#1738ekzhu merged 6 commits intomicrosoft:mainfrom ekzhu:autogen-migration
ekzhu merged 6 commits intomicrosoft:mainfrom
ekzhu:autogen-migration
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds AutoGen to Microsoft Agent Framework migration samples demonstrating side-by-side API comparisons for developers transitioning from AutoGen.
Key Changes
- Adds comprehensive single-agent examples (basic agents, tools, threading, hierarchical patterns)
- Adds multi-agent orchestration examples (round-robin, selector-based, swarm handoffs, MagenticOne)
- Configures development tooling to support AutoGen dependencies
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| python/samples/autogen-migraiton/single_agent/01_basic_assistant_agent.py | Basic agent comparison showing AutoGen AssistantAgent vs AF ChatAgent |
| python/samples/autogen-migraiton/single_agent/02_assistant_agent_with_tool.py | Tool integration comparison using FunctionTool vs @ai_function decorator |
| python/samples/autogen-migraiton/single_agent/03_assistant_agent_thread_and_stream.py | Thread management and streaming response patterns |
| python/samples/autogen-migraiton/single_agent/04_agent_as_tool.py | Hierarchical agent pattern with agents as tools |
| python/samples/autogen-migraiton/orchestrations/01_round_robin_group_chat.py | Round-robin orchestration via RoundRobinGroupChat vs SequentialBuilder/WorkflowBuilder |
| python/samples/autogen-migraiton/orchestrations/02_selector_group_chat.py | LLM-based speaker selection via SelectorGroupChat vs GroupChatBuilder |
| python/samples/autogen-migraiton/orchestrations/03_swarm.py | Handoff coordination via Swarm vs HandoffBuilder |
| python/samples/autogen-migraiton/orchestrations/04_magentic_one.py | Orchestrated multi-agent workflows via MagenticOneGroupChat vs MagenticBuilder |
| python/samples/autogen-migraiton/README.md | Documentation for migration samples |
| python/samples/autogen-migraiton/pyrightconfig.json | Type checking exclusions for AutoGen source |
| python/samples/autogen-migraiton/.gitignore | Excludes AutoGen source files from version control |
| python/pyproject.toml | Adds AutoGen dependencies and configures type checking exclusions |
Contributor
victordibia
approved these changes
Oct 27, 2025
TaoChenOSU
reviewed
Oct 27, 2025
moonbox3
reviewed
Oct 27, 2025
moonbox3
reviewed
Oct 27, 2025
4 tasks
moonbox3
approved these changes
Oct 28, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
* add autogen migration samples * fix typo * remove comment * fix typo * fix lab pyright * fix for HuggingFace change
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.
AutoGen (Python) migration samples.
Note: we may need to add more samples focusing on state management but let's wait for the workflow API to stablize.