langchain-skilllite 0.1.0__py3-none-any.whl → 0.1.1__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.
- langchain_skilllite/_version.py +1 -1
- langchain_skilllite/tools.py +17 -2
- {langchain_skilllite-0.1.0.dist-info → langchain_skilllite-0.1.1.dist-info}/METADATA +1 -1
- langchain_skilllite-0.1.1.dist-info/RECORD +9 -0
- langchain_skilllite-0.1.0.dist-info/RECORD +0 -9
- {langchain_skilllite-0.1.0.dist-info → langchain_skilllite-0.1.1.dist-info}/WHEEL +0 -0
- {langchain_skilllite-0.1.0.dist-info → langchain_skilllite-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {langchain_skilllite-0.1.0.dist-info → langchain_skilllite-0.1.1.dist-info}/top_level.txt +0 -0
langchain_skilllite/_version.py
CHANGED
langchain_skilllite/tools.py
CHANGED
|
@@ -9,6 +9,7 @@ from __future__ import annotations
|
|
|
9
9
|
|
|
10
10
|
import asyncio
|
|
11
11
|
import hashlib
|
|
12
|
+
import json
|
|
12
13
|
import os
|
|
13
14
|
import time
|
|
14
15
|
import uuid
|
|
@@ -322,7 +323,14 @@ class SkillLiteTool(BaseTool):
|
|
|
322
323
|
timeout=self.timeout
|
|
323
324
|
)
|
|
324
325
|
if result.success:
|
|
325
|
-
|
|
326
|
+
output = result.output
|
|
327
|
+
if output is None:
|
|
328
|
+
return "Execution completed successfully"
|
|
329
|
+
elif isinstance(output, str):
|
|
330
|
+
return output
|
|
331
|
+
else:
|
|
332
|
+
# Convert dict to JSON string for LangChain
|
|
333
|
+
return json.dumps(output, ensure_ascii=False)
|
|
326
334
|
else:
|
|
327
335
|
return f"Error: {result.error}"
|
|
328
336
|
except Exception as e:
|
|
@@ -387,7 +395,14 @@ class SkillLiteTool(BaseTool):
|
|
|
387
395
|
self.timeout
|
|
388
396
|
)
|
|
389
397
|
if result.success:
|
|
390
|
-
|
|
398
|
+
output = result.output
|
|
399
|
+
if output is None:
|
|
400
|
+
return "Execution completed successfully"
|
|
401
|
+
elif isinstance(output, str):
|
|
402
|
+
return output
|
|
403
|
+
else:
|
|
404
|
+
# Convert dict to JSON string for LangChain
|
|
405
|
+
return json.dumps(output, ensure_ascii=False)
|
|
391
406
|
else:
|
|
392
407
|
return f"Error: {result.error}"
|
|
393
408
|
except Exception as e:
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
langchain_skilllite/__init__.py,sha256=pkzWP7nP7A_hRsfl0TbgA65WWq-UpMMBCyy4VLslD8Q,1461
|
|
2
|
+
langchain_skilllite/_version.py,sha256=5e9XZ2iMOpbdIFsfjmyhyeHg5wt5UYVp7X0yfqcaIbI,75
|
|
3
|
+
langchain_skilllite/callbacks.py,sha256=L-_Qguh_R1jd7Qtx_QN0kaFE5wX7t-9USOoUNaUug6k,5254
|
|
4
|
+
langchain_skilllite/tools.py,sha256=vLonVTd_tNEz6ms8qxnCI0sZOCxNt8eR3oS3-gaBFDI,21519
|
|
5
|
+
langchain_skilllite-0.1.1.dist-info/licenses/LICENSE,sha256=HcK5iz9Y3FKj6oiQH6Q0tx1fYDXhKqkrCUUM8XRngRk,1072
|
|
6
|
+
langchain_skilllite-0.1.1.dist-info/METADATA,sha256=xcYSDY2XFdBeK5tAj4jyA0ckDCVxHpukBg3zzeLfxuQ,6077
|
|
7
|
+
langchain_skilllite-0.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
langchain_skilllite-0.1.1.dist-info/top_level.txt,sha256=XmA85AHn71wM124Kssl3hQRQElz3JJuDUjtuLJlL7nE,20
|
|
9
|
+
langchain_skilllite-0.1.1.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
langchain_skilllite/__init__.py,sha256=pkzWP7nP7A_hRsfl0TbgA65WWq-UpMMBCyy4VLslD8Q,1461
|
|
2
|
-
langchain_skilllite/_version.py,sha256=UluS3ysGlayfko8ludKoiC9cT8bp9A2iMfbL6sP5VqQ,75
|
|
3
|
-
langchain_skilllite/callbacks.py,sha256=L-_Qguh_R1jd7Qtx_QN0kaFE5wX7t-9USOoUNaUug6k,5254
|
|
4
|
-
langchain_skilllite/tools.py,sha256=2OBxA2GwNAwnQzYAUmV63FkmI6qB7-r36_LagtVu27E,20921
|
|
5
|
-
langchain_skilllite-0.1.0.dist-info/licenses/LICENSE,sha256=HcK5iz9Y3FKj6oiQH6Q0tx1fYDXhKqkrCUUM8XRngRk,1072
|
|
6
|
-
langchain_skilllite-0.1.0.dist-info/METADATA,sha256=icBeT2u8kwcdN-naTw5zlvaBdsxzD7cdoWzvUjMke84,6077
|
|
7
|
-
langchain_skilllite-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
langchain_skilllite-0.1.0.dist-info/top_level.txt,sha256=XmA85AHn71wM124Kssl3hQRQElz3JJuDUjtuLJlL7nE,20
|
|
9
|
-
langchain_skilllite-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
{langchain_skilllite-0.1.0.dist-info → langchain_skilllite-0.1.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|