We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e480db5 + c24179e commit b0f1afbCopy full SHA for b0f1afb
1 file changed
src/askui/models/shared/__init__.py
@@ -1,11 +1,20 @@
1
from .android_base_tool import AndroidBaseTool
2
from .computer_base_tool import ComputerBaseTool
3
-from .playwright_base_tool import PlaywrightBaseTool
4
from .tool_tags import ToolTags
5
+try:
6
+ from .playwright_base_tool import PlaywrightBaseTool
7
+
8
+ _PLAYWRIGHT_AVAILABLE = True
9
+except ImportError:
10
+ _PLAYWRIGHT_AVAILABLE = False
11
12
13
__all__ = [
14
"AndroidBaseTool",
15
"ComputerBaseTool",
- "PlaywrightBaseTool",
16
"ToolTags",
17
]
18
19
+if _PLAYWRIGHT_AVAILABLE:
20
+ __all__ += ["PlaywrightBaseTool"]
0 commit comments