Python: Fix imports for durabletask package#3345
Merged
larohra merged 2 commits intomicrosoft:feature-durabletask-pythonfrom Jan 21, 2026
Merged
Python: Fix imports for durabletask package#3345larohra merged 2 commits intomicrosoft:feature-durabletask-pythonfrom
larohra merged 2 commits intomicrosoft:feature-durabletask-pythonfrom
Conversation
Member
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates the durabletask package exports under the agent_framework.azure module path. All durabletask-related classes (DurableAIAgentClient, DurableAIAgentWorker, DurableAIAgentOrchestrationContext, etc.) will now be importable via from agent_framework.azure import Durable* instead of from agent_framework_durabletask import *. The change also updates all sample code to use the new import paths, adds version management via importlib.metadata, and includes dependency updates in the lockfile.
Changes:
- Updated import paths from
agent_framework_durabletasktoagent_framework.azureacross all sample code - Added durabletask exports to
agent_framework.azure.__init__.pyistub file - Added
__version__support toagent_framework_durabletaskpackage - Fixed import inconsistency in one sample (
AgentRunResponse→AgentResponse) - Updated various dependency versions in
uv.lock
Reviewed changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
python/packages/durabletask/agent_framework_durabletask/__init__.py |
Added version management using importlib.metadata and exported __version__ |
python/packages/core/agent_framework/azure/__init__.pyi |
Added durabletask class exports to azure module stub file |
python/packages/durabletask/README.md |
Updated example import from AgentWorker to DurableAIAgentWorker |
python/packages/durabletask/agent_framework_durabletask/_*.py |
Updated docstring examples to use new import path |
python/samples/getting_started/durabletask/*/worker.py |
Consolidated imports to use agent_framework.azure |
python/samples/getting_started/durabletask/*/client.py |
Updated client imports to use agent_framework.azure |
python/uv.lock |
Updated dependency versions (boto3, botocore, pandas, pyarrow, regex, etc.) |
ahmedmuhsin
reviewed
Jan 21, 2026
ahmedmuhsin
approved these changes
Jan 21, 2026
ff83943
into
microsoft:feature-durabletask-python
17 checks passed
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
Update all exports for
durabletaskpackage to theazuredirectory. Going forward, all classes will be available via -from agent_framework.azure import Durable*Description
Contribution Checklist