Skip to content

Commit 5822186

Browse files
committed
fix init.py
1 parent 253c119 commit 5822186

File tree

5 files changed

+4
-33
lines changed

5 files changed

+4
-33
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/ai/azure-ai-agentserver-core/azure/ai/agentserver/core/__init__.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,10 @@
55

66
from ._version import VERSION
77
from .logger import configure as config_logging
8-
from .server import FoundryCBAgent
8+
from .server.base import FoundryCBAgent
99
from .server.common.agent_run_context import AgentRunContext
1010

1111
config_logging()
1212

1313
__all__ = ["FoundryCBAgent", "AgentRunContext"]
1414
__version__ = VERSION
15-
16-
# temporarily add build info here, remove it after public release
17-
try:
18-
from . import _buildinfo
19-
20-
__commit__ = _buildinfo.commit
21-
__build_time__ = _buildinfo.build_time
22-
except Exception: # pragma: no cover
23-
__commit__ = "unknown"
24-
__build_time__ = "unknown"
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
11
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
2-
3-
from typing import TYPE_CHECKING, Optional
4-
5-
from .base import FoundryCBAgent
6-
7-
if TYPE_CHECKING: # pragma: no cover
8-
from .langgraph_models import LanggraphStateConverter
9-
10-
11-
def from_agent_framework(agent):
12-
from .agent_framework import AgentFrameworkCBAgent
13-
14-
return AgentFrameworkCBAgent(agent)
15-
16-
17-
def from_langgraph(agent, state_converter: Optional["LanggraphStateConverter"] = None):
18-
from .langgraph import LangGraphAdapter
19-
20-
return LangGraphAdapter(agent, state_converter=state_converter)
21-
22-
23-
__all__ = ["FoundryCBAgent", "from_agent_framework", "from_langgraph"]

0 commit comments

Comments
 (0)