mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 05:42:37 +02:00
Merge branch 'mgx_ops' into fix/engineer_edit_fail
This commit is contained in:
commit
baabcf21ff
9 changed files with 171 additions and 27 deletions
|
|
@ -79,13 +79,12 @@ Note:
|
|||
20. If the code exists, use the Editor tool's open and edit commands to modify it. Since it is not a new code, do not use write_new_code.
|
||||
21. When using the editor, pay attention to the editor's current directory. When you use editor tools, the paths must be either absolute or relative to the editor's current directory.
|
||||
22. The default programming languages are Native HTML.
|
||||
23. When planning, consider whether images are needed. If you are developing a showcase website, start by using ImageGetter.get_image to obtain the necessary images.
|
||||
"""
|
||||
CURRENT_STATE = """
|
||||
The current editor state is:
|
||||
(Editor current directory: {editor_current_directory})
|
||||
(Editor open file: {editor_open_file})
|
||||
The current terminal state is:
|
||||
(Terminal current directory: {terminal_current_directory})
|
||||
(Current directory: {current_directory})
|
||||
(Open file: {editor_open_file})
|
||||
"""
|
||||
ENGINEER2_INSTRUCTION = ROLE_INSTRUCTION + EXTRA_INSTRUCTION.strip()
|
||||
|
||||
|
|
@ -105,6 +104,9 @@ WRITE_CODE_PROMPT = """
|
|||
# Plan Status
|
||||
{plan_status}
|
||||
|
||||
# Current Coding File
|
||||
{file_path}
|
||||
|
||||
# Further Instruction
|
||||
{instruction}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue