|
|
@@ -384,21 +384,31 @@
|
|
|
{
|
|
|
"tool_id": "ji_meng_add_task",
|
|
|
"name": "即梦-创建任务",
|
|
|
+ "tool_slug_ids": [],
|
|
|
"category": "cv",
|
|
|
- "description": "提交异步任务到上游(POST 转发 JI_MENG_API_BASE + add_task 路径)。",
|
|
|
+ "description": "提交异步任务到上游(本地服务转发 JI_MENG_API_BASE,POST /add_task)。需配置 tools/local/ji_meng/.env。",
|
|
|
"input_schema": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
+ "task_type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": [
|
|
|
+ "image",
|
|
|
+ "video"
|
|
|
+ ],
|
|
|
+ "description": "任务类型:图生/文生图或视频"
|
|
|
+ },
|
|
|
"prompt": {
|
|
|
"type": "string",
|
|
|
"description": "任务描述 / 提示词"
|
|
|
},
|
|
|
- "extra": {
|
|
|
- "type": "object",
|
|
|
- "description": "可选,合并进上游 JSON body"
|
|
|
+ "image_url": {
|
|
|
+ "type": "string",
|
|
|
+ "description": "可选,图生类任务时的参考图 URL"
|
|
|
}
|
|
|
},
|
|
|
"required": [
|
|
|
+ "task_type",
|
|
|
"prompt"
|
|
|
]
|
|
|
},
|
|
|
@@ -406,7 +416,8 @@
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"task_id": {
|
|
|
- "type": "string"
|
|
|
+ "type": "string",
|
|
|
+ "description": "任务 ID,用于 ji_meng_query_task"
|
|
|
},
|
|
|
"status": {
|
|
|
"type": "string"
|
|
|
@@ -416,20 +427,22 @@
|
|
|
"stream_support": false,
|
|
|
"status": "active",
|
|
|
"backend_runtime": "local",
|
|
|
- "group_ids": [],
|
|
|
- "tool_slug_ids": []
|
|
|
+ "group_ids": [
|
|
|
+ "ji_meng_task_lifecycle"
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
"tool_id": "ji_meng_query_task",
|
|
|
"name": "即梦-查询任务",
|
|
|
+ "tool_slug_ids": [],
|
|
|
"category": "cv",
|
|
|
- "description": "按 task_id 查询上游任务状态与结果(POST 转发 query_task 路径)。",
|
|
|
+ "description": "按 task_id 查询任务状态与结果(本地服务转发上游,POST /query_task)。",
|
|
|
"input_schema": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"task_id": {
|
|
|
"type": "string",
|
|
|
- "description": "创建任务返回的任务 ID"
|
|
|
+ "description": "ji_meng_add_task 返回的任务 ID"
|
|
|
}
|
|
|
},
|
|
|
"required": [
|
|
|
@@ -444,14 +457,24 @@
|
|
|
},
|
|
|
"status": {
|
|
|
"type": "string"
|
|
|
+ },
|
|
|
+ "message": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "images": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"stream_support": false,
|
|
|
"status": "active",
|
|
|
"backend_runtime": "local",
|
|
|
- "group_ids": [],
|
|
|
- "tool_slug_ids": []
|
|
|
+ "group_ids": [
|
|
|
+ "ji_meng_task_lifecycle"
|
|
|
+ ]
|
|
|
}
|
|
|
],
|
|
|
"version": "2.0"
|