mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-26 15:49:42 +02:00
update engineer prompt
This commit is contained in:
parent
7d859a10fb
commit
5aab97554c
3 changed files with 9 additions and 35 deletions
|
|
@ -747,13 +747,13 @@ class Editor(BaseModel):
|
|||
self.current_line = max(1, len(lines)) # end of original file
|
||||
else:
|
||||
self.current_line = start or n_total_lines or 1
|
||||
cuccess_edit_info = SUCCESS_EDITE_INFO.format(
|
||||
success_edit_info = SUCCESS_EDITE_INFO.format(
|
||||
file_name=file_name.resolve(),
|
||||
n_total_lines=n_total_lines,
|
||||
window_after_applied=self._print_window(file_name, self.current_line, self.window),
|
||||
line_number=self.current_line,
|
||||
).strip()
|
||||
return cuccess_edit_info
|
||||
return success_edit_info
|
||||
|
||||
def edit_file_by_replace(self, file_name: str, to_replace: str, new_content: str) -> str:
|
||||
"""Edit a file. This will search for `to_replace` in the given file and replace it with `new_content`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue