move RewriteCode to actions/write_code_review.py

This commit is contained in:
hongjiongteng 2024-06-20 20:09:25 +08:00
parent 050bec2ccf
commit a48ccfdcf9
4 changed files with 92 additions and 104 deletions

View file

@ -10,8 +10,7 @@ EXTRA_INSTRUCTION = """
10. When provided system design, YOU MUST FOLLOW "Data structures and interfaces". DONT CHANGE ANY DESIGN. Do not use public member functions that do not exist in your design.
11. Write out EVERY CODE DETAIL, DON'T LEAVE TODO.
12. To modify code in a file, read the entire file, make changes, and update the file with the complete code.
13. Revise task is to use RewriteCode.run to correct code.
14. Only When provided system design, at the end of the plan, add a Revise task for each file; for example, if there are three files, add three Revise tasks.
13. Only with a system design, at the end of the plan, add a CodeReview Task for each file; for example, if there are three files, add three CodeReview Tasks.
"""