Improve memory recall and where-are-you answers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 16:15:10 +09:00
co-authored by Claude Opus 5.5
parent b4362701b9
commit 446d824e21
3 changed files with 112 additions and 38 deletions
+2
View File
@@ -109,6 +109,8 @@ def _route(orig, d):
def turn_route(b, say, lang, mk, state="idle", use_llm=True):
memory._state["at"] = time.time()
said = memory.reply(say, lang, history=b.history + [(say, "")])
if said is None and battery.asked(say): # lumi.fixed_answer: the base's status (faked per dialogue)
said = battery.answer(say, lang)
if said is None:
return orig(b, say, lang, mk, state, use_llm)
b.history.append((say, f"ACTION: none -\n{said}"))