Improve command understanding with bigger wording banks; tested
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -114,8 +114,8 @@ def llm_route(action, target, words, text, about, lang, repeating=False):
|
||||
return action, "" # lumi.answer() closes the stream and looks it up
|
||||
if action == "unclear":
|
||||
return action, " ".join(words)
|
||||
if lumi.talk_fate(text) == "close" and (action == "none" or action == "end" and not lumi.kept_goodbye(" ".join(words))):
|
||||
return "chat", " ".join(words) # "thanks" taken as heard: silence ends the talk
|
||||
if lumi.talk_fate(text) == "close" and action in ("none", "end"): # "thanks": it ends when Lumi's words took leave,
|
||||
return ("action:end" if lumi.kept_goodbye(" ".join(words)) else "chat"), " ".join(words) # else silence ends it
|
||||
if action in ("none", "sing") and not repeating and lumi.look_up_unsure(about, words[0] if words else "", text):
|
||||
return "search(unsure)", " ".join(words)
|
||||
return ("none" if action == "none" else f"action:{action} {target}".strip()), " ".join(words)
|
||||
|
||||
Reference in New Issue
Block a user