feat(shipping-notice): 新增临时库存管理功能,支持创建会话、获取分析结果及字段映射建议
This commit is contained in:
1 parent
46eb63f5bb
commit
e9bdd81f1a
320 files changed
+28361
-10487
No files matched your search
@@ -3,7 +3,7 @@ backend/app/services/shipping_notice/context_adapter.py
|
||||
|
||||
用途:发货通知 Agent 的 Context Adapter,构建 agent_runtime_context Dify inputs。
|
||||
依赖:shipping_notice.dify_inputs.build_dify_chat_inputs、agent_runtime_context.registry。
|
||||
逻辑:agent_code=shipping_notice 时由 build_chat_dify_inputs 分发至本模块;adapter_hints.shipping_notice 透传 task/batch。
|
||||
逻辑:agent_code=shipping_notice 时由 build_chat_dify_inputs 分发至本模块;adapter_hints.shipping_notice 透传任务锚点或临时库存资产锚点。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -28,7 +28,7 @@ def build_shipping_notice_context_adapter(
|
||||
"""
|
||||
构建发货通知 Dify Start inputs。
|
||||
|
||||
核心逻辑:从 adapter_hints.shipping_notice 读取 task/batch 或待抽取 Intake 集合,委托 dify_inputs 组装 runtime_context。
|
||||
核心逻辑:从 adapter_hints.shipping_notice 读取 task/batch、待抽取 Intake 集合或临时库存资产,委托 dify_inputs 组装 runtime_context。
|
||||
|
||||
Args:
|
||||
agent: 当前对话 Agent(保留签名一致性;发货上下文主要依赖 session_id)。
|
||||
@@ -52,4 +52,6 @@ def build_shipping_notice_context_adapter(
|
||||
locale=locale,
|
||||
intake_nos=shipping_hints.get('intake_nos'),
|
||||
capability=shipping_hints.get('capability'),
|
||||
temporary_inventory_asset_no=shipping_hints.get('temporary_inventory_asset_no'),
|
||||
temporary_inventory_session_no=shipping_hints.get('temporary_inventory_session_no'),
|
||||
)
|
||||
Reference in new issue
Block a user