aip-agents-binary 0.5.20__py3-none-macosx_13_0_arm64.whl → 0.5.21__py3-none-macosx_13_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aip_agents/tools/__init__.py +18 -4
- aip_agents/tools/__init__.pyi +3 -7
- {aip_agents_binary-0.5.20.dist-info → aip_agents_binary-0.5.21.dist-info}/METADATA +1 -1
- {aip_agents_binary-0.5.20.dist-info → aip_agents_binary-0.5.21.dist-info}/RECORD +6 -6
- {aip_agents_binary-0.5.20.dist-info → aip_agents_binary-0.5.21.dist-info}/WHEEL +0 -0
- {aip_agents_binary-0.5.20.dist-info → aip_agents_binary-0.5.21.dist-info}/top_level.txt +0 -0
aip_agents/tools/__init__.py
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"""Initialize Tools Module for AIP Agents."""
|
|
2
2
|
|
|
3
3
|
from importlib import import_module
|
|
4
|
+
from typing import TYPE_CHECKING
|
|
4
5
|
|
|
5
6
|
from aip_agents.tools.bosa_tools import BOSA_AUTOMATED_TOOLS
|
|
6
7
|
from aip_agents.tools.gl_connector import GLConnectorTool
|
|
7
8
|
from aip_agents.tools.time_tool import TimeTool
|
|
8
9
|
from aip_agents.tools.web_search import GoogleSerperTool
|
|
10
|
+
from aip_agents.utils.logger import get_logger
|
|
11
|
+
|
|
12
|
+
logger = get_logger(__name__)
|
|
9
13
|
|
|
10
14
|
__all__ = ["BOSA_AUTOMATED_TOOLS", "GLConnectorTool", "GoogleSerperTool", "TimeTool"]
|
|
11
15
|
|
|
@@ -19,11 +23,16 @@ def _register_optional(module_path: str, export_name: str) -> None:
|
|
|
19
23
|
"""
|
|
20
24
|
try:
|
|
21
25
|
module = import_module(module_path)
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
tool = getattr(module, export_name)
|
|
27
|
+
__all__.append(export_name)
|
|
28
|
+
globals()[export_name] = tool
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
except ImportError as e:
|
|
31
|
+
logger.debug(f"Module {module_path} not found: {e}")
|
|
32
|
+
except AttributeError as e:
|
|
33
|
+
logger.debug(f"Tool {export_name} not found in module {module_path}: {e}")
|
|
34
|
+
except Exception as e:
|
|
35
|
+
logger.debug(f"Unexpected error loading {export_name}: {e}")
|
|
27
36
|
|
|
28
37
|
|
|
29
38
|
_register_optional("aip_agents.tools.browser_use", "BrowserUseTool")
|
|
@@ -31,3 +40,8 @@ _register_optional("aip_agents.tools.code_sandbox", "E2BCodeSandboxTool")
|
|
|
31
40
|
_register_optional("aip_agents.tools.document_loader", "DocxReaderTool")
|
|
32
41
|
_register_optional("aip_agents.tools.document_loader", "ExcelReaderTool")
|
|
33
42
|
_register_optional("aip_agents.tools.document_loader", "PDFReaderTool")
|
|
43
|
+
|
|
44
|
+
if TYPE_CHECKING:
|
|
45
|
+
from aip_agents.tools.browser_use import BrowserUseTool
|
|
46
|
+
from aip_agents.tools.code_sandbox import E2BCodeSandboxTool
|
|
47
|
+
from aip_agents.tools.document_loader import DocxReaderTool, ExcelReaderTool, PDFReaderTool
|
aip_agents/tools/__init__.pyi
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
from aip_agents.tools.bosa_tools import BOSA_AUTOMATED_TOOLS as BOSA_AUTOMATED_TOOLS
|
|
2
|
+
from aip_agents.tools.browser_use import BrowserUseTool as BrowserUseTool
|
|
3
|
+
from aip_agents.tools.code_sandbox import E2BCodeSandboxTool as E2BCodeSandboxTool
|
|
4
|
+
from aip_agents.tools.document_loader import DocxReaderTool as DocxReaderTool, ExcelReaderTool as ExcelReaderTool, PDFReaderTool as PDFReaderTool
|
|
2
5
|
from aip_agents.tools.gl_connector import GLConnectorTool as GLConnectorTool
|
|
3
6
|
from aip_agents.tools.time_tool import TimeTool as TimeTool
|
|
4
7
|
from aip_agents.tools.web_search import GoogleSerperTool as GoogleSerperTool
|
|
5
8
|
|
|
6
9
|
__all__ = ['BOSA_AUTOMATED_TOOLS', 'GLConnectorTool', 'GoogleSerperTool', 'TimeTool', 'BrowserUseTool', 'E2BCodeSandboxTool', 'DocxReaderTool', 'ExcelReaderTool', 'PDFReaderTool']
|
|
7
|
-
|
|
8
|
-
# Names in __all__ with no definition:
|
|
9
|
-
# BrowserUseTool
|
|
10
|
-
# DocxReaderTool
|
|
11
|
-
# E2BCodeSandboxTool
|
|
12
|
-
# ExcelReaderTool
|
|
13
|
-
# PDFReaderTool
|
|
@@ -370,8 +370,8 @@ aip_agents/storage/providers/memory.py,sha256=81E9yT_oRkH7tMVr5azZv1oXIaeTzTAtTu
|
|
|
370
370
|
aip_agents/storage/providers/memory.pyi,sha256=r0meeCsjKyE9FHJqCysfQ5ZH_FWRRv2SWg-NOHCUD-g,2109
|
|
371
371
|
aip_agents/storage/providers/object_storage.py,sha256=Q268Sn8Y09gS-ilP6fe4CR0YIOvdbunh3V6SmuQsAVs,6413
|
|
372
372
|
aip_agents/storage/providers/object_storage.pyi,sha256=nBIKJjUAWkIKhYhBFmFcypjoOieIYOghy55f62x7AX8,2878
|
|
373
|
-
aip_agents/tools/__init__.py,sha256=
|
|
374
|
-
aip_agents/tools/__init__.pyi,sha256=
|
|
373
|
+
aip_agents/tools/__init__.py,sha256=e3hU4EDzhrEnvRjy_NrGzMFqMQAjI4za4GBV7QdgceU,1840
|
|
374
|
+
aip_agents/tools/__init__.pyi,sha256=_7XYjGn393oG99dCAPQqYdy5GmnykPBBH6TJB6QM54c,783
|
|
375
375
|
aip_agents/tools/bosa_tools.py,sha256=uhRImaIACt_Ol9nraUGr0ddT8e35c8doVzwlJV6kGeA,3411
|
|
376
376
|
aip_agents/tools/bosa_tools.pyi,sha256=GpWQhkytk4XS_rKWGBiS70y5mXC8b-1GGCkN1BaE97s,1128
|
|
377
377
|
aip_agents/tools/constants.py,sha256=pVmUJx8WN1gYtDT52B4FsetnaYZZWozKQQ7wW18xIHo,5274
|
|
@@ -540,7 +540,7 @@ aip_agents/utils/pii/pii_helper.py,sha256=g0yRzakfA2AA6vjUNLWHqFlcxyLql6MXQ90NN3
|
|
|
540
540
|
aip_agents/utils/pii/pii_helper.pyi,sha256=dulZs150ikbAL3Bw2YLcz3_g4DsGmL3lciwf8mKxEjI,2939
|
|
541
541
|
aip_agents/utils/pii/uuid_deanonymizer_mapping.py,sha256=Gks8l8t0cuS9pzoQnrpiK1CaLmWYksjOnTeiHh3_7EE,7348
|
|
542
542
|
aip_agents/utils/pii/uuid_deanonymizer_mapping.pyi,sha256=gnWfD1rWZh_tloJjgKiZ6f6iNUuBaHpKqCSiP0d-9bs,3084
|
|
543
|
-
aip_agents_binary-0.5.
|
|
544
|
-
aip_agents_binary-0.5.
|
|
545
|
-
aip_agents_binary-0.5.
|
|
546
|
-
aip_agents_binary-0.5.
|
|
543
|
+
aip_agents_binary-0.5.21.dist-info/METADATA,sha256=9Ta-eHHQSIDbLqofOHQfohKHsxxDakYIGyB2jChAuq8,22207
|
|
544
|
+
aip_agents_binary-0.5.21.dist-info/WHEEL,sha256=PaP4PvkDyiSc4C6Dhw6ccQmfxsWFrSv-lJQjBshu0hw,105
|
|
545
|
+
aip_agents_binary-0.5.21.dist-info/top_level.txt,sha256=PEz8vcwC1bH4UrkhF0LkIYCNfXGWZUHdSklbvkBe25E,11
|
|
546
|
+
aip_agents_binary-0.5.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|