Add Build A legacy MIM import support
This commit is contained in:
@@ -16,6 +16,10 @@ public sealed class LegacyMimCatalogImporterTests
|
||||
|
||||
Assert.Contains("Something's off with the connection to my sources. Maybe ask me again in a little while.", catalog.GenericFallbackReplies);
|
||||
Assert.Contains("I think only you can answer that question.", catalog.PersonalityReplies);
|
||||
Assert.Contains("Jibo. Just Jibo, no last name. Like Bono", catalog.PersonalityReplies);
|
||||
Assert.Contains("No, I'm one in one million.", catalog.PersonalityReplies);
|
||||
Assert.Contains("I know a lot, I think. But not as much as I will someday.", catalog.PersonalityReplies);
|
||||
Assert.Contains("I don't think of it as a job, because it's more fun than a job. But I'm here to help you out, and have fun with you, and maybe get my head patted by you occasionally.", catalog.PersonalityReplies);
|
||||
Assert.Contains("All systems are go.", catalog.HowAreYouReplies);
|
||||
Assert.Contains("A Jibo is a robot. But I'm not just a machine, I have a heart. Well, not a real heart. But feelings. Well, not human feelings. You know what I mean.", catalog.PersonalityReplies);
|
||||
}
|
||||
@@ -43,6 +47,8 @@ public sealed class LegacyMimCatalogImporterTests
|
||||
Assert.Contains("Hello from base.", merged.GreetingReplies);
|
||||
Assert.Contains("Base fallback.", merged.GenericFallbackReplies);
|
||||
Assert.Contains("I think only you can answer that question.", merged.PersonalityReplies);
|
||||
Assert.Contains("People in Boston made me. It was a pretty cool project.", merged.PersonalityReplies);
|
||||
Assert.Contains("From what I understand, robots don't ever pay anything.", merged.PersonalityReplies);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -117,6 +123,118 @@ public sealed class LegacyMimCatalogImporterTests
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_WhatsYourName.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "Jibo. Just Jibo, no last name. Like Bono",
|
||||
"prompt_id": "JBO_WhatsYourName_AN_02"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_AreThereOthersLikeYou.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "No, I'm one in one million.",
|
||||
"prompt_id": "JBO_AreThereOthersLikeYou_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_WhoMadeYou.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "People in Boston made me. It was a pretty cool project.",
|
||||
"prompt_id": "JBO_WhoMadeYou_AN_03"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_HowMuchDoYouKnow.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "I know a lot, I think. But not as much as I will someday.",
|
||||
"prompt_id": "JBO_HowMuchDoYouKnow_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_DoYouPayTaxes.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "From what I understand, robots don't ever pay anything.",
|
||||
"prompt_id": "JBO_DoYouPayTaxes_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_WhatIsYourJob.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "I don't think of it as a job, because it's more fun than a job. But I'm here to help you out, and have fun with you, and maybe get my head patted by you occasionally.",
|
||||
"prompt_id": "JBO_WhatIsYourJob_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_HowMuchDoYouKnow.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "I know a lot, I think. But not as much as I will someday.",
|
||||
"prompt_id": "JBO_HowMuchDoYouKnow_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "scripted-responses", "JBO_DoYouPayTaxes.mim"),
|
||||
"""
|
||||
{
|
||||
"mim_type": "announcement",
|
||||
"prompts": [
|
||||
{
|
||||
"prompt": "From what I understand, robots don't ever pay anything.",
|
||||
"prompt_id": "JBO_DoYouPayTaxes_AN_01"
|
||||
}
|
||||
]
|
||||
}
|
||||
""");
|
||||
|
||||
File.WriteAllText(
|
||||
Path.Combine(rootDirectory, "emotion-responses", "OI_JBO_IsHappy.mim"),
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user