mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-09 15:52:38 +02:00
修改了行为和任务耦合的问题
This commit is contained in:
parent
ca1a44c3c4
commit
48b8a941b9
4 changed files with 4 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ class Editor:
|
|||
with open(path, "w", encoding="utf-8") as f:
|
||||
f.write(content)
|
||||
# self.resource.report(path, "path")
|
||||
return f" The task of writing/coding the '{os.path.basename(path)}' file has been completed. The file '{os.path.basename(path)}' has been successfully created."
|
||||
return f"The writing/coding the of the file {os.path.basename(path)}' is now completed. The file '{os.path.basename(path)}' has been successfully created."
|
||||
|
||||
def read(self, path: str) -> FileBlock:
|
||||
"""Read the whole content of a file. Using absolute paths as the argument for specifying the file location."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue