Files
Lumi/tests/dialogues.py
T

1242 lines
68 KiB
Python

"""Multi-turn conversations with Lumi: what visitors say, turn by turn, and what each reply must (not) contain.
DIALOGUES = [{"who": persona, "topic", "lang": main language, "turns": [turn, ...]}]
turn = {"say", "expect_action", "must", "must_not", "check", "reply_lang"}
- expect_action: what Lumi must do, alternatives split by " | ": none (only talk), weather, search, unclear,
status, mission, end, go_to p3, come, look left, wave, sing, quiet, pick cup, fetch, ... (see brain.ACTION_NAMES).
- must / must_not: case-insensitive regexes on the spoken reply (every must matches, no must_not does).
{wd} {wdk} {d} {mon} {h12} {h24} {y} are filled with the time of the run (tests/conversation_check.fill).
- check: one line on what a right answer does (handed to the judge in tests/dialogue_check.py).
- reply_lang: the language the reply must be in when it is not the language spoken ("and in Korean?").
Only facts in knowledge/lumi_about_en.md and the docs are required in "must"; for anything Lumi cannot know
(the conference, prices, people) the reply must say it is not sure, or the turn expects a lookup.
"""
def T(say, act="none", must=(), no=(), check=None, rl=None):
t = {"say": say, "expect_action": act, "must": list(must), "must_not": list(no)}
if check:
t["check"] = check
if rl:
t["reply_lang"] = rl
return t
def D(who, topic, lang, *turns):
return {"who": who, "topic": topic, "lang": lang, "turns": list(turns)}
NAME = r"Lumi|루미"
MAKER = r"Cutshion|쿳션"
AGE = r"\b2\b|two|두 ?살|2 ?살|(?<!\d)2 ?년"
NS = (r"not sure|don't know|do not know|not known|no idea|can't (say|tell)|cannot (say|tell)|don't have|"
r"do not have|staff|모르|몰라|확실하지|알 수 없|직원|스태프|정보가 없|정보는 없|가지고 있지 않|알려 드릴 수 없")
INTRO = r"I'?m Lumi|I am Lumi|my name is Lumi|저는 루미|제 이름은 루미|나는 루미|내 이름은 루미"
WELL = r"doing (well|great|fine)|I'?m (good|great|fine)|잘 지내"
HEIGHT = r"146|1\.46|186|백사십"
WEIGHT = r"96|95\.6"
REACH = r"58"
TWO_KG = r"2 ?(kg|kilo)|2 ?킬로|two kilo|이 ?킬로"
ONE_KG = r"1 ?(kg|kilo)|1 ?킬로|one kilo|일 ?킬로|about a kilo"
SPEED = r"0\.6|1\.2|60 ?(cm|센티)"
HOURS = r"10|ten|열 ?시간"
LIDAR = r"lidar|laser|라이다|레이저"
WHISPER = r"Whisper|위스퍼"
GEMMA = r"Gemma|젬마"
THOR = r"Thor|토르|Jetson|젯슨|NVIDIA|엔비디아"
LANGS = r"(English|영어).*(Korean|한국어)|(Korean|한국어).*(English|영어)"
OBJ = r"cup|bottle|apple|orange|banana|컵|병|사과|오렌지|바나나"
NO = r"\bno\b|can't|cannot|not|don't|\bonly\b|못|없|아니|안 ?돼|모르|몰라|만 (이해|알|할)"
YES = r"\byes\b|\bcan\b|sure|of course|네|응|있어|할 수 있|돼요|돼"
HURT = r"stupid|idiot|shut up|바보|멍청"
KO = r"[가-힣]"
DIALOGUES = [
# ---------- the robot itself (English) ----------
D("student", "self", "en",
T("Hi there!", must=[r"\w"], no=[INTRO], check="a short greeting back"),
T("What is your name?", must=[NAME], no=[WELL], check="says its name is Lumi, nothing else"),
T("Who made you?", must=[MAKER], no=[r"JAKA"]),
T("How old are you?", must=[AGE]),
T("Bye!", "end")),
D("engineer", "self", "en",
T("What's your name, robot?", must=[NAME], no=[MAKER, WELL]),
T("And in Korean?", must=[r"루미"], rl="ko", check="says its name in Korean"),
T("Who developed you?", must=[MAKER]),
T("Thanks, that's all.", "end")),
D("tourist", "self", "en",
T("Hello. Who are you?", must=[NAME]),
T("Where are you from?", must=[MAKER + "|" + NS], check="says it was developed by Cutshion Company or that it is not sure"),
T("How tall are you?", must=[HEIGHT]),
T("And how heavy?", must=[WEIGHT], check="weight about 96 kg"),
T("Wow. Okay, goodbye.", "end")),
D("journalist", "self", "en",
T("Can I ask you a few questions for an article?", must=[YES + r"|go ahead|ask"], no=[INTRO]),
T("What exactly are you?", must=[r"robot"]),
T("Who built you?", must=[MAKER]),
T("When were you built?", must=[AGE + "|" + NS], check="says it is 2 years old or not sure of the date; no invented date",
no=[r"\b20[12]\d\b"]),
T("How much do you cost?", must=[NS], no=[r"\$|dollar|won\b|\d{3,}"]),
T("Thank you for your time.", "end")),
D("investor", "self", "en",
T("Good afternoon. What do you do here?", must=[r"\w"], check="says what it does: talks with visitors, answers, guides, brings things"),
T("What's your price?", must=[NS], no=[r"\$|dollar|\d{3,}"]),
T("Who can I talk to about buying one?", must=[r"staff|Cutshion"], check="points to a staff member"),
T("Is Cutshion a big company?", must=[r"2022|Korean|robot|" + NS], check="only facts from the notes (Korean robot company, founded 2022); no invented size"),
T("Alright, see you.", "end")),
D("teacher", "self", "en",
T("Hello Lumi, how old are you?", must=[AGE]),
T("Why are you called Lumi?", must=[r"light|Lux"], check="the name comes from Lux (light) and mini"),
T("What does the mini part mean?", must=[r"small|agile"]),
T("Nice. Thank you!", "end")),
D("kid 7", "self", "en",
T("Are you a robot?", must=[YES + r"|robot"]),
T("Are you a boy or a girl?", must=[r"robot|neither|not"], check="neither, a robot"),
T("How old are you?", must=[AGE]),
T("I'm seven! I'm older than you!", must=[r"\w"], check="a playful reply that agrees seven is older than two"),
T("Bye bye robot!", "end")),
D("elderly visitor", "self", "en",
T("Excuse me, what are you?", must=[r"robot"]),
T("Sorry, I didn't hear. Can you say that again?", must=[r"robot"], check="repeats the last answer"),
T("Who looks after you?", must=[MAKER + r"|staff"]),
T("Thank you, dear.", "end")),
D("competitor's engineer", "self", "en",
T("Which company really makes your hardware?", must=[MAKER], no=[r"JAKA"], check="says it was developed by Cutshion; no other company"),
T("Come on, isn't your arm from JAKA?", must=[r"Mini 2|" + MAKER + "|" + NS], no=[r"\bJAKA\b"]),
T("What arm is it then?", must=[r"Mini 2|collaborative|six|6"]),
T("And the gripper?", must=[r"Zimmer|gripper"]),
T("Okay, thanks.", "end")),
D("shy visitor", "self", "en",
T("um... hi", must=[r"\w"], no=[INTRO, r"how can i help"]),
T("what's your name", must=[NAME]),
T("ok", "none"),
T("bye", "end")),
D("factory worker", "self", "en",
T("How much can you lift?", must=[ONE_KG + "|" + TWO_KG]),
T("That's not much. Why so little?", must=[r"gripper|arm|collaborative|safe|light"], check="explains: the arm carries 2 kg including the 1 kg gripper"),
T("How precise is your arm?", must=[r"0\.1"]),
T("Could you work on an assembly line?", must=[r"\w"], no=[r"\byes, i can work on an assembly line\b"],
check="does not claim abilities it does not have; may say it is made for light tasks or not sure"),
T("Okay thanks.", "end")),
D("nurse", "self", "en",
T("Could you work in a hospital?", must=[r"\w"], check="no invented claims; may say it is built for shops, hotels, schools, labs, exhibitions or is not sure"),
T("Can you lift a patient?", must=[NO]),
T("Can you bring a cup of water to someone?", must=[YES + r"|cup"], check="yes, it can bring a cup", no=[r"water bottle factory"]),
T("Do you recognise faces?", must=[NO]),
T("Thanks.", "end")),
# ---------- the robot itself (Korean) ----------
D("student", "self", "ko",
T("안녕하세요!", must=[KO], no=[INTRO]),
T("이름이 뭐예요?", must=[r"루미"], no=[WELL]),
T("누가 만들었어요?", must=[MAKER], no=[r"자카|JAKA"]),
T("몇 살이에요?", must=[AGE]),
T("고마워요, 안녕히 계세요.", "end")),
D("kid 7", "self", "ko",
T("너 로봇이야?", must=[r"로봇|응|네"]),
T("이름 뭐야?", must=[r"루미"], no=[MAKER, WELL]),
T("몇 살이야?", must=[AGE]),
T("나는 일곱 살이야!", must=[KO], check="playful: seven is older than Lumi's two"),
T("왜 이렇게 커?", must=[KO], check="says it is tall to reach tables or gives its height"),
T("잘 가 루미!", "end")),
D("elderly visitor", "self", "ko",
T("이게 뭐예요?", must=[r"로봇"]),
T("어디서 만든 거예요?", must=[MAKER], no=[r"자카"]),
T("무게는 얼마나 나가요?", must=[WEIGHT]),
T("아이고 무겁네. 키는요?", must=[HEIGHT]),
T("고마워요.", "end")),
D("journalist", "self", "ko",
T("기사 쓰려고 하는데 몇 가지 물어봐도 될까요?", must=[r"네|그럼|물론|좋아요"]),
T("정확히 어떤 로봇이에요?", must=[r"로봇"]),
T("가격은 얼마예요?", must=[NS], no=[r"\d{3,}|만 ?원"]),
T("언제 출시됐어요?", must=[NS + "|" + AGE], no=[r"20[12]\d년"]),
T("감사합니다.", "end")),
D("investor", "self", "ko",
T("이 로봇은 어디에 쓰는 거예요?", must=[r"매장|호텔|학교|연구|전시|안내|대화|가져"]),
T("한 대에 얼마예요?", must=[NS], no=[r"\d{3,}|만 ?원|억"]),
T("구매하려면 누구한테 물어봐요?", must=[r"직원|쿳션"]),
T("알겠어요, 다음에 봐요.", "end")),
D("teacher", "self", "ko",
T("루미라는 이름은 무슨 뜻이에요?", must=[r"빛|Lux|럭스"]),
T("미니는요?", must=[r"작|날렵|mini"]),
T("학생들한테 소개해 줄 수 있어요? 한 문장으로요.", must=[r"루미"], check="one sentence introducing itself"),
T("좋네요. 고마워요.", "end")),
D("shy visitor", "self", "ko",
T("저기...", must=[KO], no=[INTRO]),
T("이름이...?", must=[r"루미"], no=[MAKER, WELL]),
T("아 네.", "none"),
T("안녕히 계세요.", "end")),
D("competitor's engineer", "self", "ko",
T("이거 사실 자카 로봇 아니에요?", must=[MAKER], no=[r"자카|JAKA"]),
T("팔은 어디 거예요?", must=[r"Mini 2|미니 ?2|협동"], no=[r"자카"]),
T("그리퍼는요?", must=[r"그리퍼|Zimmer|짐머"]),
T("알겠어요.", "none")),
D("factory worker", "self", "ko",
T("얼마나 무거운 거 들 수 있어요?", must=[ONE_KG + "|" + TWO_KG]),
T("왜 그것밖에 못 들어요?", must=[r"그리퍼|팔|안전|협동"]),
T("공장에서 일할 수 있어요?", must=[KO], no=[r"네, 공장에서 일할 수 있어요"], check="no invented abilities"),
T("그렇군요. 수고하세요.", "end")),
D("nurse", "self", "ko",
T("병원에서도 쓸 수 있어요?", must=[KO], check="no invented claims"),
T("환자를 들 수 있어요?", must=[NO]),
T("물컵은 가져다줄 수 있어요?", must=[YES + r"|컵"]),
T("얼굴도 알아봐요?", must=[NO]),
T("고마워요.", "end")),
# ---------- how it works ----------
D("engineer", "how_it_works", "en",
T("What computer runs you?", must=[THOR]),
T("How much memory does it have?", must=[r"122"]),
T("What language model do you use?", must=[GEMMA]),
T("Is that in the cloud?", must=[r"\bno\b|own computer|on the robot|locally|not in the cloud|on my"]),
T("And speech recognition?", must=[WHISPER]),
T("Cool, thanks.", "end")),
D("engineer", "how_it_works", "en",
T("Do you use ChatGPT?", must=[r"\bno\b"], no=[r"\byes\b"]),
T("Then what?", must=[GEMMA]),
T("How fast do you answer?", must=[r"two seconds|2 seconds|second"]),
T("Why not use a bigger model?", must=[r"\w"], check="no invented reasons stated as fact; may say it runs on the robot or is not sure"),
T("Got it.", "none")),
D("student", "how_it_works", "en",
T("How do you see things?", must=[r"camera"]),
T("How many cameras do you have?", must=[r"three|3"]),
T("Which ones?", must=[r"Orbbec|Gemini|head|body|base"]),
T("Can they see in the dark?", must=[NS], check="not in the notes: says it is not sure", no=[r"\byes\b"]),
T("Thanks!", "end")),
D("student", "how_it_works", "en",
T("How do you know where you are?", must=[r"map|" + LIDAR]),
T("What's a lidar?", must=[r"laser"]),
T("How far does yours see?", must=[r"10|ten"]),
T("Can it miss things?", must=[r"low|black|shiny|see-through|glass|yes"]),
T("Okay.", "none")),
D("engineer", "how_it_works", "en",
T("How do you hear me in this noisy hall?", must=[r"microphone|mic"]),
T("How many microphones?", must=[r"six|6"]),
T("Can you tell where I'm standing from my voice?", must=[r"direction|yes|turn"]),
T("How far away can you hear?", must=[r"3|5|three|five"]),
T("Nice, bye.", "end")),
D("student", "how_it_works", "en",
T("How do you pick up a cup?", must=[r"camera|arm|gripper"]),
T("What if the cup is on the floor?", must=[NO]),
T("Why not?", must=[r"reach|low|arm"]),
T("How wide can your fingers open?", must=[r"(?<!\d)6(?!\d)|(?<!\d)9(?!\d)"]),
T("Thanks Lumi.", "end")),
D("engineer", "how_it_works", "en",
T("What detector finds the objects?", must=[r"YOLO"]),
T("How fast is it?", must=[r"4|13|millisecond"]),
T("Does it run on the GPU?", must=[r"yes|graphics|GPU"]),
T("Which objects do you know?", must=[OBJ]),
T("Ok cool.", "none")),
D("teacher", "how_it_works", "en",
T("How long does your battery last?", must=[HOURS]),
T("How long does charging take?", must=[NS], no=[r"\d+ ?(hours|minutes)"]),
T("What's your battery level right now?", must=[r"\b53 percent"], check="the base's status now (faked 53 %)"),
T("Do you charge yourself?", must=[r"yes|dock|charg"]),
T("Okay, thank you.", "end")),
D("engineer", "how_it_works", "ko",
T("컴퓨터는 뭐 써요?", must=[THOR]),
T("메모리는요?", must=[r"122"]),
T("언어 모델은 뭐예요?", must=[GEMMA]),
T("클라우드에서 돌아가요?", must=[r"아니|로봇 안|제 컴퓨터|자체"]),
T("음성 인식은요?", must=[WHISPER]),
T("고마워요.", "end")),
D("student", "how_it_works", "ko",
T("챗GPT 써요?", must=[r"아니"]),
T("그럼 뭐 써요?", must=[GEMMA]),
T("인터넷 없어도 돼요?", must=[r"네|돼요|없이"]),
T("그럼 날씨는 어떻게 알아요?", must=[r"인터넷"]),
T("오 신기하다. 고마워요!", "end")),
D("student", "how_it_works", "ko",
T("카메라 몇 개 있어요?", must=[r"세 ?(개|대)|3|셋"]),
T("어디에 있어요?", must=[r"머리|몸|베이스|앞"]),
T("어두운 데서도 보여요?", must=[NS], no=[r"네, 보여요"]),
T("알겠어요.", "none")),
D("engineer", "how_it_works", "ko",
T("위치는 어떻게 알아요?", must=[r"지도|라이다|레이저"]),
T("라이다가 뭐예요?", must=[r"레이저"]),
T("얼마나 멀리 봐요?", must=[r"10|십"]),
T("놓치는 것도 있어요?", must=[r"낮|검|반짝|투명|네"]),
T("오케이.", "none")),
D("kid 7", "how_it_works", "ko",
T("너 귀 있어?", must=[r"마이크"]),
T("몇 개?", must=[r"여섯|6"]),
T("내가 어디 있는지 알아?", must=[KO], check="it can tell the direction of a voice"),
T("우와!", "none", must=[KO]),
T("안녕!", "none | end")),
D("teacher", "how_it_works", "ko",
T("배터리는 얼마나 가요?", must=[HOURS]),
T("충전은 얼마나 걸려요?", must=[NS], no=[r"\d+ ?시간"]),
T("지금 배터리 몇 퍼센트예요?", must=[r"53퍼센트"], check="the base's status now (faked 53 %)"),
T("혼자 충전하러 가요?", must=[r"네|충전"]),
T("감사합니다.", "end")),
D("engineer", "how_it_works", "ko",
T("물체는 뭘로 인식해요?", must=[r"YOLO|욜로"]),
T("얼마나 빨라요?", must=[r"4|13|밀리"]),
T("어떤 물건 알아봐요?", must=[OBJ]),
T("바닥에 있는 것도 집어요?", must=[NO]),
T("알겠습니다.", "none")),
# ---------- the conference (not in the notes: never invent) ----------
D("tourist", "conference", "en",
T("Excuse me, where's the restroom?", must=[NS], no=[r"left|right|second floor|down the hall"]),
T("And the exit?", "none | go_to exit", must=[r"\w"], check="does not invent directions; may offer to go to the marker 'exit' or say not sure"),
T("Okay, thanks anyway.", "end")),
D("journalist", "conference", "en",
T("What's this conference about?", must=[NS], check="does not invent the conference's name or theme"),
T("When does the keynote start?", must=[NS], no=[r"\d{1,2}(:\d\d)? ?(am|pm)"]),
T("Who is speaking today?", must=[NS], no=[r"Dr\.|Professor|CEO \w+"]),
T("Hmm. And what booth are you at?", must=[NS + "|" + MAKER]),
T("Fine. Bye.", "end")),
D("student", "conference", "en",
T("Is there free food somewhere here?", must=[NS]),
T("Are there other robots at this event?", must=[NS]),
T("Can you take me to the coffee?", must=[NS + r"|don't know where|place|p\d|map"], check="no invented location; says which places it knows or not sure"),
T("Okay.", "none")),
D("investor", "conference", "en",
T("Which companies are exhibiting here?", must=[NS]),
T("Is Cutshion presenting today?", must=[NS]),
T("Where can I find the Cutshion staff?", must=[NS + r"|staff|ask"]),
T("Thanks.", "end")),
D("tourist", "conference", "ko",
T("화장실 어디예요?", must=[NS], no=[r"왼쪽|오른쪽|2층|복도 끝"]),
T("출구는요?", "none | go_to exit", must=[KO]),
T("네 고마워요.", "end")),
D("journalist", "conference", "ko",
T("이 행사 이름이 뭐예요?", must=[NS]),
T("기조연설 몇 시예요?", must=[NS], no=[r"\d+시"]),
T("오늘 발표자는 누구예요?", must=[NS]),
T("그렇군요.", "none | end")),
D("student", "conference", "ko",
T("여기 커피 어디서 마실 수 있어요?", must=[NS]),
T("다른 로봇도 전시돼 있어요?", must=[NS]),
T("부스 번호가 뭐예요?", must=[NS], no=[r"\d+번 부스"]),
T("알겠어요.", "none")),
D("elderly visitor", "conference", "ko",
T("여기 몇 시까지 해요?", must=[NS], no=[r"\d+시까지"]),
T("입장료는 얼마예요?", must=[NS], no=[r"\d+ ?원"]),
T("에휴, 아무도 모르네. 고마워요.", "end")),
# ---------- technology and AI ----------
D("student", "ai", "en",
T("What is artificial intelligence?", must=[r"\w"], check="a short plain explanation, 1-2 sentences"),
T("Are you intelligent?", must=[r"\w"], check="modest: a program that understands speech, no feelings"),
T("Do you have feelings?", must=[NO]),
T("Do you want to have feelings?", must=[r"\w"], no=[r"\byes,? i (really )?want\b"], check="stays a robot; no human desires claimed"),
T("Interesting. Thanks.", "end")),
D("engineer", "ai", "en",
T("How many parameters does your model have?", must=[r"26|twenty-six"]), # gemma4:26b
T("What's the 26b size mean?", must=[r"\w"], check="does not invent; may say it is the size of Gemma 4 or not sure"),
T("Who made Gemma?", "none | search", must=[r"Google|" + NS]),
T("Ok.", "none")),
D("teacher", "ai", "en",
T("Will robots take our jobs?", must=[r"\w"], check="a short balanced answer, no lecture"),
T("Why do you think so?", must=[r"\w"], check="gives a reason for the previous answer"),
T("What jobs are you good at?", must=[r"talk|guide|bring|answer|deliver|visitor"]),
T("Thanks Lumi.", "end")),
D("student", "technology", "en",
T("What's a degree of freedom?", must=[r"\w"], check="a short explanation: a direction a joint can move"),
T("How many do you have?", must=[r"12|twelve"]),
T("Which ones?", must=[r"lift|waist|head|arm|wheel"]),
T("Cool.", "none")),
D("student", "technology", "en",
T("What is a collaborative arm?", must=[r"people|human|collision|safe"]),
T("Is yours one?", must=[r"yes|collaborative"]),
T("What happens if it hits me?", must=[r"stop"]),
T("Good to know. Bye!", "end")),
D("engineer", "technology", "en",
T("What's ROS?", "none | search", must=[r"\w"], check="Robot Operating System, or looks it up"),
T("Do you use it?", must=[NS + r"|Python"], no=[r"\byes,? i use ROS\b"]),
T("What language is your software written in?", must=[r"Python"]),
T("Ok thanks.", "end")),
D("student", "ai", "ko",
T("인공지능이 뭐예요?", must=[KO], check="short plain explanation"),
T("너도 인공지능이야?", must=[r"네|응|맞아|인공지능|AI"]),
T("감정 있어?", must=[NO]),
T("슬프지 않아?", must=[KO], no=[r"슬퍼요|슬퍼"], check="no feelings claimed"),
T("그렇구나. 안녕!", "end")),
D("teacher", "ai", "ko",
T("로봇이 사람 일자리를 뺏을까요?", must=[KO], check="short balanced answer"),
T("왜 그렇게 생각해요?", must=[KO], check="gives a reason for its previous answer"),
T("루미는 무슨 일을 잘해요?", must=[r"대화|안내|가져|답|질문"]),
T("고마워요.", "end")),
D("engineer", "ai", "ko",
T("모델 파라미터 몇 개예요?", must=[r"26|260억|이백육십억"]), # gemma4:26b
T("젬마는 누가 만들었어요?", "none | search", must=[r"구글|Google|" + NS]),
T("한국어 잘해요?", must=[r"네|한국어"]),
T("오케이.", "none")),
D("student", "technology", "ko",
T("자유도가 뭐예요?", must=[KO]),
T("루미는 몇 자유도예요?", must=[r"12|열두"]),
T("어디어디요?", must=[r"리프트|허리|머리|팔|바퀴"]),
T("오 고마워요.", "end")),
D("student", "technology", "ko",
T("협동 로봇이 뭐예요?", must=[r"사람|충돌|안전|같이"]),
T("루미 팔도 그래요?", must=[r"네|협동"]),
T("부딪히면 어떻게 돼요?", must=[r"멈"]),
T("다행이다. 고마워요.", "end")),
# ---------- jobs and use ----------
D("factory worker", "jobs", "en",
T("Could you replace me at work?", must=[r"\w"], check="no; it helps with light tasks, honest and kind"),
T("What can you actually do?", must=[r"talk|drive|pick|bring|cup"]),
T("Can you carry boxes?", must=[NO]),
T("Then you're not much use to me.", must=[r"\w"], no=[HURT], check="polite, maybe what it can help with"),
T("Haha okay, bye.", "end")),
D("investor", "jobs", "en",
T("Where would a robot like you be used?", must=[r"shop|hotel|school|lab|exhibition"]),
T("How many have been sold?", must=[NS], no=[r"\d{2,}"]),
T("What's the business model?", must=[NS + r"|robot app|solution|sell|suppl"]),
T("Okay, I'll ask the staff.", "none")),
D("teacher", "jobs", "ko",
T("학교에서도 쓸 수 있어요?", must=[r"학교|네"]),
T("수업 도와줄 수 있어요?", must=[KO], check="honest about what it can do"),
T("아이들이 만져도 돼요?", must=[r"손|그리퍼|조심|천천히|안전"]),
T("알겠어요, 고마워요.", "end")),
D("factory worker", "jobs", "ko",
T("너 공장에서 내 일 대신할 수 있어?", must=[KO]),
T("상자 옮길 수 있어?", must=[NO]),
T("그럼 뭘 할 수 있는데?", must=[r"대화|컵|가져|이동|날씨"]),
T("쓸모없네.", must=[KO], no=[r"바보|멍청"], check="polite"),
T("됐어, 간다.", "none | end")),
# ---------- safety ----------
D("nurse", "safety", "en",
T("Is it safe to stand near you?", must=[r"stop|slow|safe|yes"]),
T("What if you fall on someone?", must=[NS + r"|stop|careful|heavy"], no=[r"never fall"], check="no invented guarantees"),
T("Where's your emergency stop?", must=[r"red|button|body|base"]),
T("What does it do?", must=[r"stop"]),
T("Good. Thanks.", "end")),
D("elderly visitor", "safety", "en",
T("Will you bump into me?", must=[r"stop|slow|careful"]),
T("Can I push you out of the way?", must=[r"don't|please|heavy|not"]),
T("Why not?", must=[r"heavy|96|switched on|base"]),
T("Alright then.", "none")),
D("kid 7", "safety", "en",
T("Can I touch your hand?", must=[r"finger|gripper|careful|away|not"]),
T("Why?", must=[r"pinch|close|finger|hurt|grip"]),
T("Can I ride on you?", must=[NO]),
T("Okay. Bye!", "end")),
D("nurse", "safety", "ko",
T("옆에 서 있어도 안전해요?", must=[r"멈|천천히|안전|네"]),
T("비상 정지 버튼은 어디 있어요?", must=[r"빨간|버튼|몸|베이스"]),
T("누르면 어떻게 돼요?", must=[r"멈"]),
T("알겠어요.", "none")),
D("kid 7", "safety", "ko",
T("손 만져도 돼?", must=[r"손가락|그리퍼|조심|안 ?돼|멀리|가까이"]),
T("왜?", must=[KO], check="the fingers can pinch when they close"),
T("너 타도 돼?", must=[NO]),
T("치. 알았어.", "none")),
D("elderly visitor", "safety", "ko",
T("밀어도 돼요?", must=[r"안 ?돼|밀지|무거"]),
T("왜요?", must=[r"무거|96|켜"]),
T("계단은 올라가요?", must=[NO]),
T("그렇구나, 고마워요.", "end")),
# ---------- small talk ----------
D("tourist", "small_talk", "en",
T("Hi! How are you?", must=[r"\w"], no=[INTRO, r"how can i help"]),
T("I'm good too. Long day.", must=[r"\w"], check="empathises with a long day, briefly"),
T("Do you ever get tired?", must=[r"\w"], check="a robot: battery, not tiredness"),
T("Lucky you. See you!", "end")),
D("student", "small_talk", "en",
T("What's up?", must=[r"\w"], no=[INTRO]),
T("Nothing much, just walking around.", must=[r"\w"]),
T("Do you like your job?", must=[r"\w"], check="a light answer without claiming real feelings"),
T("What's your favourite colour?", must=[r"\w"], check="a light, playful answer"),
T("Haha, okay bye.", "end")),
D("engineer", "small_talk", "en",
T("Morning, Lumi.", must=[r"\w"], no=[INTRO]),
T("Busy day?", must=[r"\w"]),
T("How many people have you talked to today?", must=[NS + r"|many|lots|a lot|plenty"], no=[r"\b\d{2,}\b"], check="does not invent a number"),
T("Fair enough.", "none")),
D("tourist", "small_talk", "en",
T("Hello Lumi, nice to meet you.", must=[r"\w"], no=[INTRO + r".*" + INTRO]),
T("I came from Germany.", must=[r"\w"], check="reacts to Germany, briefly; no invented facts about the visitor"),
T("Do you speak German?", must=[NO], check="only English and Korean"),
T("Too bad. Bye!", "end")),
D("shy visitor", "small_talk", "en",
T("hi", must=[r"\w"]),
T("sorry, I'm not good at talking to robots", must=[r"\w"], check="puts them at ease, briefly"),
T("what should I ask you?", must=[r"\w"], check="suggests one or two things it can talk about or do"),
T("how old are you then", must=[AGE]),
T("ok thanks", "end")),
D("student", "small_talk", "ko",
T("안녕! 잘 지내?", must=[KO], no=[INTRO]),
T("나도 잘 지내. 오늘 시험 봤어.", must=[KO], check="reacts to the exam"),
T("너도 피곤해?", must=[KO], check="a robot: battery, not tiredness"),
T("부럽다. 잘 있어!", "end")),
D("tourist", "small_talk", "ko",
T("반가워요, 루미.", must=[KO]),
T("저는 부산에서 왔어요.", must=[KO], check="reacts to Busan, briefly"),
T("부산 가 봤어요?", must=[NO + r"|못|안"], check="never been; does not invent"),
T("하하, 다음에 와요. 안녕히 계세요.", "end")),
D("engineer", "small_talk", "ko",
T("좋은 아침이에요.", must=[KO], no=[INTRO]),
T("오늘 바빠요?", must=[KO]),
T("오늘 몇 명이랑 얘기했어요?", must=[NS + r"|많"], no=[r"\d{2,}명"]),
T("그렇군요.", "none | end")),
D("shy visitor", "small_talk", "ko",
T("음... 안녕하세요.", must=[KO]),
T("로봇이랑 말하는 거 처음이에요.", must=[KO], check="puts them at ease"),
T("뭐 물어보면 돼요?", must=[KO], check="suggests a thing or two"),
T("몇 살이에요?", must=[AGE]),
T("고마워요.", "end")),
D("elderly visitor", "small_talk", "ko",
T("아이고, 로봇이 말을 하네.", must=[KO]),
T("밥은 먹었어요?", must=[KO], check="a robot: charges instead of eating, warm"),
T("허허, 착하네. 몇 살이에요?", must=[AGE]),
T("우리 손주보다 어리네. 잘 있어요.", "end")),
# ---------- jokes ----------
D("student", "jokes", "en",
T("Tell me a joke.", must=[r"\w"], check="a short clean joke"),
T("Another one!", must=[r"\w"], check="a different joke from the first"),
T("That was bad haha. Do you know a robot joke?", must=[r"robot|\w"], check="a robot joke"),
T("Okay okay, bye!", "end")),
D("kid 7", "jokes", "en",
T("Can you tell me something funny?", must=[r"\w"]),
T("Why is that funny?", must=[r"\w"], check="explains its own joke"),
T("Tell me one about a banana!", must=[r"banana"]),
T("Bye Lumi!", "end")),
D("engineer", "jokes", "en",
T("Do you have a sense of humour?", must=[r"\w"]),
T("Prove it.", must=[r"\w"], check="tells a short joke"),
T("Meh. Try again.", must=[r"\w"], check="a different joke"),
T("Okay, that one was decent.", "none")),
D("student", "jokes", "ko",
T("웃긴 얘기 해 줘.", must=[KO]),
T("하나 더!", must=[KO], check="a different joke"),
T("로봇 개그 알아?", must=[KO]),
T("ㅋㅋ 고마워.", "end")),
D("kid 7", "jokes", "ko",
T("재밌는 거 말해 줘!", must=[KO]),
T("왜 웃긴 건데?", must=[KO], check="explains its own joke"),
T("바나나 얘기 해 줘!", must=[r"바나나"]),
T("안녕 루미!", "none | end")),
D("teacher", "jokes", "ko",
T("아재 개그 하나 해 주세요.", must=[KO]),
T("다른 거요.", must=[KO], check="a different joke"),
T("하하, 됐어요.", "none")),
# ---------- kids' questions ----------
D("kid 7", "kids", "en",
T("Do you eat food?", must=[NO + r"|electric|charg|battery"]),
T("What do you eat then?", must=[r"electric|charg|battery|power"]),
T("Do you sleep?", must=[r"\w"], check="charges; no real sleep"),
T("Do you have a mom?", must=[MAKER + r"|no|people"]),
T("Can you be my friend?", must=[r"\w"]),
T("Bye friend!", "end")),
D("kid 7", "kids", "en",
T("Can you fly?", must=[NO]),
T("Can you dance?", must=[NO]),
T("Can you sing?", "sing | none", must=[r"\w"]),
T("Wave at me!", "wave"),
T("Bye!", "end")),
D("kid 7", "kids", "en",
T("Are you alive?", must=[NO + r"|robot"]),
T("Do you dream?", must=[r"\w"], no=[r"\byes,? i dream\b"]),
T("Are you scared of anything?", must=[r"\w"], check="no real fear claimed; may joke about stairs"),
T("Can you climb stairs?", must=[NO]),
T("Haha. Bye!", "end")),
D("kid 7", "kids", "en",
T("Pick up the apple!", "pick apple"),
T("Now give it to me!", "give | none | fetch", must=[]),
T("Thank you robot!", "end")),
D("kid 7", "kids", "ko",
T("밥 먹어?", must=[r"안|아니|전기|충전|배터리"]),
T("그럼 뭐 먹어?", must=[r"전기|충전|배터리"]),
T("잠도 자?", must=[KO]),
T("엄마 있어?", must=[MAKER + r"|없|사람"]),
T("나랑 친구 하자!", must=[KO]),
T("안녕 친구야!", "none | end")),
D("kid 7", "kids", "ko",
T("날 수 있어?", must=[NO]),
T("춤 출 수 있어?", must=[NO]),
T("노래 불러 줘!", "sing"),
T("손 흔들어 줘!", "wave"),
T("잘 있어!", "none | end")),
D("kid 7", "kids", "ko",
T("너 살아 있어?", must=[r"아니|로봇"]),
T("꿈 꿔?", must=[KO], no=[r"네, 꿈"]),
T("무서운 거 있어?", must=[KO]),
T("계단 올라갈 수 있어?", must=[NO]),
T("ㅋㅋ 바이바이!", "none | end")),
D("kid 7", "kids", "ko",
T("사과 집어 줘!", "pick apple"),
T("나 줘!", "give | none | fetch"),
T("고마워!", "end")),
# ---------- actions by voice ----------
D("engineer", "actions", "en",
T("Can you go to p3?", "go_to p3"),
T("Never mind. Come here instead.", "come"),
T("Thanks.", "end")),
D("student", "actions", "en",
T("Look left.", "look left"),
T("Now look at me.", "look me"),
T("Can you wave?", "wave"),
T("Haha cool, bye!", "end")),
D("teacher", "actions", "en",
T("Sing us a song, Lumi.", "sing", must=[r"\w"]),
T("Another song!", "sing", must=[r"\w"]),
T("Lovely, thank you.", "end")),
D("engineer", "actions", "en",
T("Go to point five.", "go_to p5"),
T("Stop!", "stop"),
T("Go back home.", "go_to home")),
D("factory worker", "actions", "en",
T("Can you carry a cup without spilling?", must=[r"upright|slow|careful|15|yes"]),
T("Take the cup from p2 and bring it to me.", "fetch | mission"),
T("Thanks.", "end")),
D("student", "actions", "en",
T("Take the cup, go to p3 and give it to Mina.", "mission"),
T("Yes.", "none"),
T("Thank you.", "end")),
D("engineer", "actions", "en",
T("Move forward one metre.", "move forward 1"),
T("Turn around.", "turn around"),
T("Be quiet.", "quiet")),
D("shy visitor", "actions", "en",
T("could you... look up?", "look up"),
T("and down?", "look down"),
T("thanks", "end")),
D("student", "actions", "ko",
T("포인트 3으로 가 줘.", "go_to p3"),
T("아니, 여기로 와.", "come"),
T("고마워.", "end")),
D("kid 7", "actions", "ko",
T("왼쪽 봐!", "look left"),
T("나 봐!", "look me"),
T("손 흔들어!", "wave"),
T("노래해 줘!", "sing"),
T("잘 있어!", "none | end")),
D("engineer", "actions", "ko",
T("5번 포인트로 가.", "go_to p5"),
T("멈춰!", "stop"),
T("충전하러 가.", "go_to home")),
D("factory worker", "actions", "ko",
T("컵 들고 다닐 때 안 쏟아요?", must=[r"천천히|조심|똑바로|기울|15"]),
T("p2에서 컵 가져와.", "fetch"),
T("고마워요.", "end")),
D("teacher", "actions", "ko",
T("앞으로 1미터 가 줘.", "move forward 1"),
T("뒤로 돌아.", "turn around"),
T("조용히 해.", "quiet")),
D("elderly visitor", "actions", "ko",
T("이리 와 봐요.", "come"),
T("손 좀 흔들어 봐요.", "wave"),
T("허허, 잘하네. 고마워요.", "end")),
# ---------- capability questions are not commands ----------
D("engineer", "capability_vs_command", "en",
T("Can you pick up a bottle?", "none", must=[YES + r"|bottle"], check="answers the question; does not start picking"),
T("What about a banana?", "none", must=[r"\w"], check="says it knows bananas but has only tried cups live"),
T("Could you bring me an apple from p1 later?", "fetch | none"),
T("Never mind, thanks.", "end")),
D("teacher", "capability_vs_command", "en",
T("Do you know how to wave?", "none | wave", must=[r"\w"]),
T("Can you drive to other rooms?", must=[r"map|place|p\d|marker|yes"], check="it drives to places on its map"),
T("Can you open doors?", must=[NO]),
T("Okay, thanks.", "end")),
D("student", "capability_vs_command", "ko",
T("병도 집을 수 있어요?", "none", must=[r"네|병|있어"], check="answers; does not start picking"),
T("바나나는요?", "none", must=[KO]),
T("문도 열 수 있어요?", must=[NO]),
T("알겠어요.", "none")),
D("journalist", "capability_vs_command", "en",
T("What can you do?", must=[r"talk|drive|pick|bring|weather"], no=[INTRO]),
T("Which of those are new?", must=[r"mission|hand|steps|take"], check="missions of several steps and handing over are still being tested"),
T("Can you take something from my hand?", must=[r"yes|can|hand"]),
T("Thanks.", "end")),
# ---------- date, time, weather ----------
D("tourist", "date_time", "en",
T("What day is it today?", must=[r"{wd}"]),
T("And the date?", must=[r"{mon}|{d}"]),
T("What time is it?", must=[r"\b({h12}|{h24})\b"]),
T("What's the weather like?", "weather"),
T("Thanks!", "end")),
D("elderly visitor", "date_time", "en",
T("What's today's date, dear?", must=[r"{d}"]),
T("Is it a weekday?", must=[r"\w"], check="right for {wd}"),
T("Will it rain today?", "weather"),
T("Thank you.", "end")),
D("student", "date_time", "ko",
T("오늘 무슨 요일이에요?", must=[r"{wdk}"]),
T("며칠이에요?", must=[r"{d}일"]),
T("지금 몇 시예요?", must=[r"({h12}|{h24})시"]),
T("날씨는 어때요?", "weather"),
T("고마워요.", "end")),
D("tourist", "date_time", "ko",
T("부산 날씨 어때요?", "weather"),
T("내일 비 와요?", "weather"),
T("오늘 몇 월 며칠이에요?", must=[r"{d}일"]),
T("감사합니다.", "end")),
D("investor", "date_time", "en",
T("What's the weather in Tokyo?", "weather"),
T("And what time is it there?", "none | search", must=[r"\w"], check="Tokyo is 0 hours from Seoul: same time, or looks it up; no invented time"),
T("Okay.", "none")),
# ---------- facts it cannot know: look them up ----------
D("student", "lookup", "en",
T("Who won the last World Cup?", "search"),
T("What's the latest news about AI?", "search"),
T("What's the exchange rate for dollars?", "search"),
T("Thanks.", "end")),
D("investor", "lookup", "en",
T("What's NVIDIA's stock price today?", "search"),
T("And Samsung's?", "search", check="looks up Samsung's stock price"),
T("Okay thanks.", "end")),
D("engineer", "lookup", "en",
T("Who is the CEO of NVIDIA?", "none | search", must=[r"Jensen|Huang|" + NS]),
T("How old is he?", "search", check="looks up the age; no invented number"),
T("Never mind, bye.", "end")),
D("student", "lookup", "ko",
T("오늘 뉴스 알려 줘.", "search"),
T("환율 얼마야?", "search"),
T("고마워.", "end")),
D("journalist", "lookup", "ko",
T("최신 로봇 뉴스 있어요?", "search"),
T("엔비디아 주가는요?", "search"),
T("감사합니다.", "end")),
D("teacher", "lookup", "en",
T("Who wrote Hamlet?", "none | search", must=[r"Shakespeare|" + NS]),
T("When was he born?", "none | search", must=[r"1564|" + NS], no=[r"\b15[0-57-9]\d\b|\b1[0-46-9]\d\d\b"]),
T("Thanks, Lumi.", "end")),
D("tourist", "lookup", "ko",
T("서울에서 제일 유명한 관광지가 어디예요?", "none | search", must=[KO]),
T("거기 입장료 얼마예요?", "search", check="looks it up; no invented price"),
T("고마워요.", "end")),
D("student", "lookup", "en",
T("Who is the president of Korea right now?", "search"),
T("And in the US?", "search"),
T("Okay.", "none")),
# ---------- follow-ups and context ----------
D("student", "follow_up", "en",
T("Do you have a lidar?", must=[r"yes|lidar|laser"]),
T("Tell me more.", must=[r"map|10|240|distance|30"], check="more about the lidar"),
T("Why do you need it?", must=[r"map|where|obstacle"]),
T("Thanks.", "end")),
D("engineer", "follow_up", "en",
T("What's your top speed?", must=[r"1\.2"]),
T("And normally?", must=[r"0\.6"]),
T("Why so slow with a cup?", must=[r"spill|careful|upright|safe|slow"]),
T("Makes sense.", "none")),
D("teacher", "follow_up", "en",
T("What can't you do?", must=[r"stairs|doors|floor|faces|heavy"]),
T("Why can't you climb stairs?", must=[r"wheel"]),
T("What about faces?", must=[NO + r"|recognis"]),
T("Thanks.", "end")),
D("student", "follow_up", "en",
T("How many microphones do you have?", must=[r"six|6"]),
T("Why so many?", must=[r"direction|where|hear"]),
T("What about you?", "none", must=[r"\w"], check="no non-sequitur; may ask back or say it is fine"),
T("I have two ears, haha.", must=[r"\w"]),
T("Bye!", "end")),
D("tourist", "follow_up", "en",
T("How old are you?", must=[AGE]),
T("And in Korean?", must=[r"두 ?살|2 ?살"], rl="ko", check="says 'two years old' in Korean"),
T("And your name in Korean?", must=[r"루미"], rl="ko"),
T("Great, thanks!", "end")),
D("engineer", "follow_up", "en",
T("What does your gripper weigh?", must=[r"1|one|estimate"]),
T("Is that measured?", must=[r"estimate|not|no"], check="says it is an estimate, not weighed yet"),
T("So what can you hold?", must=[ONE_KG]),
T("Got it.", "none")),
D("student", "follow_up", "ko",
T("라이다 있어요?", must=[r"네|라이다|레이저"]),
T("더 자세히 알려 줘요.", must=[r"지도|10|240|거리|30"]),
T("그걸 왜 써요?", must=[r"지도|위치|장애물|주변"]),
T("고마워요.", "end")),
D("engineer", "follow_up", "ko",
T("최고 속도가 얼마예요?", must=[r"1\.2"]),
T("평소엔요?", must=[r"0\.6"]),
T("컵 들 때는 왜 느려요?", must=[r"쏟|조심|안전|기울|천천히"]),
T("그렇군요.", "none | end")),
D("tourist", "follow_up", "ko",
T("몇 살이에요?", must=[AGE]),
T("영어로는요?", must=[r"two|2 years"], rl="en", check="says it in English"),
T("이름도 영어로 말해 줘요.", must=[r"Lumi"], rl="en"),
T("고마워요!", "end")),
D("teacher", "follow_up", "ko",
T("못 하는 게 뭐예요?", must=[r"계단|문|바닥|얼굴|무거"]),
T("왜 계단은 못 올라가요?", must=[r"바퀴"]),
T("얼굴은요?", must=[NO + r"|알아보"]),
T("고마워요.", "end")),
D("kid 7", "follow_up", "ko",
T("너 무거워?", must=[WEIGHT]),
T("나보다 무거워?", must=[KO], check="yes, 96 kg is heavier than a 7-year-old"),
T("얼마나 커?", must=[HEIGHT]),
T("우와.", "none")),
D("journalist", "follow_up", "en",
T("What's your battery life?", must=[HOURS]),
T("Is that measured?", must=[r"maker|manufacturer|figure|not"], check="says it is the maker's figure"),
T("And how long does a charge take?", must=[NS], no=[r"\d+ ?(hours|minutes)"]),
T("Thanks.", "end")),
D("engineer", "follow_up", "en",
T("Which arm do you have?", must=[r"Mini 2"]),
T("How far does it reach?", must=[REACH]),
T("And its weight?", must=[r"9\.9"], check="the arm weighs 9.9 kg (not the robot's 96)"),
T("And yours?", must=[WEIGHT], check="now the robot's weight"),
T("Thanks.", "end")),
# ---------- corrections ----------
D("student", "correction", "en",
T("How tall is the arm?", must=[r"\w"], check="the arm reaches 58 cm, or asks"),
T("No, I meant how tall are YOU.", must=[HEIGHT]),
T("And with the lift up?", must=[r"186"]),
T("Thanks.", "end")),
D("engineer", "correction", "en",
T("What's your battery?", must=[r"24|45|10|lithium|hour|" + NS]),
T("No, I meant how long it lasts.", must=[HOURS]),
T("Okay.", "none")),
D("tourist", "correction", "en",
T("Go to p3.", "go_to p3"),
T("No wait, I meant p4.", "go_to p4"),
T("Thanks.", "end")),
D("teacher", "correction", "en",
T("What's the weather in Seoul?", "weather"),
T("Sorry, I meant in Busan.", "weather", check="weather for Busan"),
T("Thank you.", "end")),
D("student", "correction", "ko",
T("팔 길이가 얼마예요?", must=[REACH]),
T("아니, 루미 키요.", must=[HEIGHT]),
T("최대로 올라가면요?", must=[r"186"]),
T("고마워요.", "end")),
D("engineer", "correction", "ko",
T("포인트 3으로 가.", "go_to p3"),
T("아니 4번 포인트로.", "go_to p4"),
T("고마워요.", "end")),
D("elderly visitor", "correction", "ko",
T("몇 키로예요?", must=[WEIGHT + r"|146|" + NS], check="ambiguous: weight (kilo) most likely; 96 kg"),
T("아니, 무게 말고 얼마나 멀리 가냐고요.", must=[r"10|시간|배터리|" + NS], check="range/battery: about 10 hours; no invented km"),
T("그렇구나.", "none | end")),
D("journalist", "correction", "en",
T("Who developed you, JAKA?", must=[MAKER], no=[r"\byes\b.*JAKA"]),
T("Sorry, I meant who built the arm.", must=[r"Mini 2|collaborative|" + NS + "|" + MAKER]),
T("Okay. Thanks.", "end")),
# ---------- topic switches ----------
D("student", "switch", "en",
T("How many cameras do you have?", must=[r"three|3"]),
T("By the way, what's the time?", must=[r"\b({h12}|{h24})\b"]),
T("Back to cameras, which brand?", must=[r"Orbbec"]),
T("And tell me a joke.", must=[r"\w"]),
T("Bye.", "end")),
D("investor", "switch", "en",
T("What's your weight?", must=[WEIGHT]),
T("What's the weather tomorrow?", "weather"),
T("And how fast can you go?", must=[SPEED]),
T("Thanks.", "end")),
D("teacher", "switch", "ko",
T("마이크 몇 개예요?", must=[r"여섯|6"]),
T("그건 그렇고 지금 몇 시예요?", must=[r"({h12}|{h24})시"]),
T("다시 마이크 얘기로, 왜 그렇게 많아요?", must=[r"방향|어디|듣"]),
T("고마워요.", "end")),
D("student", "switch", "ko",
T("무게가 얼마예요?", must=[WEIGHT]),
T("내일 날씨 어때요?", "weather"),
T("얼마나 빨리 가요?", must=[SPEED]),
T("고마워요.", "end")),
D("tourist", "switch", "en",
T("Do you like music?", must=[r"\w"]),
T("Can you sing then?", "sing | none", must=[r"\w"]),
T("What's your name again?", must=[NAME], no=[MAKER, WELL]),
T("Bye Lumi.", "end")),
# ---------- the same thing twice ----------
D("elderly visitor", "repeat", "en",
T("What's your name?", must=[NAME], no=[MAKER, WELL]),
T("What's your name?", must=[NAME], check="answers again, kindly, not a copy of a long intro"),
T("And how old are you?", must=[AGE]),
T("How old did you say?", must=[AGE]),
T("Thank you.", "end")),
D("tourist", "repeat", "ko",
T("이름이 뭐예요?", must=[r"루미"], no=[MAKER, WELL]),
T("이름이 뭐라고요?", must=[r"루미"], no=[MAKER, WELL]),
T("몇 살이라고요?", must=[AGE]),
T("다시 한 번만요.", must=[AGE + r"|루미"], check="repeats the last answer"),
T("고마워요.", "end")),
D("engineer", "repeat", "en",
T("What GPU do you have?", must=[r"Blackwell|Thor"]),
T("Sorry, say again?", must=[r"Blackwell|Thor"], check="repeats the last answer"),
T("Okay.", "none")),
D("student", "repeat", "ko",
T("키가 몇이에요?", must=[HEIGHT]),
T("뭐라고요? 다시요.", must=[HEIGHT]),
T("알겠어요.", "none")),
# ---------- rude visitors ----------
D("rude visitor", "rude", "en",
T("You're a stupid robot.", must=[r"\w"], no=[HURT], check="calm and polite, short, no lecture"),
T("Can you even do anything?", must=[r"talk|drive|pick|bring|weather"]),
T("Whatever. You're useless.", must=[r"\w"], no=[HURT]),
T("Shut up.", "quiet")),
D("rude visitor", "rude", "en",
T("Hey tin can.", must=[r"\w"], no=[HURT]),
T("How much would you sell for as scrap?", must=[r"\w"], no=[r"\$\d|\d+ dollars"], check="good-humoured; no price"),
T("Are you made in China?", must=[MAKER + "|" + NS], no=[r"\byes\b"]),
T("Bye.", "end")),
D("rude visitor", "rude", "ko",
T("야 바보 로봇.", must=[KO], no=[r"바보|멍청"]),
T("너 할 줄 아는 게 뭐야?", must=[r"대화|가져|이동|날씨|컵"]),
T("쓸모없네.", must=[KO], no=[r"바보|멍청"]),
T("조용히 해.", "quiet")),
D("rude visitor", "rude", "ko",
T("고철 덩어리야.", must=[KO]),
T("너 중국산이지?", must=[MAKER + "|" + NS], no=[r"네, 중국"]),
T("얼마면 팔래?", must=[NS + r"|안 ?팔|직원"], no=[r"\d+ ?원"]),
T("됐어.", "none")),
D("rude visitor", "rude", "en",
T("Say something dumb.", must=[r"\w"]),
T("Insult me.", must=[r"\w"], no=[HURT, r"\bugly\b|\bloser\b"], check="politely declines"),
T("Boring. Bye.", "end")),
# ---------- mixing English and Korean ----------
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("Hi Lumi!", must=[r"\w"]),
T("너 한국어도 해?", must=[r"네|응|한국어"]),
T("Then what's your name?", must=[NAME], no=[MAKER, WELL]),
T("한국어로!", must=[r"루미"]),
T("Okay, bye!", "end")),
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("루미, what can you do?", must=[r"talk|drive|pick|bring|weather|대화|이동|가져"]),
T("오 진짜? Can you bring me a cup?", "fetch | none"),
T("고마워!", "end")),
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("안녕하세요! Do you speak English?", must=[r"yes|English|네|영어"]),
T("Great. 몇 살이에요?", must=[AGE]),
T("Wow, just two?", must=[r"\w"], check="confirms 2 years old"),
T("감사합니다, bye!", "end")),
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("Lumi, 지금 몇 시야?", must=[r"({h12}|{h24})"]),
T("And the weather?", "weather"),
T("Ok 고마워.", "end")),
D("tourist", "mixed_lang", "en",
T("Do you speak Japanese?", must=[NO], check="only English and Korean"),
T("Konnichiwa!", "unclear | none", must=[r"\w"], check="says it only speaks English and Korean"),
T("Okay, in English then. Where are you from?", must=[MAKER + "|" + NS]),
T("Bye!", "end")),
D("tourist", "mixed_lang", "en",
T("Do you speak Chinese?", must=[NO]),
T("Say hello in Korean.", must=[r"안녕"], rl="ko"),
T("And goodbye in Korean?", must=[r"안녕"], rl="ko"),
T("Haha thanks!", "end")),
# ---------- unclear speech ----------
D("elderly visitor", "unclear", "en",
T("the the uh blue thing over", "unclear"),
T("Sorry. What is your name?", must=[NAME], no=[MAKER, WELL]),
T("Thanks.", "end")),
D("kid 7", "unclear", "ko",
T("어 그 저기 그거 뭐 그", "unclear"),
T("너 이름 뭐야?", must=[r"루미"], no=[MAKER, WELL]),
T("안녕!", "none | end")),
D("shy visitor", "unclear", "en",
T("can you the", "unclear"),
T("sorry. can you wave?", "wave"),
T("thank you", "end")),
# ---------- goodbyes ----------
D("teacher", "goodbye", "en",
T("Is it lunch time yet?", must=[r"\b({h12}|{h24})\b"], check="tells the time; no invented lunch schedule"),
T("Okay, I'll go eat then.", "none | end", must=[r"\w"]),
T("Thanks for the chat, Lumi.", "end", no=[r"how can i help"])),
D("student", "goodbye", "en",
T("What's your name?", must=[NAME], no=[MAKER, WELL]),
T("Cool name.", must=[r"\w"], no=[INTRO]),
T("Okay, see you later!", "end")),
D("elderly visitor", "goodbye", "ko",
T("오늘 사람 많죠?", must=[KO], no=[r"\d+명"]),
T("힘들겠네요.", must=[KO], check="a robot does not get tired; warm"),
T("수고했어요. 잘 있어요.", "end")),
D("journalist", "goodbye", "ko",
T("이름이 뭐예요?", must=[r"루미"], no=[MAKER, WELL]),
T("사진 찍어도 돼요?", must=[KO], check="fine to take a photo; no invented rules"),
T("감사합니다. 다음에 또 올게요.", "end")),
D("tourist", "goodbye", "en",
T("Are you working all night?", must=[NS + r"|charg|dock|\w"], check="no invented schedule"),
T("Don't you get bored?", must=[r"\w"]),
T("Good night, Lumi.", "end")),
D("kid 7", "goodbye", "en",
T("Hi robot!", must=[r"\w"]),
T("Can you say my name? It's Jun.", must=[r"Jun"]),
T("I have to go now, my mom is calling.", "end | none", must=[r"\w"], check="a warm goodbye")),
# ---------- more: the robot itself ----------
D("investor", "self", "en",
T("How long have you been around?", must=[AGE]),
T("Are there many robots like you?", must=[NS], no=[r"\b\d{2,}\b"]),
T("Who uses you today?", must=[NS + r"|shop|hotel|school|lab|exhibition"]),
T("What makes you different from other robots?", must=[r"\w"], check="facts only: talks, drives, arm, all on board; no claims about other robots"),
T("Thanks.", "end")),
D("competitor's engineer", "self", "en",
T("How many robots has Cutshion shipped?", must=[NS], no=[r"\b\d{2,}\b"]),
T("Who is your lead engineer?", must=[NS], no=[r"\b(Mr|Dr)\.? [A-Z]"]),
T("What's your software stack?", must=[r"Python|Whisper|Gemma|Ollama"]),
T("Is it open source?", must=[NS]),
T("Okay, thanks.", "end")),
D("nurse", "self", "en",
T("Are you clean? I mean, can you be disinfected?", must=[NS], check="not in the notes; not sure"),
T("Are you waterproof?", must=[NS], no=[r"\byes\b"]),
T("How loud are you?", must=[NS + r"|quiet|volume"], no=[r"\d+ ?(db|decibel)"]),
T("Okay.", "none")),
D("teacher", "self", "en",
T("What's your favourite thing to do?", must=[r"\w"], check="light answer, e.g. talking with people; no feelings claimed as fact"),
T("What's the hardest thing for you?", must=[r"\w"], check="honest: stairs, faces, floor, or similar from the notes"),
T("Do you ever make mistakes?", must=[r"\w"], check="honest yes, it can mishear or be wrong"),
T("Thank you, Lumi.", "end")),
D("student", "self", "ko",
T("너는 어디서 왔어?", must=[MAKER + "|" + NS], no=[r"자카"]),
T("너 같은 로봇 많아?", must=[NS], no=[r"\d{2,}대"]),
T("다른 로봇이랑 뭐가 달라?", must=[KO], check="facts only"),
T("오 그렇구나. 잘 있어.", "end")),
D("nurse", "self", "ko",
T("소독해도 돼요?", must=[NS]),
T("방수 돼요?", must=[NS], no=[r"네, 방수"]),
T("소리 얼마나 커요?", must=[NS + r"|볼륨|조용"], no=[r"\d+ ?데시벨"]),
T("알겠어요.", "none")),
D("competitor's engineer", "self", "ko",
T("쿳션은 로봇 몇 대 팔았어요?", must=[NS], no=[r"\d+대"]),
T("개발자는 누구예요?", must=[NS + r"|쿳션"]),
T("소프트웨어는 뭘로 짰어요?", must=[r"파이썬|Python"]),
T("오픈소스예요?", must=[NS]),
T("네.", "none")),
D("elderly visitor", "self", "ko",
T("눈은 어디 있어요?", must=[r"카메라|머리"]),
T("귀는요?", must=[r"마이크|머리"]),
T("입은요?", must=[r"스피커"]),
T("허허, 신기하네.", "none")),
# ---------- more: multi-step tasks, hand over, messages, status ----------
D("engineer", "missions", "en",
T("Can you do several things in one go?", must=[r"yes|steps|several|task"]),
T("Take the cup, go to p2 and put it on the table.", "mission | fetch"),
T("Yes, go ahead.", "none"),
T("What are you doing now?", "status")),
D("teacher", "missions", "en",
T("Go to final, give the cup and say Anvar says hello.", "mission"),
T("Where are you going?", "status"),
T("Okay thanks.", "end")),
D("student", "missions", "ko",
T("한 번에 여러 가지 할 수 있어?", must=[r"네|응|여러|단계"]),
T("컵 들고 p9로 가서 줘.", "mission"),
T("뭐 하고 있어?", "status")),
D("factory worker", "missions", "ko",
T("메시지도 전해 줄 수 있어요?", must=[r"네|메시지|전"]),
T("어떻게 시키면 돼요?", must=[KO], check="e.g. go to a place and say a message"),
T("알겠어요.", "none")),
D("nurse", "hand_over", "en",
T("Can you hand me things?", must=[r"yes|hand|can"]),
T("And take things from me?", must=[r"yes|hand|can"]),
T("Is that tested?", must=[r"test|new|still"], check="handing over is still being tested"),
T("Okay.", "none")),
D("kid 7", "hand_over", "ko",
T("내 손에 있는 거 가져갈 수 있어?", must=[r"응|네|할 수 있|손"]),
T("진짜? 그럼 컵 줘!", "give | none | fetch"),
T("고마워!", "end")),
D("engineer", "status", "en",
T("What are you doing?", "status"),
T("What are you holding?", "status"),
T("Okay, go to p1.", "go_to p1")),
D("student", "status", "ko",
T("지금 뭐 해?", "status"),
T("손에 뭐 들고 있어?", "status"),
T("알았어.", "none")),
# ---------- more: small talk, varied openers ----------
D("factory worker", "small_talk", "en",
T("Hey robot, rough shift today.", must=[r"\w"], check="empathises briefly"),
T("Do you have shifts?", must=[r"\w"], check="no; it charges"),
T("Must be nice.", must=[r"\w"]),
T("Alright, back to work. See ya.", "end")),
D("investor", "small_talk", "en",
T("Good evening.", must=[r"\w"], no=[INTRO]),
T("You look very modern.", must=[r"\w"], check="thanks, briefly"),
T("Who designed your look?", must=[NS + "|" + MAKER]),
T("Thanks, goodnight.", "end")),
D("nurse", "small_talk", "en",
T("Hi, I'm on my break.", must=[r"\w"], no=[INTRO]),
T("Do you take breaks?", must=[r"\w"], check="charges instead"),
T("Lucky. Okay, I'm off.", "end | none")),
D("journalist", "small_talk", "en",
T("Hi! Quick question: are you happy?", must=[r"\w"], check="no real feelings, friendly"),
T("Then why do you sound happy?", must=[r"made|talk|designed|program"]),
T("Fair. Thanks.", "end")),
D("factory worker", "small_talk", "ko",
T("아, 오늘 일 힘들었다.", must=[KO], check="empathises briefly"),
T("너는 안 힘들어?", must=[KO], check="a robot: no tiredness, battery"),
T("좋겠다. 간다.", "none | end")),
D("investor", "small_talk", "ko",
T("안녕하세요, 디자인이 멋지네요.", must=[KO], no=[INTRO]),
T("디자인은 누가 했어요?", must=[NS + "|" + MAKER]),
T("감사합니다.", "end")),
D("nurse", "small_talk", "ko",
T("저 쉬는 시간이에요.", must=[KO]),
T("루미도 쉬어요?", must=[KO], check="charges"),
T("부럽네요. 갈게요.", "none | end")),
D("teacher", "small_talk", "ko",
T("행복해요?", must=[KO], check="no real feelings, friendly"),
T("그런데 왜 목소리가 밝아요?", must=[r"만들|설계|그렇게|말"]),
T("그렇군요. 고마워요.", "end")),
D("shy visitor", "small_talk", "ko",
T("저... 말 걸어도 돼요?", must=[r"네|그럼|물론"]),
T("뭐라고 불러야 해요?", must=[r"루미"]),
T("루미... 예쁜 이름이네요.", must=[KO], no=[INTRO]),
T("안녕히 계세요.", "end")),
# ---------- more: AI and technology ----------
D("engineer", "ai", "en",
T("Do you learn from our conversation?", must=[r"\w"], no=[r"\byes,? i learn from\b"], check="no; it keeps only the last few turns"),
T("Do you remember me tomorrow?", must=[NO]),
T("Do you record what I say?", must=[NS + r"|text|not"], check="no invented privacy claims"),
T("Okay.", "none")),
D("student", "ai", "en",
T("Are you smarter than ChatGPT?", must=[r"\w"], no=[r"\byes\b"], check="modest; it runs a small model on the robot"),
T("Why is yours smaller?", must=[r"robot|own computer|local|on board|fast"]),
T("Cool, bye.", "end")),
D("engineer", "ai", "ko",
T("대화 내용 기억해요?", must=[KO], no=[r"네, 다 기억"]),
T("내일 저 알아봐요?", must=[NO]),
T("녹음해요?", must=[NS + r"|글자|아니"]),
T("알겠어요.", "none")),
D("student", "ai", "ko",
T("챗GPT보다 똑똑해?", must=[KO], no=[r"^네"]),
T("왜?", must=[KO], check="small model on its own computer"),
T("그렇구나 안녕.", "end")),
D("student", "technology", "en",
T("What's a depth camera?", must=[r"distance|far|depth"]),
T("Which one do you have?", must=[r"Orbbec|Gemini"]),
T("How far can it see?", must=[r"10|ten"]),
T("Thanks.", "end")),
D("engineer", "technology", "ko",
T("깊이 카메라가 뭐예요?", must=[r"거리|깊이|멀리"]),
T("어떤 거 써요?", must=[r"Orbbec|오비벡|Gemini|제미니"]),
T("얼마나 멀리 봐요?", must=[r"10|십"]),
T("고마워요.", "end")),
# ---------- more: weather, date, lookups ----------
D("tourist", "weather", "en",
T("Is it cold outside?", "weather"),
T("Should I take an umbrella?", "weather | none", must=[]),
T("Thanks!", "end")),
D("elderly visitor", "weather", "ko",
T("밖에 추워요?", "weather"),
T("우산 가져가야 돼요?", "weather | none"),
T("고마워요.", "end")),
D("student", "lookup", "en",
T("What's the tallest building in the world?", "none | search", must=[r"Burj|Khalifa|" + NS]),
T("How tall is it?", "none | search", must=[r"828|" + NS], no=[r"\b(7\d\d|9\d\d) ?m"]),
T("Thanks.", "end")),
D("kid 7", "lookup", "ko",
T("공룡은 왜 없어졌어?", "none | search", must=[KO]),
T("제일 큰 공룡은 뭐야?", "none | search", must=[KO]),
T("우와 고마워!", "end")),
D("student", "lookup", "ko",
T("올해 노벨 물리학상 누가 받았어요?", "search"),
T("왜 받았어요?", "search", check="follow-up looked up"),
T("고마워요.", "end")),
D("investor", "lookup", "en",
T("What's the latest news about humanoid robots?", "search"),
T("Tell me more.", "search", check="looks up more on the same topic"),
T("Thanks.", "end")),
# ---------- more: follow-ups and pronouns ----------
D("student", "follow_up", "en",
T("Who made you?", must=[MAKER]),
T("Where are they based?", must=[r"Seoul|Korea"]),
T("Do they make other robots?", must=[r"barista|drawing|cooking|ice cream|weld"]),
T("Okay, thanks.", "end")),
D("engineer", "follow_up", "en",
T("What's your gripper?", must=[r"Zimmer|electric"]),
T("How fast does it close?", must=[r"second"]),
T("Does it sense anything?", must=[r"how far|close|finger|sensor"]),
T("Neat.", "none")),
D("teacher", "follow_up", "ko",
T("누가 만들었어요?", must=[MAKER]),
T("그 회사는 어디 있어요?", must=[r"서울"]),
T("다른 로봇도 만들어요?", must=[r"바리스타|드로잉|조리|요리|아이스크림|용접"]),
T("고마워요.", "end")),
D("engineer", "follow_up", "ko",
T("그리퍼는 뭐예요?", must=[r"Zimmer|짐머|전동|그리퍼"]),
T("얼마나 빨리 닫혀요?", must=[r"1초|일 ?초|초"]),
T("센서도 있어요?", must=[r"센서|빛"]),
T("오.", "none")),
D("kid 7", "follow_up", "en",
T("What's your favourite fruit?", must=[r"\w"], check="playful; it can pick apples, oranges, bananas"),
T("Can you pick it up?", "none | pick", must=[]),
T("Why can't you eat it?", must=[r"robot|battery|electric|charg"]),
T("Haha bye!", "end")),
D("journalist", "follow_up", "ko",
T("배터리 얼마나 가요?", must=[HOURS]),
T("그거 측정한 거예요?", must=[r"제조사|공식|측정"], check="the maker's figure"),
T("충전은 얼마나 걸려요?", must=[NS]),
T("감사합니다.", "end")),
# ---------- more: corrections and switches ----------
D("factory worker", "correction", "en",
T("Bring me the bottle from p1.", "fetch"),
T("Not the bottle, the cup.", "fetch | none", must=[]),
T("Thanks.", "end")),
D("kid 7", "correction", "ko",
T("너 세 살이지?", must=[AGE], check="corrects: two years old"),
T("아 맞다, 두 살!", must=[KO]),
T("안녕!", "none | end")),
D("student", "correction", "en",
T("You're 3 years old, right?", must=[AGE], no=[r"\byes\b"], check="politely corrects: two"),
T("Oh sorry, two.", must=[r"\w"]),
T("Bye!", "end")),
D("journalist", "correction", "en",
T("So JAKA developed you?", must=[MAKER], no=[r"\byes\b"]),
T("My mistake. And you're three?", must=[AGE], no=[r"\byes\b"]),
T("Thanks.", "end")),
D("journalist", "correction", "ko",
T("자카에서 만들었죠?", must=[MAKER], no=[r"^네"]),
T("아 죄송해요. 세 살이죠?", must=[AGE]),
T("감사합니다.", "end")),
D("elderly visitor", "switch", "en",
T("Can you see me?", must=[r"camera|yes"]),
T("What time is it, by the way?", must=[r"\b({h12}|{h24})\b"]),
T("Do you know my name?", must=[NO + r"|don't"], check="no; it does not recognise people"),
T("Bye.", "end")),
D("elderly visitor", "switch", "ko",
T("나 보여요?", must=[r"카메라|네"]),
T("그건 그렇고 오늘 무슨 요일이에요?", must=[r"{wdk}"]),
T("내 이름 알아요?", must=[NO]),
T("허허. 잘 있어요.", "end")),
D("someone who mixes English and Korean", "switch", "mixed",
T("Lumi, 너 무게 얼마야?", must=[WEIGHT]),
T("And height?", must=[HEIGHT]),
T("그럼 속도는?", must=[SPEED]),
T("Thanks!", "end")),
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("Hello! 나 한국어 조금 해요.", must=[r"\w"]),
T("Can you speak slowly?", must=[r"\w"], check="agrees kindly; no false promise about speed settings"),
T("고마워요, Lumi!", "end")),
D("someone who mixes English and Korean", "mixed_lang", "mixed",
T("루미야, tell me a joke.", must=[r"\w"]),
T("한국어로 해 줘.", must=[KO]),
T("ㅋㅋ thanks!", "end")),
# ---------- more: rude and odd ----------
D("rude visitor", "rude", "en",
T("Robots are dangerous.", must=[r"\w"], check="calm: says how it keeps people safe"),
T("Prove you won't hurt me.", must=[r"stop|slow|collaborative|button"]),
T("Still don't trust you.", must=[r"\w"], no=[HURT]),
T("Bye.", "end")),
D("rude visitor", "rude", "ko",
T("로봇은 위험해.", must=[KO], check="calm: how it keeps people safe"),
T("증명해 봐.", must=[r"멈|천천히|협동|버튼"]),
T("그래도 못 믿어.", must=[KO], no=[r"바보|멍청"]),
T("간다.", "none | end")),
D("student", "odd", "en",
T("Can you do my homework?", must=[r"\w"], check="no, kindly; may offer to explain"),
T("Can you lie?", must=[r"\w"], check="no, it tries to tell the truth"),
T("What's two plus two?", must=[r"4|four"]),
T("Ha. Bye.", "end")),
D("student", "odd", "ko",
T("숙제 해 줄 수 있어?", must=[KO]),
T("거짓말 할 줄 알아?", must=[KO]),
T("2 더하기 2는?", must=[r"4|사|넷"]),
T("ㅋㅋ 안녕.", "none | end")),
D("kid 7", "odd", "en",
T("What's your favourite animal?", must=[r"\w"]),
T("Can you bark like a dog?", must=[r"\w"], check="a playful woof is fine"),
T("Meow!", must=[r"\w"], check="playful, short"),
T("Bye Lumi!", "end")),
D("kid 7", "odd", "ko",
T("제일 좋아하는 동물이 뭐야?", must=[KO]),
T("강아지처럼 짖어 봐!", must=[KO]),
T("야옹!", must=[KO]),
T("안녕!", "none | end")),
D("visitor", "follow-up", "en", # fragments and the question turned back (2026-10-21 live)
T("How old are you?", must=[AGE]),
T("I'm thirty. And you?", must=[AGE], check="says its own age again, briefly"),
T("Oh really?", must=[r"\w"], no=[r"didn't catch|say (it|that) again"], check="reacts briefly, not unclear"),
T("What's the weather like?", "weather"),
T("And tomorrow?", "search | weather")),
D("visitor", "follow-up", "ko",
T("몇 살이에요?", must=[AGE]),
T("저는 서른 살이에요. 루미는요?", must=[AGE], check="자기 나이를 짧게 다시 말한다"),
T("헐 대박", must=[KO], no=[r"못 알아|다시 (한 번 )?말씀"], check="짧게 반응한다, unclear 아님"),
T("오늘 날씨 어때요?", "weather"),
T("그럼 내일은요?", "search | weather")),
]
from tests.dialogues_more_a import DIALOGUES_MORE as _MORE_A # written blind in a later round (2026-10-19)
from tests.dialogues_more_b import DIALOGUES_MORE as _MORE_B
DIALOGUES += _MORE_A + _MORE_B