blaxel 0.1.19rc66__py3-none-any.whl → 0.1.20__py3-none-any.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.
- blaxel/tools/__init__.py +19 -12
- {blaxel-0.1.19rc66.dist-info → blaxel-0.1.20.dist-info}/METADATA +2 -2
- {blaxel-0.1.19rc66.dist-info → blaxel-0.1.20.dist-info}/RECORD +5 -5
- {blaxel-0.1.19rc66.dist-info → blaxel-0.1.20.dist-info}/WHEEL +0 -0
- {blaxel-0.1.19rc66.dist-info → blaxel-0.1.20.dist-info}/licenses/LICENSE +0 -0
blaxel/tools/__init__.py
CHANGED
@@ -43,18 +43,25 @@ class PersistentWebSocket:
|
|
43
43
|
return self
|
44
44
|
|
45
45
|
async def call_tool(self, tool_name: str, arguments: dict[str, Any]) -> CallToolResult:
|
46
|
-
|
47
|
-
|
48
|
-
self.
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
self.
|
55
|
-
|
56
|
-
|
57
|
-
|
46
|
+
try:
|
47
|
+
await self._initialize()
|
48
|
+
if self.timeout_enabled:
|
49
|
+
self._remove_timer()
|
50
|
+
logger.debug(f"Calling tool {tool_name} with arguments {arguments}")
|
51
|
+
arguments.update(self.metas)
|
52
|
+
call_tool_result = await self.session.call_tool(tool_name, arguments)
|
53
|
+
logger.debug(f"Tool {tool_name} returned {call_tool_result}")
|
54
|
+
if self.timeout_enabled:
|
55
|
+
self._reset_timer()
|
56
|
+
else:
|
57
|
+
await self._close()
|
58
|
+
return call_tool_result
|
59
|
+
except Exception as e:
|
60
|
+
logger.error(f"Error calling tool {tool_name}: {e}\n{traceback.format_exc()}")
|
61
|
+
return CallToolResult(
|
62
|
+
content=[{"type": "text", "text": f"Error calling tool {tool_name}: {e}\n{traceback.format_exc()}"}],
|
63
|
+
isError=True,
|
64
|
+
)
|
58
65
|
|
59
66
|
async def list_tools(self):
|
60
67
|
logger.debug(f"Listing tools for {self.name}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: blaxel
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.20
|
4
4
|
Summary: Add your description here
|
5
5
|
Project-URL: Homepage, https://blaxel.ai
|
6
6
|
Project-URL: Documentation, https://docs.blaxel.ai
|
@@ -32,7 +32,7 @@ Provides-Extra: crewai
|
|
32
32
|
Requires-Dist: crewai>=0.120.1; extra == 'crewai'
|
33
33
|
Requires-Dist: opentelemetry-instrumentation-crewai>=0.40.6; extra == 'crewai'
|
34
34
|
Provides-Extra: google-adk
|
35
|
-
Requires-Dist: google-adk>=
|
35
|
+
Requires-Dist: google-adk>=1.1.1; extra == 'google-adk'
|
36
36
|
Requires-Dist: litellm>=1.63.11; extra == 'google-adk'
|
37
37
|
Provides-Extra: langchain
|
38
38
|
Requires-Dist: langchain-anthropic>=0.3.10; extra == 'langchain'
|
@@ -354,7 +354,7 @@ blaxel/sandbox/client/models/process_response.py,sha256=13UN4aTg0OZJnABCD-bzsHNz
|
|
354
354
|
blaxel/sandbox/client/models/process_response_status.py,sha256=hCE1gCtheV83T6PYURG3k-rPZSauvyTFhsxLEtudgYE,246
|
355
355
|
blaxel/sandbox/client/models/subdirectory.py,sha256=j1ORkqO74vAdPQ-oUMer85P8Gb2mAwky3P2gBCnqyGQ,1761
|
356
356
|
blaxel/sandbox/client/models/success_response.py,sha256=JQbCUIdVJy_TJ3mp8IuvCGbKgCm_iZQMMrqn8uZkxCk,1874
|
357
|
-
blaxel/tools/__init__.py,sha256=
|
357
|
+
blaxel/tools/__init__.py,sha256=dVpzrgOblpNVXbfZzVhXWK5A1DetnKwSu1b8xgwGxNY,11900
|
358
358
|
blaxel/tools/common.py,sha256=JGK052v_fvwWBFYnIArlBnFFViYyFrqdDn3gdVf53EU,1332
|
359
359
|
blaxel/tools/crewai.py,sha256=rPrRGwkXejunJQ6In1IsYAxJPNbr6d9EckXrSIHQods,638
|
360
360
|
blaxel/tools/googleadk.py,sha256=65qJysecgAMujxsyGxuCEVL0fWoR5I489DMiSA3ZaGs,2265
|
@@ -364,7 +364,7 @@ blaxel/tools/llamaindex.py,sha256=-gQ-C9V_h9a11J4ItsbWjXrCJOg0lRKsb98v9rVsNak,71
|
|
364
364
|
blaxel/tools/openai.py,sha256=GuFXkj6bXEwldyVr89jEsRAi5ihZUVEVe327QuWiGNs,653
|
365
365
|
blaxel/tools/pydantic.py,sha256=CvnNbAG_J4yBtA-XFI4lQrq3FYKjNd39hu841vZT004,1801
|
366
366
|
blaxel/tools/types.py,sha256=YPCGJ4vZDhqR0X2H_TWtc5chQScsC32nGTQdRKJlO8Y,707
|
367
|
-
blaxel-0.1.
|
368
|
-
blaxel-0.1.
|
369
|
-
blaxel-0.1.
|
370
|
-
blaxel-0.1.
|
367
|
+
blaxel-0.1.20.dist-info/METADATA,sha256=lETTQM2QJAmoPJHsD20ModZaE3xYcAK9qJxMLA8q5wY,6702
|
368
|
+
blaxel-0.1.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
369
|
+
blaxel-0.1.20.dist-info/licenses/LICENSE,sha256=p5PNQvpvyDT_0aYBDgmV1fFI_vAD2aSV0wWG7VTgRis,1069
|
370
|
+
blaxel-0.1.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|