Improve command, cup task and talk understanding in English and Korean

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 15:30:06 +09:00
co-authored by Claude Opus 5.5
parent e3a1c123c9
commit e3fcfd30ab
23 changed files with 1380 additions and 167 deletions
+3 -2
View File
@@ -87,8 +87,9 @@ def rules(text, state, marks, b):
return "refuse" # Lumi.wave refuses with something held (wave.HOLDING)
if data[0] == "put" and not holding:
return "empty_hand" # skills.put_down: nothing picked, nothing moves
if data[0] == "fetch" and not holding and {"object", "place"} & set(brain.parse_fetch(text, marks)[1]):
return "ask" # fetch_dialog asks what is missing before anything moves
if data[0] == "fetch" and (holding or {"object", "place"} & set(brain.parse_fetch(text, marks)[1])):
return "ask" # fetch_dialog asks what is missing before anything moves;
# holding: lumi.fetch_request asks where to put it first
return data[0] if data[0] in ("weather", "search") else f"action:{data[0]} {data[1]}".strip()
return None