feat(file-check): 更新文件检核工具 API Key 配置及相关文档

This commit is contained in:
hugo committed 2026-06-17 22:29:15 +08:00
1 parent 634dee4b81
commit 55cf7ff734
74 files changed
+1525 -1182

No files matched your search

@@ -50,6 +50,19 @@ def extract_notice_fields(
structured: dict[str, Any] | None = None,
notice_files: list[dict[str, Any]] | None = None,
) -> tuple[dict[str, Any], float, list[str]]:
"""
抽取发货通知单头与订单行,并计算置信度与 warnings。
【AI 触发时机】:由 parse_notice 内部调用;Agent 应调 parse_notice 而非直接调用本函数。
Args:
raw_text: 发货通知正文。
source_type: 来源类型(manual/pdf/email 等)。
structured: Dify/上游已结构化的解析结果(优先使用)。
notice_files: 附件元数据列表(预留)。
Returns:
tuple: (parsed 字典, confidence, warnings 列表)。
"""
warnings: list[str] = []
if structured and isinstance(structured, dict):