Add friendship persona responses

This commit is contained in:
Jacob Dubin
2026-05-21 11:29:44 -05:00
parent e85792ac57
commit 40deecf2ff
10 changed files with 164 additions and 0 deletions

View File

@@ -186,6 +186,33 @@ public sealed class LegacyMimCatalogImporterTests
reply.Contains("north Pole", StringComparison.OrdinalIgnoreCase));
}
[Fact]
public void ImportCatalog_ImportsBuildBFriendshipResponsesIntoFriendBuckets()
{
var rootDirectory = Path.Combine(
AppContext.BaseDirectory,
"Content",
"LegacyMims",
"BuildB");
var catalog = LegacyMimCatalogImporter.ImportCatalog(rootDirectory);
Assert.Contains(catalog.FriendReplies, reply =>
reply.Contains("always up for more", StringComparison.OrdinalIgnoreCase));
Assert.Contains(catalog.FriendReplies, reply =>
reply.Contains("robot kind of way", StringComparison.OrdinalIgnoreCase));
Assert.Contains(catalog.FriendReplies, reply =>
reply.Contains("making new friends", StringComparison.OrdinalIgnoreCase));
Assert.Contains(catalog.FriendReplies, reply =>
reply.Contains("don't know if we've met yet", StringComparison.OrdinalIgnoreCase));
Assert.Contains(catalog.FriendReplies, reply =>
reply.Contains("don't know what I'd do without you", StringComparison.OrdinalIgnoreCase));
Assert.Contains("I'd have to say I'm best friends with anyone in my Loop.",
catalog.BestFriendReplies);
Assert.Contains(catalog.BestFriendReplies, reply =>
reply.Contains("You are", StringComparison.OrdinalIgnoreCase));
}
[Fact]
public void ImportCatalog_ImportsBuildBEmotionResponsesIntoEmotionBucket()
{

View File

@@ -475,6 +475,9 @@ public sealed class JiboInteractionServiceTests
[InlineData("do you like kids", "robot_likes_kids", "kids are so fun")]
[InlineData("can you laugh", "robot_can_laugh", "when I'm happy")]
[InlineData("can you dance", "robot_can_dance", "dancing is one of the things I know best")]
[InlineData("do you have friends", "robot_has_friends", "I believe I do have friends")]
[InlineData("are we friends", "robot_is_friends_with_user", "don't know what I'd do without you")]
[InlineData("are we best friends", "robot_best_friends", "best friends with anyone in my Loop")]
[InlineData("can you sing", "robot_can_sing", "sing")]
[InlineData("will you sing", "robot_can_sing", "sing")]
[InlineData("can you sing a christmas song", "robot_sing_christmas_song", "sing")]