feat(shipping-notice): 增强发货通知候选管理功能,支持候选选择、重复检测与业务摘要修订

This commit is contained in:
hugo committed 2026-07-15 11:57:04 +08:00
1 parent 70f684b94a
commit b595e157e9
83 files changed
+5857 -200

No files matched your search

+19
View File
@@ -138,6 +138,25 @@ def tool_create_task():
"""
return jsonify(shipping_tools.create_task(_payload()))
@shipping_notice_bp.route('/tools/get_order_extraction_context', methods=['POST'])
def tool_get_order_extraction_context():
"""
返回当前会话待解析邮件及附件文本。
【AI 触发时机】:仅当 agent_runtime_context.refs.capability=order_extraction 时,
在完整订单抽取 LLM 节点之前调用一次。
"""
return jsonify(shipping_tools.get_order_extraction_context(_payload()))
@shipping_notice_bp.route('/tools/submit_order_extraction', methods=['POST'])
def tool_submit_order_extraction():
"""
提交 LLM 完整订单抽取结果并由 HXOPS 校验、判重和自动建单。
【AI 触发时机】:订单抽取 LLM 与 JSON 标准化节点成功后调用;禁止绕过此 Tool 直接建单。
"""
return jsonify(shipping_tools.submit_order_extraction(_payload()))
@shipping_notice_bp.route('/tools/create_batch', methods=['POST'])
def tool_create_batch():
"""