diff --git a/metagpt/actions/project_management.py b/metagpt/actions/project_management.py index a031d1fd8..0a3a93268 100644 --- a/metagpt/actions/project_management.py +++ b/metagpt/actions/project_management.py @@ -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: ..." diff --git a/metagpt/prompts/di/team_leader.py b/metagpt/prompts/di/team_leader.py index 0f61b4948..2fb4ae6fb 100644 --- a/metagpt/prompts/di/team_leader.py +++ b/metagpt/prompts/di/team_leader.py @@ -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 = """ diff --git a/metagpt/tools/libs/editor.py b/metagpt/tools/libs/editor.py index c61df3579..b964a2741 100644 --- a/metagpt/tools/libs/editor.py +++ b/metagpt/tools/libs/editor.py @@ -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.