Skip to content

Commit 2e1c908

Browse files
committed
Add more specific answers from WouldCharacterTool
1 parent 5a59571 commit 2e1c908

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ChatRPG/API/Tools/WoundCharacterTool.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public class WoundCharacterTool(
3737

3838
if (character is null)
3939
{
40-
return "Could not determine the character to wound.";
40+
return "Could not determine the character to wound. The character does not exist in the game. " +
41+
"Consider creating the character before wounding it.";
4142
}
4243

4344
// Determine damage
@@ -68,7 +69,8 @@ public class WoundCharacterTool(
6869
}
6970
catch (Exception)
7071
{
71-
return "Could not determine the character to wound";
72+
return "Could not determine the character to wound. Tool input format was invalid. " +
73+
"Please provide a valid character name, description, and severity level in valid JSON without markdown.";
7274
}
7375
}
7476
}

0 commit comments

Comments
 (0)