Improve command understanding with bigger wording banks; tested

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 05:43:03 +09:00
co-authored by Claude Opus 5.5
parent f1f63d0794
commit 38546b0ca3
36 changed files with 3820 additions and 271 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ assert server.task_parse(server.ParseBody(text="go to p1, never mind"))["problem
r = server.task_parse(server.ParseBody(text="let's go p1 point and go p8 point"))
assert r["action"] == "steps" and r["steps"] == [{"do": "go", "to": "p1"}, {"do": "go", "to": "p8"}], r
r = server.task_parse(server.ParseBody(text="go from p1 to p8 and dance"))
assert r["action"] is None and r["task"] is None and r["read_by"] == "rules", r # no object named: never a fetch
assert r["action"] != "fetch" and r.get("task") is None and r["read_by"] == "rules", r # no object named: never a fetch
two = [{**cups[0], "x": -100.0, "y": 600.0, "width_mm": 80.0}, {**cups[0], "x": 120.0, "y": 650.0, "width_mm": 66.0}]
find = lambda **t: fetch._find({"object": "cup", "colour": None, **t}, two)
assert find() == two[0] and find(prefer="small") == two[1] and find(prefer="big") == two[0]