feat(shipping-notice): 增强发货通知候选管理功能,支持候选选择、重复检测与业务摘要修订
This commit is contained in:
1 parent
70f684b94a
commit
b595e157e9
83 files changed
+5857
-200
No files matched your search
@@ -68,6 +68,9 @@ def build_dify_chat_inputs(
|
||||
trigger_source: str | None = None,
|
||||
request_id: str | None = None,
|
||||
locale: str | None = None,
|
||||
intake_nos: list[str] | None = None,
|
||||
capability: str | None = None,
|
||||
contract_version: str | None = None,
|
||||
) -> dict[str, Any]:
|
||||
"""
|
||||
构建发货通知 Dify Chatflow inputs。
|
||||
@@ -108,7 +111,14 @@ def build_dify_chat_inputs(
|
||||
request_id=request_id,
|
||||
locale=locale,
|
||||
scope="task_run" if trigger_source == "backend_orchestrator" else "chat_turn",
|
||||
run_purpose="parse_notice" if trigger_source == "backend_orchestrator" else "chat_turn",
|
||||
run_purpose=(
|
||||
"parse_notice"
|
||||
if trigger_source == "backend_orchestrator"
|
||||
else ("order_extraction" if intake_nos else "chat_turn")
|
||||
),
|
||||
intake_nos=intake_nos,
|
||||
capability=capability,
|
||||
contract_version=contract_version,
|
||||
)
|
||||
if not runtime_context:
|
||||
return {}
|
||||
|
||||
Reference in new issue
Block a user