[BREAKING] Python: Move orchestrations to dedicated package#3685
Merged
moonbox3 merged 8 commits intomicrosoft:mainfrom Feb 5, 2026
Merged
[BREAKING] Python: Move orchestrations to dedicated package#3685moonbox3 merged 8 commits intomicrosoft:mainfrom
moonbox3 merged 8 commits intomicrosoft:mainfrom
Conversation
- Resolved conflict in _workflows/__init__.py (kept SharedState, excluded SequentialBuilder) - Applied TypeVar rename (GroupChatWorkflowContext_T_Out -> GroupChatWorkflowContextOutT) to orchestrations package - Deleted orchestration files from old location (now in agent_framework_orchestrations package)
Member
Contributor
There was a problem hiding this comment.
Pull request overview
This PR moves orchestration builders (SequentialBuilder, ConcurrentBuilder, HandoffBuilder, GroupChatBuilder, MagenticBuilder) from the core package to a new dedicated agent-framework-orchestrations package. This change improves modularity and clarifies that orchestrations are patterns users can build themselves with the core workflow APIs.
Changes:
- Created new
agent-framework-orchestrationspackage with orchestration builders - Added lazy-loading via
agent_framework.orchestrationsfor backwards compatibility - Updated all orchestration samples to use
from agent_framework.orchestrations import ... - Moved orchestration tests from core to the orchestrations package
- Removed orchestration exports from
agent_framework._workflows.__init__.py
Reviewed changes
Copilot reviewed 41 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| python/packages/orchestrations/pyproject.toml | New package configuration with dependencies on agent-framework-core |
| python/packages/orchestrations/agent_framework_orchestrations/init.py | Exports for all orchestration builders and related types |
| python/packages/orchestrations/agent_framework_orchestrations/_*.py | Moved orchestration implementation files with updated imports to reference core via agent_framework._workflows |
| python/packages/orchestrations/tests/test_*.py | Moved and updated orchestration tests with imports from agent_framework.orchestrations |
| python/packages/orchestrations/README.md | Package-level documentation with installation and usage examples |
| python/packages/orchestrations/LICENSE | MIT license file |
| python/packages/core/agent_framework/orchestrations/init.py | Lazy-loading module with helpful error messages |
| python/packages/core/agent_framework/orchestrations/init.pyi | Type stubs for IDE support |
| python/packages/core/agent_framework/_workflows/init.py | Removed orchestration exports, added SharedState export |
| python/packages/core/pyproject.toml | Added agent-framework-orchestrations to "all" extras |
| python/samples/getting_started/orchestrations/*.py | Updated all samples to import from agent_framework.orchestrations |
| python/samples/getting_started/orchestrations/README.md | New README for orchestration samples directory |
| python/samples/getting_started/workflows/README.md | Updated to reference new orchestrations directory |
| python/packages/core/tests/workflow/test_workflow_kwargs.py | Deleted - test coverage removed |
| python/packages/core/tests/workflow/test_*.py | Updated to import orchestrations from agent_framework.orchestrations |
| python/pyproject.toml | Added orchestrations package and coverage configuration |
Comments suppressed due to low confidence (1)
python/packages/core/tests/workflow/test_workflow_kwargs.py:1
- The test file
test_workflow_kwargs.pywas deleted but the test coverage it provided for kwargs propagation through workflows (Sequential, Concurrent, GroupChat, Handoff, Magentic) was not migrated to the orchestrations package tests. This removes test coverage for an important feature without replacement. Consider either:
- Moving these tests to
python/packages/orchestrations/tests/test_kwargs_propagation.py, or - Documenting why this test coverage is no longer needed.
The deleted tests covered:
- Kwargs flow through Sequential/Concurrent/GroupChat/Handoff/Magentic workflows
- Kwargs stored in SharedState with WORKFLOW_RUN_KWARGS_KEY
- Kwargs propagation to agents via workflow.as_agent()
- Kwargs propagation through nested subworkflows
dmytrostruk
approved these changes
Feb 4, 2026
TaoChenOSU
approved these changes
Feb 5, 2026
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.
Motivation and Context
Description
Contribution Checklist