From 513a971f574a6c3fefe059847a7042ce231c2496 Mon Sep 17 00:00:00 2001 From: Laveesh Rohra Date: Wed, 12 Nov 2025 13:32:35 -0800 Subject: [PATCH] Fix imports --- .../agent_framework_azurefunctions/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python/packages/azurefunctions/agent_framework_azurefunctions/__init__.py b/python/packages/azurefunctions/agent_framework_azurefunctions/__init__.py index 5ff2452f7d..5684d1ec1b 100644 --- a/python/packages/azurefunctions/agent_framework_azurefunctions/__init__.py +++ b/python/packages/azurefunctions/agent_framework_azurefunctions/__init__.py @@ -1,20 +1,20 @@ # Copyright (c) Microsoft. All rights reserved. -__version__ = "0.1.0" -__all__ = [] -"""Azure Durable Agent Function App. - -This package provides integration between Microsoft Agent Framework and Azure Durable Functions, -enabling durable, stateful AI agents deployed as Azure Function Apps. -""" +import importlib.metadata from ._app import AgentFunctionApp from ._callbacks import AgentCallbackContext, AgentResponseCallbackProtocol from ._orchestration import DurableAIAgent +try: + __version__ = importlib.metadata.version(__name__) +except importlib.metadata.PackageNotFoundError: + __version__ = "0.0.0" # Fallback for development mode + __all__ = [ "AgentCallbackContext", "AgentFunctionApp", "AgentResponseCallbackProtocol", "DurableAIAgent", + "__version__", ]