Refine the teamleader instruction. Adding a 'User Requirements' section between the 'Example' and 'Instruct' sections.

This commit is contained in:
黄伟韬 2024-07-26 18:18:03 +08:00
parent c45710bc51
commit b3707c7a09
8 changed files with 40 additions and 19 deletions

View file

@ -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 writing/coding the of the file {os.path.basename(path)}' is now completed. The file '{os.path.basename(path)}' has been successfully created."
return f"Writing/coding the of the file {os.path.basename(path)}' has been 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."""