feat(file-check): 新增历史检核报告检索功能及相关 API

This commit is contained in:
hugo committed 2026-06-16 13:32:00 +08:00
1 parent 29a7704d46
commit f6fe56f205
16 files changed
+1060 -163

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
### 2.x 文件检核(file_check)可复用能力
- **产品语义**:对外统一为文件检核(RoHS / MSDS 等);Tool API 使用 `/api/file-check/tools/tasks` 与 `task_id` 字段;多 Agent 共用单套 Dify Chatflow,`task_id` 由 Agent `extra_config` 注入;历史查询按 `task_id` 分支走 Dify Knowledge Retrieval。
- **产品语义**:对外统一为文件检核(RoHS / MSDS 等);Tool API 使用 `/api/file-check/tools/tasks` 与 `task_id` 字段;多 Agent 共用单套 Dify Chatflow,`task_id` 由 Agent `extra_config` 注入;历史查询走 `POST /api/file-check/tools/history/search`,hxops 按 `task_id` 解析 KbGroup → Dify Dataset。
- 通过 `FileCheckService.evaluate()` 调用排程绑定的 Dify Workflow,保持 `dify_result / dify_message` 输出兼容。
- `/api/file-check/tools/*` 显式 HTTP Tool API,供 Chatflow 发起检核、查询结果并返回 Excel 短期签名链接。
- Chatflow 编排见 **[docs/file_check_chatflow_guide.md](file_check_chatflow_guide.md)**;OpenAPI 见 **[docs/openapi/file_check_tools_openapi.json](openapi/file_check_tools_openapi.json)**(`python backend/scripts/export_file_check_openapi.py`)。