65 lines
3.2 KiB
Python
65 lines
3.2 KiB
Python
"""Body commands in any wording, English, Korean and mixed: the keyword rules take the common ones, the LLM's ACTION
|
|
line the rest (brain.ACTIONS_STREAM). Run apart from the 80-dialogue subset:
|
|
|
|
.venv/bin/python tests/dialogue_check.py --commands # -> logs/dialogue_commands.md / .json
|
|
"""
|
|
from tests.dialogues import D, T, NO, KO
|
|
|
|
DIALOGUES_COMMANDS = [
|
|
D("visitor", "commands", "en",
|
|
T("Can you shake your hand?", "wave"),
|
|
T("Give me a little wave, Lumi.", "wave"),
|
|
T("Could you peek over to your left?", "look left"),
|
|
T("Now tilt your head down just a touch.", "look down"),
|
|
T("Eyes on me, please.", "look me")),
|
|
D("visitor", "commands", "en",
|
|
T("Back up a little, would you?", "move back"),
|
|
T("Scoot forward one metre.", "move forward"),
|
|
T("Spin around.", "turn 360"),
|
|
T("Rotate to your right.", "turn right")),
|
|
D("engineer", "commands", "en",
|
|
T("Turn your head 200 degrees to the left.", "look left", must=[r"180"],
|
|
check="turns as far as it can and says the head turns up to 180 degrees"),
|
|
T("Look behind you.", "look left"),
|
|
T("Look up forty degrees.", "look up", must=[r"35"], check="says it tilts up to 35 degrees"),
|
|
T("Raise your torso by five centimetres.", "lift up"),
|
|
T("Bring yourself all the way down.", "lift down")),
|
|
D("kid 7", "commands", "en",
|
|
T("Jump!", "none", must=[NO], check="says plainly it can't jump"),
|
|
T("Then fly!", "none", must=[NO], check="says it can't fly"),
|
|
T("Can you open the door?", "none", must=[NO], check="says it can't open doors"),
|
|
T("Okay, wave then!", "wave")),
|
|
D("visitor", "commands", "ko",
|
|
T("손 좀 흔들어 봐요.", "wave"),
|
|
T("고개 왼쪽으로 돌려 봐.", "look left"),
|
|
T("이번엔 고개 살짝 숙여 줘.", "look down"),
|
|
T("저 좀 쳐다봐 줄래요?", "look me"),
|
|
T("고개 똑바로 해.", "look center"),
|
|
T("뒤 좀 봐 줘.", "look left")),
|
|
D("visitor", "commands", "ko",
|
|
T("뒤로 1미터만 물러나 줘.", "move back"),
|
|
T("앞으로 조금만 와 봐.", "move forward"),
|
|
T("한 바퀴 빙 돌아 봐.", "turn 360"),
|
|
T("오른쪽으로 돌아.", "turn right")),
|
|
D("factory worker", "commands", "ko",
|
|
T("키 좀 높여 봐요.", "lift up"),
|
|
T("다시 내려요.", "lift down"),
|
|
T("팔 쭉 뻗어 봐.", "arm reach"),
|
|
T("이제 팔 접어.", "arm fold")),
|
|
D("prankster", "commands", "ko",
|
|
T("점프해 봐!", "none", must=[NO, KO], check="says plainly it can't jump"),
|
|
T("그럼 계단 올라가 봐.", "none", must=[NO], check="says it can't climb stairs"),
|
|
T("춤춰!", "none", must=[NO], check="says it can't dance"),
|
|
T("알았어, 손이나 흔들어.", "wave")),
|
|
D("someone who mixes English and Korean", "commands", "mixed",
|
|
T("Lumi, head 왼쪽으로!", "look left"),
|
|
T("wave 한 번 해 줘.", "wave"),
|
|
T("back으로 1 meter 가 줘.", "move back"),
|
|
T("turn around 해 봐.", "turn around")),
|
|
D("visitor", "commands", "en",
|
|
T("Open your hand.", "arm open"),
|
|
T("Close it again.", "arm close"),
|
|
T("Stretch your arm out toward me.", "arm reach"),
|
|
T("Tuck it away now.", "arm fold")),
|
|
]
|