feat(shipping-notice): 添加识别定义和规则集管理功能,支持客户和站点的可配置识别规则

This commit is contained in:
hugo committed 2026-07-20 19:28:17 +08:00
1 parent 88408490d7
commit 34d489a2d1
167 files changed
+10365 -7978

No files matched your search

@@ -3,8 +3,7 @@ services/shipping_notice/parse_summary.py
用途:把发货通知解析结果格式化成适合聊天区展示的摘要文本。
依赖:shipping_notice.i18n 中的语言解析与文案函数、订单行格式化辅助函数。
逻辑:由 task_workflow.parse_notice 在解析完成后调用本文件,向前端或 Agent 返回可直接展示的解析总结。
库存源门禁路径不经本模块,由 parse_notice 直接拼接 issues 列表文案。
逻辑:保留历史解析摘要格式化能力;正式动态订单抽取不依赖本模块。
"""
from __future__ import annotations
@@ -96,7 +95,7 @@ def format_parse_summary(
payload: dict[str, Any] | None = None,
) -> str:
"""
生成 parse_notice 固定 Markdown 摘要(Agent 须原文展示给用户)。
生成历史解析的固定 Markdown 摘要;不得作为动态订单抽取的结果来源。
Args:
low_confidence: True 时追加低置信度提示。