Keep words said after Lumi's own voice, search wider for callers and follow round blocked turns

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 18:22:47 +09:00
co-authored by Claude Opus 5.5
parent eb8975ff6e
commit 5cffbd8af4
10 changed files with 107 additions and 27 deletions
+7
View File
@@ -242,4 +242,11 @@ assert b._after(brain.Brain._action("ACTION: look left", "yes", []), "yes")["act
assert b._after(brain.Brain._action("ACTION: look left", "네", []), "네")["action"] == "look"
b.history = [("what is over there?", "ACTION: none -\nThe stage.")]
assert b._after(brain.Brain._action("ACTION: look left", "yes", []), "yes").get("held") # no offer: talk only
# "let's go charging" (2026-10-30: the LLM took it as a remark, "I'll be ready to go when you are!")
CM = ["home", "charge", "p1"]
for t in ["Let's go charging.", "Go charging.", "Lumi, go charging", "Let's go recharging", "go charge", "충전하러 가"]:
assert brain.intent(t, CM) == ("go_to", "charge"), (t, brain.intent(t, CM))
assert brain.intent("Let's go charging.", ["home", "p1"]) == ("go_to", "home") # no charger on the map: home
for t in ["I want to go charging later", "Do you go charging at night?", "don't go charging"]:
assert brain.intent(t, CM) is None, t
print("intents ok")