feat(shipping-notice): 实现货代发货通知的库存全流程与对话交互

This commit is contained in:
hugo committed 2026-06-03 11:09:46 +08:00
1 parent a5cc48b6aa
commit 2607f4a9f6
26 files changed
+5013 -256

No files matched your search

@@ -10,6 +10,10 @@ def tool_response(
message: str = "",
data: dict[str, Any] | None = None,
human_options: list[str] | None = None,
checkpoint: str | None = None,
next_required_action: str | None = None,
forbidden_next_tools: list[str] | None = None,
stop_agent_turn: bool = False,
) -> dict[str, Any]:
payload: dict[str, Any] = {
"status": status,
@@ -20,4 +24,12 @@ def tool_response(
payload["case_id"] = case_id
if human_options:
payload["human_options"] = human_options
if checkpoint:
payload["checkpoint"] = checkpoint
if next_required_action:
payload["next_required_action"] = next_required_action
if forbidden_next_tools:
payload["forbidden_next_tools"] = forbidden_next_tools
if stop_agent_turn:
payload["stop_agent_turn"] = True
return payload