mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
update prompt
This commit is contained in:
parent
7f73279969
commit
9454c4dfd6
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue