Skip to content

Commit

Permalink
add rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 12, 2025
1 parent 9f1048f commit cd64867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agixt/extensions/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,8 @@ async def handle_modifications(
5. Ensure the file path is correct
6. Try something else, like a shorter target that will fit and match better
7. Do not start target or content with a new line, they're exact replacements.
8. Modifications must be in the <answer> block to be parsed!
8. Do not use &lt; and &gt; as replacements for < and > in the XML, it is important to use the actual characters as they're directly replaced in the code.
9. Modifications must be in the <answer> block to be parsed!
If multiple modifications are needed, repeat the <modification> block.
Expand Down Expand Up @@ -2724,6 +2725,7 @@ async def fix_github_issue(
- Ensure indentation is correct in the <content> tag, it is critical for Python code and other languages with strict indentation rules.
- If working with NextJS, remember to include "use client" as the first line of all files declaring components that use client side hooks such as useEffect and useState.
- Do not start target or content with a new line, they're exact replacements.
- Do not use &lt; and &gt; as replacements for < and > in the XML, it is important to use the actual characters as they're directly replaced in the code.
- Modifications must be in the <answer> block to be parsed! They cannot be outside of it.
Example modifications:
Expand Down

0 comments on commit cd64867

Please sign in to comment.