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: