feat(shipping-notice): 增强发货通知候选管理功能,支持候选选择、重复检测与业务摘要修订
This commit is contained in:
1 parent
70f684b94a
commit
b595e157e9
83 files changed
+5857
-200
No files matched your search
@@ -128,6 +128,32 @@
|
||||
- 先读 `reference_context.last_failed_target.reason` + `id`
|
||||
- 如果同时存在多个异常候选,再读 `reference_context.candidates`
|
||||
|
||||
## 6.1 货代 Chatflow 的订单抽取能力分支
|
||||
|
||||
货代应用不新增 Workflow;现有 Chatflow 读取以下路径:
|
||||
|
||||
```text
|
||||
agent_code
|
||||
platform.session_id
|
||||
platform.request_id
|
||||
refs.capability
|
||||
refs.contract_version
|
||||
refs.intake_nos
|
||||
```
|
||||
|
||||
当 `refs.capability=order_extraction` 且 `refs.contract_version=shipping-order-extraction-v1` 时,必须在任务续办/库存/自由 Agent 之前执行:
|
||||
|
||||
```text
|
||||
get_order_extraction_context
|
||||
-> LLM 输出 {schema_version, orders[]}
|
||||
-> Code 校验 JSON
|
||||
-> submit_order_extraction
|
||||
-> 模板回复
|
||||
-> End
|
||||
```
|
||||
|
||||
两个 Tool 均原样接收 Start 变量 `agent_runtime_context`。Dify 不传 `user_id`,不自行拆 `refs.intake_nos` 后调用旧建批接口,也不使用 `create_task/parse_notice` 替代 `submit_order_extraction`。完整 Prompt、Code 和参数映射见 [`technical.md §2.4.0`](../features/shipping-notice/technical.md#240-点击发送完整订单抽取固定分支本期必须手工新增)。
|
||||
|
||||
## 7. 验收场景
|
||||
|
||||
联调时至少覆盖以下场景:
|
||||
|
||||
Reference in new issue
Block a user