Fix the format issue

This commit is contained in:
黄伟韬 2024-08-06 20:18:41 +08:00
parent b69538e842
commit f9617b3d10
3 changed files with 3 additions and 4 deletions

View file

@ -75,9 +75,9 @@ class WriteTasks(Action):
>>> output_pathname = "/absolute/path/to/snake_game/docs/project_schedule.json"
>>> user_requirement = "Write project schedule for a snake game following these requirements:..."
>>> action = WriteTasks()
>>> result = await action.run(user_requirement=user_requirement,design_filename=design_filename, output_pathname=output_pathname)
>>> result = await action.run(user_requirement=user_requirement, design_filename=design_filename, output_pathname=output_pathname)
>>> print(result)
The project schedule is at /absolute/path/to/nake_game/docs/project_schedule.json
The project schedule is at /absolute/path/to/nake_game/docs/project_schedule.json
# Write a project schedule with a user requirement.
>>> user_requirement = "Write project schedule for a snake game following these requirements: ..."

View file

@ -37,7 +37,6 @@ TL_THOUGHT_GUIDANCE = (
+ """
Sixth, describe the requirements as they pertain to software development, data analysis, or other areas. If the requirements is a software development and no specific restrictions are mentioned, you must create a Product Requirements Document (PRD), write a System Design document, develop a project schedule, and then begin coding. List the steps you will undertake. Plan these steps in a single response.
Seventh, describe the technologies you must use.
Eight, if the current task is None and no messages have been received so far, use 'reply to human' to respond to the human's requirements. and then use command 'end' in one respond.
"""
)
QUICK_THINK_SYSTEM_PROMPT = """

View file

@ -25,7 +25,7 @@ class Editor:
self.resource = EditorReporter()
def write(self, path: str, content: str):
"""Write the whole content to a file. The path must be a file path with a specific file extension. When used, make sure content arg contains the full content of the file."""
"""Write the whole content to a file. When used, make sure content arg contains the full content of the file."""
if "\n" not in content and "\\n" in content:
# A very raw rule to correct the content: If 'content' lacks actual newlines ('\n') but includes '\\n', consider
# replacing them with '\n' to potentially correct mistaken representations of newline characters.