Skip to content

Python: AutoGen migration samples#1738

Merged
ekzhu merged 6 commits intomicrosoft:mainfrom
ekzhu:autogen-migration
Oct 28, 2025
Merged

Python: AutoGen migration samples#1738
ekzhu merged 6 commits intomicrosoft:mainfrom
ekzhu:autogen-migration

Conversation

@ekzhu
Copy link
Copy Markdown
Contributor

@ekzhu ekzhu commented Oct 27, 2025

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.

Copilot AI review requested due to automatic review settings October 27, 2025 19:55
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Oct 27, 2025
@github-actions github-actions bot changed the title AutoGen migration samples Python: AutoGen migration samples Oct 27, 2025
Copy link
Copy Markdown
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

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

@markwallace-microsoft markwallace-microsoft added the lab Agent Framework Lab label Oct 27, 2025
@markwallace-microsoft
Copy link
Copy Markdown
Contributor

markwallace-microsoft commented Oct 27, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL12296200983% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
1404 98 💤 0 ❌ 0 🔥 27.585s ⏱️

@ekzhu ekzhu added this pull request to the merge queue Oct 28, 2025
Merged via the queue into microsoft:main with commit 3194851 Oct 28, 2025
29 of 31 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lab Agent Framework Lab python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants