feat(shipping-notice): 添加识别定义和规则集管理功能,支持客户和站点的可配置识别规则
This commit is contained in:
1 parent
88408490d7
commit
34d489a2d1
167 files changed
+10365
-7978
No files matched your search
@@ -151,7 +151,7 @@ get_order_extraction_context
|
||||
-> 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-点击发送完整订单抽取固定分支本期必须手工新增)。
|
||||
两个 Tool 均原样接收 Start 变量 `agent_runtime_context`。Dify 不传 `user_id`,不自行拆 `refs.intake_nos` 后调用旧建批接口,也不使用 `create_task` 替代 `submit_order_extraction`;旧固定字段解析 Tool 已删除,不能在画布或 Agent 中配置。完整 Prompt、Code 和参数映射见 [`Dify 初版实施说明`](../shipping_notice/dify_initial_version_implementation.md)。
|
||||
|
||||
## 7. 验收场景
|
||||
|
||||
@@ -203,7 +203,17 @@ get_order_extraction_context
|
||||
- 不得说“已经完成”
|
||||
- 不得把失败写成成功上传、成功匹配或已关闭
|
||||
|
||||
## 8. 回滚与兼容
|
||||
## 8. 当前手工配置验收
|
||||
|
||||
在 Dify 中手工完成以下检查;HXOPS 不会直接修改 Dify 画布:
|
||||
|
||||
1. 订单抽取分支仅保留 `get_order_extraction_context -> LLM -> submit_order_extraction -> End`。
|
||||
2. 两个 Tool 都原样传入 Start 变量 `agent_runtime_context`;`submit_order_extraction.input_snapshot_hash` 必须绑定上游返回值。
|
||||
3. LLM 只按 `contract.fields[]` 的稳定 `field_id` 输出 `header_fields[]` 和 `lines[].fields[]`,每个 Observation 必须含 `value/document_id/quote/confidence`。
|
||||
4. 删除旧固定字段解析 Tool、节点、首轮解析布尔判断和固定字段 `structured` JSON;不得让 Agent 自行裁决字段、库存源或订单状态。
|
||||
5. Agent 白名单仅保留任务查询、受控决策和动态订单编辑 Tool;不得绑定库存映射、RPA、导出、上传或管理 Tool。
|
||||
|
||||
## 9. 回滚与兼容
|
||||
|
||||
当前推荐回滚策略:
|
||||
|
||||
@@ -214,11 +224,11 @@ get_order_extraction_context
|
||||
联调完成前,至少满足:
|
||||
|
||||
- 新画布已稳定读取 `agent_runtime_context`
|
||||
- parse tool 已完成联调
|
||||
- 动态订单抽取 Tool 已完成联调
|
||||
- shipping notice Tool 描述与 Prompt 规则已同步上线
|
||||
- “继续 / 刚才那个 / 上一个失败的 / 多候选” 场景已通过验收
|
||||
|
||||
## 9. 当前结论
|
||||
## 10. 当前结论
|
||||
|
||||
- 当前口径是后端与 Dify 画布统一只使用 `agent_runtime_context`
|
||||
- `reference_context` 负责模糊指代理解,但所有推进仍必须回到 HXOPS Tool
|
||||
|
||||
Reference in new issue
Block a user