Skip to content

Python: Fix imports for durabletask package#3345

Merged
larohra merged 2 commits intomicrosoft:feature-durabletask-pythonfrom
larohra:fix-durable-imports
Jan 21, 2026
Merged

Python: Fix imports for durabletask package#3345
larohra merged 2 commits intomicrosoft:feature-durabletask-pythonfrom
larohra:fix-durable-imports

Conversation

@larohra
Copy link
Contributor

@larohra larohra commented Jan 21, 2026

Motivation and Context

Update all exports for durabletask package to the azure directory. Going forward, all classes will be available via -
from agent_framework.azure import Durable*

Description

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.

@larohra larohra requested a review from a team as a code owner January 21, 2026 19:43
Copilot AI review requested due to automatic review settings January 21, 2026 19:43
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Jan 21, 2026
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jan 21, 2026

Python Test Coverage

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

Python Unit Test Overview

Tests Skipped Failures Errors Time
3239 234 💤 0 ❌ 0 🔥 1m 4s ⏱️

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 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_durabletask to agent_framework.azure across all sample code
  • Added durabletask exports to agent_framework.azure.__init__.pyi stub file
  • Added __version__ support to agent_framework_durabletask package
  • Fixed import inconsistency in one sample (AgentRunResponseAgentResponse)
  • 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.)

@larohra larohra merged commit ff83943 into microsoft:feature-durabletask-python Jan 21, 2026
17 checks passed
@larohra larohra deleted the fix-durable-imports branch January 21, 2026 22:38
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 python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants