落地系统异常:大模型/TMS/建群故障停住本单并告警,后台可重试失败步骤。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 14:01:49 +08:00
co-authored by Cursor
parent a5e73c01ae
commit 4381966c4e
26 changed files with 2098 additions and 72 deletions
+13
View File
@@ -145,6 +145,19 @@ def extract_inquiry_snapshot(
b_payload = invoke_extract_fields(
text, allow_network=allow_b, chat_fn=chat_fn
)
if isinstance(b_payload, dict) and not b_payload.get("ok"):
err = str(b_payload.get("error") or "").strip()
if err not in {"b_network_disabled", "extract_fields_shell_not_implemented"} and (
allow_b or chat_fn is not None
):
return {
"business_line": mode,
"land_subtype": "",
"facts": {},
"source": "llm_tech_fail",
"tech_fail": True,
"tech_error": err or "LLM_FAIL",
}
if b_payload and b_payload.get("ok"):
merged = dict(b_payload.get("facts") or {})
merged.update(facts)