Skip to content

Python: Remove duplicate samples#3899

Merged
moonbox3 merged 7 commits intomicrosoft:mainfrom
TaoChenOSU:taochen/python-remove-duplicate-samples
Feb 12, 2026
Merged

Python: Remove duplicate samples#3899
moonbox3 merged 7 commits intomicrosoft:mainfrom
TaoChenOSU:taochen/python-remove-duplicate-samples

Conversation

@TaoChenOSU
Copy link
Contributor

@TaoChenOSU TaoChenOSU commented Feb 12, 2026

Motivation and Context

We have duplicated samples in the repository. This is the aftermath of resolving large number of conflicts.

Description

Remove duplicated samples.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@TaoChenOSU TaoChenOSU self-assigned this Feb 12, 2026
Copilot AI review requested due to automatic review settings February 12, 2026 21:24
@TaoChenOSU TaoChenOSU added python samples Issue relates to the samples labels Feb 12, 2026
@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Feb 12, 2026
@github-actions github-actions bot changed the title Remove duplicate samples Python: Remove duplicate samples Feb 12, 2026
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

This PR removes duplicate sample files that were created during conflict resolution. The samples were duplicated in python/samples/getting_started/orchestrations/ and python/samples/02-agents/orchestrations/ directories, with the canonical versions residing in python/samples/03-workflows/orchestrations/.

Changes:

  • Deleted 15 duplicate sample files from getting_started and 02-agents directories
  • Cleaned up handoff_with_code_interpreter_file.py to remove V1/V2 client toggle logic and standardize on V2 client (AzureOpenAIResponsesClient)
  • Simplified the sample to use a single client approach instead of the conditional V1/V2 pattern

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
python/samples/getting_started/orchestrations/handoff/handoff_with_code_interpreter_file.py Deleted duplicate of handoff sample
python/samples/02-agents/orchestrations/sequential_custom_executors.py Deleted duplicate sequential custom executors sample
python/samples/02-agents/orchestrations/sequential_agents.py Deleted duplicate sequential agents sample
python/samples/02-agents/orchestrations/magentic_human_plan_review.py Deleted duplicate magentic plan review sample
python/samples/02-agents/orchestrations/magentic_checkpoint.py Deleted duplicate magentic checkpoint sample
python/samples/02-agents/orchestrations/magentic.py Deleted duplicate magentic orchestration sample
python/samples/02-agents/orchestrations/handoff_with_code_interpreter_file.py Deleted duplicate handoff with code interpreter sample
python/samples/02-agents/orchestrations/handoff_simple.py Deleted duplicate simple handoff sample
python/samples/02-agents/orchestrations/handoff_autonomous.py Deleted duplicate autonomous handoff sample
python/samples/02-agents/orchestrations/group_chat_simple_selector.py Deleted duplicate group chat selector sample
python/samples/02-agents/orchestrations/group_chat_philosophical_debate.py Deleted duplicate philosophical debate sample
python/samples/02-agents/orchestrations/group_chat_agent_manager.py Deleted duplicate group chat manager sample
python/samples/02-agents/orchestrations/concurrent_custom_aggregator.py Deleted duplicate concurrent aggregator sample
python/samples/02-agents/orchestrations/concurrent_custom_agent_executors.py Deleted duplicate concurrent executors sample
python/samples/02-agents/orchestrations/concurrent_agents.py Deleted duplicate concurrent agents sample
python/samples/02-agents/orchestrations/README.md Deleted duplicate README
python/samples/03-workflows/orchestrations/handoff_with_code_interpreter_file.py Cleaned up to remove V1/V2 client toggle, standardized on V2 AzureOpenAIResponsesClient, fixed duplicate condition check

@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Feb 12, 2026

Python Test Coverage

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

Python Unit Test Overview

Tests Skipped Failures Errors Time
3918 225 💤 0 ❌ 0 🔥 1m 11s ⏱️

@markwallace-microsoft markwallace-microsoft added the lab Agent Framework Lab label Feb 12, 2026
@moonbox3 moonbox3 added this pull request to the merge queue Feb 12, 2026
Merged via the queue into microsoft:main with commit e064f94 Feb 12, 2026
37 checks passed
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 samples Issue relates to the samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants