Uh oh!
There was an error while loading. Please reload this page.
Python: Fix imports for durabletask package - #3345
Conversation
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.) |
Uh oh!
There was an error while loading. Please reload this page.
ff83943
into
microsoft:feature-durabletask-pythonUh oh!
There was an error while loading. Please reload this page.
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