forked from agentcontrol/agent-control
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
22 lines (16 loc) · 759 Bytes
/
__init__.py
File metadata and controls
22 lines (16 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Strands integration for Agent Control."""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .plugin import AgentControlPlugin
from .steering import AgentControlSteeringHandler
__all__ = ["AgentControlPlugin", "AgentControlSteeringHandler"]
def __getattr__(name: str) -> type:
"""Lazy import to avoid import errors when strands-agents is not installed."""
if name == "AgentControlPlugin":
from .plugin import AgentControlPlugin
return AgentControlPlugin
elif name == "AgentControlSteeringHandler":
from .steering import AgentControlSteeringHandler
return AgentControlSteeringHandler
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")