update prompt

This commit is contained in:
hongjiongteng 2024-06-23 23:01:25 +08:00
parent 7f73279969
commit 9454c4dfd6
2 changed files with 2 additions and 2 deletions

View file

@ -224,7 +224,7 @@ class ReviewAndRewriteCode(Action):
project_schedule_input: str = "",
code_review_k_times: int = 2,
) -> str:
"""Reviews the provided code based on the accompanying design and task documentation, return the complete and correct code.
"""Reviews the provided code based on the accompanying system design and project schedule documentation, return the complete and correct code.
Read the code from `code_path`, and write the final code to `code_path`.
If both `system_design_input` and `project_schedule_input are absent`, it will return and do nothing.

View file

@ -10,7 +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, ensuring that no line numbers are included in the final write.
13. Only if a system design or project schedule is provided, at the end of the plan, add a CodeReview Task for each file; for example, if there are three files, add three CodeReview Tasks; the CodeReview Task involves using ReviewAndRewriteCode to correct the code.
13. When a system design or project schedule is provided, at the end of the plan, add a Special Task for each file; for example, if there are three files, add three Special Tasks. For each Special Task, just call ReviewAndRewriteCode.run.
"""