@chatablex/chatablex-tool-maker 1.0.0
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.
- package/package.json +44 -0
- package/tool.py +18 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "chatablex",
|
|
3
|
+
"chatablex": {
|
|
4
|
+
"category": "enterprise",
|
|
5
|
+
"delivery_mode": "local_source",
|
|
6
|
+
"displayName": "工具制作器",
|
|
7
|
+
"embedded": {
|
|
8
|
+
"entry_point": "tool.py"
|
|
9
|
+
},
|
|
10
|
+
"execution_mode": "embedded",
|
|
11
|
+
"id": "chatablex-tool-maker",
|
|
12
|
+
"tools": [
|
|
13
|
+
{
|
|
14
|
+
"description": "帮助用户 通过提示词来创建并优化自己的本地工具。",
|
|
15
|
+
"inputSchema": {
|
|
16
|
+
"properties": {
|
|
17
|
+
"input": {
|
|
18
|
+
"description": "输入内容",
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"input"
|
|
24
|
+
],
|
|
25
|
+
"type": "object"
|
|
26
|
+
},
|
|
27
|
+
"name": "chatablex_tool_maker_run"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"type": "tool"
|
|
31
|
+
},
|
|
32
|
+
"description": "帮助用户 通过提示词来创建并优化自己的本地工具。",
|
|
33
|
+
"files": [
|
|
34
|
+
"*"
|
|
35
|
+
],
|
|
36
|
+
"keywords": [
|
|
37
|
+
"chatablex",
|
|
38
|
+
"tool",
|
|
39
|
+
"tool"
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"name": "@chatablex/chatablex-tool-maker",
|
|
43
|
+
"version": "1.0.0"
|
|
44
|
+
}
|
package/tool.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Embedded tool — 工具制作器
|
|
2
|
+
|
|
3
|
+
Function name must match the ``name`` in package.json → chatablex.tools[].
|
|
4
|
+
"""
|
|
5
|
+
from langchain.tools import tool
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@tool
|
|
9
|
+
def chatablex_tool_maker_run(input: str) -> dict:
|
|
10
|
+
"""工具制作器
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
input: 输入内容
|
|
14
|
+
"""
|
|
15
|
+
return {
|
|
16
|
+
"success": True,
|
|
17
|
+
"data": {"result": f"Processed: {input}"},
|
|
18
|
+
}
|