feat(apikey system): tool system development
This commit is contained in:
14
api/app/core/tools/configs/builtin/baidu_search_tool.json
Normal file
14
api/app/core/tools/configs/builtin/baidu_search_tool.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "baidu_search_tool",
|
||||
"description": "百度搜索工具 - 网络搜索:提供网页搜索、新闻搜索、图片搜索功能",
|
||||
"tool_type": "builtin",
|
||||
"tool_class": "BaiduSearchTool",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"api_key": "",
|
||||
"secret_key": "",
|
||||
"search_type": "web"
|
||||
},
|
||||
"tags": ["search", "web", "baidu", "builtin"]
|
||||
}
|
||||
12
api/app/core/tools/configs/builtin/datetime_tool.json
Normal file
12
api/app/core/tools/configs/builtin/datetime_tool.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "datetime_tool",
|
||||
"description": "时间工具 - 日期时间处理:提供时间格式转化、时区转换、时间戳转换、时间计算",
|
||||
"tool_type": "builtin",
|
||||
"tool_class": "DateTimeTool",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"timezone": "UTC"
|
||||
},
|
||||
"tags": ["time", "utility", "builtin"]
|
||||
}
|
||||
12
api/app/core/tools/configs/builtin/json_tool.json
Normal file
12
api/app/core/tools/configs/builtin/json_tool.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "json_tool",
|
||||
"description": "JSON工具 - 数据格式处理:提供JSON格式化、压缩、验证、格式转换",
|
||||
"tool_type": "builtin",
|
||||
"tool_class": "JsonTool",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"indent": 2
|
||||
},
|
||||
"tags": ["json", "data", "utility", "builtin"]
|
||||
}
|
||||
14
api/app/core/tools/configs/builtin/mineru_tool.json
Normal file
14
api/app/core/tools/configs/builtin/mineru_tool.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "mineru_tool",
|
||||
"description": "MinerU PDF解析工具 - 文档处理:提供PDF解析、表格提取、图片识别、文本提取功能",
|
||||
"tool_type": "builtin",
|
||||
"tool_class": "MinerUTool",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"api_key": "",
|
||||
"parse_mode": "auto",
|
||||
"timeout": 60
|
||||
},
|
||||
"tags": ["pdf", "document", "ocr", "builtin"]
|
||||
}
|
||||
14
api/app/core/tools/configs/builtin/textin_tool.json
Normal file
14
api/app/core/tools/configs/builtin/textin_tool.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "textin_tool",
|
||||
"description": "TextIn OCR工具 - 图像识别:提供通用OCR、手写识别、多语言支持功能",
|
||||
"tool_type": "builtin",
|
||||
"tool_class": "TextInTool",
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"app_id": "",
|
||||
"language": "auto",
|
||||
"recognition_mode": "general"
|
||||
},
|
||||
"tags": ["ocr", "image", "text", "builtin"]
|
||||
}
|
||||
60
api/app/core/tools/configs/builtin_tools.json
Normal file
60
api/app/core/tools/configs/builtin_tools.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"datetime": {
|
||||
"name": "时间工具",
|
||||
"description": "获取当前时间、日期计算",
|
||||
"tool_class": "DateTimeTool",
|
||||
"category": "utility",
|
||||
"requires_config": false,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
"json_converter": {
|
||||
"name": "JSON转换工具",
|
||||
"description": "JSON数据格式化和转换",
|
||||
"tool_class": "JsonTool",
|
||||
"category": "utility",
|
||||
"requires_config": false,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
"baidu_search": {
|
||||
"name": "百度搜索",
|
||||
"description": "百度网页搜索服务",
|
||||
"tool_class": "BaiduSearchTool",
|
||||
"category": "search",
|
||||
"requires_config": true,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"api_key": {"type": "string", "description": "百度搜索API密钥", "sensitive": true, "required": true}
|
||||
}
|
||||
},
|
||||
"mineru": {
|
||||
"name": "MinerU",
|
||||
"description": "PDF文档解析工具",
|
||||
"tool_class": "MinerUTool",
|
||||
"category": "document",
|
||||
"requires_config": true,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"api_key": {"type": "string", "description": "MinerU API密钥", "sensitive": true, "required": true},
|
||||
"base_url": {"type": "string", "description": "API地址", "default": "https://api.mineru.com"}
|
||||
}
|
||||
},
|
||||
"textin": {
|
||||
"name": "TextIn",
|
||||
"description": "OCR文字识别服务",
|
||||
"tool_class": "TextInTool",
|
||||
"category": "ocr",
|
||||
"requires_config": true,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"api_key": {"type": "string", "description": "TextIn API密钥", "sensitive": true, "required": true},
|
||||
"api_secret": {"type": "string", "description": "TextIn API密钥", "sensitive": true, "required": true}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user