Skip to content

Commit

Permalink
Add more specific answers from WouldCharacterTool
Browse files Browse the repository at this point in the history
  • Loading branch information
KarmaKamikaze committed Oct 28, 2024
1 parent 5a59571 commit 2e1c908
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ChatRPG/API/Tools/WoundCharacterTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public class WoundCharacterTool(

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

// Determine damage
Expand Down Expand Up @@ -68,7 +69,8 @@ public class WoundCharacterTool(
}
catch (Exception)
{
return "Could not determine the character to wound";
return "Could not determine the character to wound. Tool input format was invalid. " +
"Please provide a valid character name, description, and severity level in valid JSON without markdown.";
}
}
}

0 comments on commit 2e1c908

Please sign in to comment.