langchain-skilllite 0.1.0__tar.gz → 0.1.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langchain-skilllite
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: LangChain integration for SkillLite - Lightweight sandboxed Python skill execution engine
5
5
  Author-email: SkillLite Team <skilllite@example.com>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
1
  """Version information for langchain-skilllite."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.1"
4
4
 
@@ -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
- return result.output or "Execution completed successfully"
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
- return result.output or "Execution completed successfully"
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langchain-skilllite
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: LangChain integration for SkillLite - Lightweight sandboxed Python skill execution engine
5
5
  Author-email: SkillLite Team <skilllite@example.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "langchain-skilllite"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "LangChain integration for SkillLite - Lightweight sandboxed Python skill execution engine"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}