From bb8b3742acbf316d5f9991823d39c3716a402382 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 20 Sep 2026 01:45:23 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=86=B7=E9=93=BE/=E8=8D=AF=E5=93=81?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=E5=86=99=E5=85=A5=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E6=A7=BD=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: haijd --- engine/app/session_store.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/app/session_store.py b/engine/app/session_store.py index 6b4aa2b..caf5f2b 100644 --- a/engine/app/session_store.py +++ b/engine/app/session_store.py @@ -74,6 +74,10 @@ def naive_fill_slots(message: str, slots_meta: list[dict[str, Any]], current: di set_slot("scenario", "户外监测") elif "实验室" in text: set_slot("scenario", "实验室") + elif any(k in text for k in ("冷链", "药品", "疫苗", "生鲜", "冷冻", "温度记录", "记录仪")): + set_slot("scenario", text if len(text) <= 40 else "冷链温度监测") + if "Fresh Tag" in text or "fresh tag" in text.lower(): + set_slot("scenario", "Fresh Tag 1 冷链温度记录") # 本轮若已通过关键词写入至少一个槽,就不再把整句灌进其它空槽 if touched: