feat(file-check): 添加文件检核查询结果绑定对话轮次功能,修复空成功批次进度显示问题
This commit is contained in:
1 parent
88fcf3c70b
commit
2878a6998e
6 files changed
+190
-3
No files matched your search
@@ -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解析检核查询响应两个节点)
|
||||
|
||||
|
||||
@@ -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": {
|
||||
@@ -894,4 +921,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user