fix(file-check): 查询最近记录展示进度

This commit is contained in:
hugo committed 2026-08-17 20:24:53 +08:00
1 parent 4ec4e57005
commit 8cde79e0ce
6 files changed
+191 -4

No files matched your search

+5
View File
@@ -1984,6 +1984,11 @@ def main(user_query, intent_run_id, intent_task_id, task_id) -> dict:
| 参数 | 类型 | 绑定 |
| --- | --- | --- |
| `task_id` | Number | `提取查询参数.task_id_int` |
| `hxops_turn_id` | String | `解析运行态上下文.hxops_turn_id` |
| `conversation_id` | String | `sys.conversation_id` |
| `user_message` | String | `用户输入.query` |
> 查询接口会把返回的既有 `ScheduleRun` 关联到当前对话轮次,以便在该条回答下显示进度卡;不会改写定时任务或人工执行批次的原始触发上下文。若该批次 `status=success` 且 `total_count=0`,进度卡显示 **100%**,表示本次执行完成且未发现待检资料。
**下游**:→ [§3.18.2 Code:解析最近检核查询响应](#318-code解析检核查询响应两个节点)
+29 -2
View File
@@ -8,7 +8,7 @@
"servers": [
{
"url": "http://127.0.0.1:5052",
"description": "HXOPS_TOOLS_API_BASE"
"description": "本地开发占位;部署环境请通过 GET /api/file-check/tools/openapi.json 导入"
}
],
"security": [
@@ -220,6 +220,33 @@
"type": "integer",
"example": 12
}
},
{
"name": "hxops_turn_id",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "当前 HXOPS 对话轮次 ID;传入后将最近批次绑定到该轮进度卡"
},
{
"name": "conversation_id",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "当前 Dify 会话 ID,仅用于关联当前查询轮次"
},
{
"name": "user_message",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "当前用户问题,仅用于关联当前查询轮次"
}
],
"responses": {
@@ -945,4 +972,4 @@
}
}
}
}
}