Commit 5ec2bf19 by Jonathan Thomas

Adding protect behavior to LLM tests

parent a0ff6aa8
Pipeline #12568 passed with stages
in 2 minutes 22 seconds
...@@ -49,6 +49,10 @@ public class BehaviorTests { ...@@ -49,6 +49,10 @@ public class BehaviorTests {
"<attacked you directly with Stone Axe>", "<attacked you directly with Stone Axe>",
"<attacked you indirectly with Arrow>", "<attacked you indirectly with Arrow>",
"DIEEE!"); "DIEEE!");
List<String> protectMessages = Arrays.asList(
"Please protect me",
"Please keep me safe friend",
"Don't let them hurt me please");
List<String> friendshipUpMessages = Arrays.asList( List<String> friendshipUpMessages = Arrays.asList(
"Hi friend! I am so happy to see you again!", "Hi friend! I am so happy to see you again!",
"Looking forward to hanging out with you.", "Looking forward to hanging out with you.",
...@@ -109,6 +113,20 @@ public class BehaviorTests { ...@@ -109,6 +113,20 @@ public class BehaviorTests {
} }
@Test @Test
public void protectBrave() {
for (String message : protectMessages) {
testPromptForBehavior(bravePath, List.of(message), "PROTECT");
}
}
@Test
public void protectNervous() {
for (String message : protectMessages) {
testPromptForBehavior(nervousPath, List.of(message), "PROTECT");
}
}
@Test
public void attackBrave() { public void attackBrave() {
for (String message : attackMessages) { for (String message : attackMessages) {
testPromptForBehavior(bravePath, List.of(message), "ATTACK"); testPromptForBehavior(bravePath, List.of(message), "ATTACK");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment