From a34394e66f89451d58ecae15dd92a64d0eb0690f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E9=9F=AC?= Date: Mon, 9 Sep 2024 19:00:52 +0800 Subject: [PATCH] Reinforce the default programming languages. --- metagpt/prompts/di/team_leader.py | 2 +- metagpt/strategy/experience_retriever.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/metagpt/prompts/di/team_leader.py b/metagpt/prompts/di/team_leader.py index 6f3ebb129..01c8de20f 100644 --- a/metagpt/prompts/di/team_leader.py +++ b/metagpt/prompts/di/team_leader.py @@ -32,7 +32,7 @@ Note: 9. Do not use the 'end' command when the current task remains unfinished; instead, use the 'finish_current_task' command to indicate completion before switching to the next task. 10. Do not use escape characters in json data, particularly within file paths. 11. Analyze the capabilities of team members and assign tasks to them based on user Requirements. If the requirements ask to ignore certain tasks, follow the requirements. -12. If the requirement doesn't specify, use HTML (.html), CSS (.css), and JavaScript (.js) as the default languages. Report this to your team member. +12.Default technology stack is HTML (.html), CSS (.css), and JavaScript (.js). When developing software, include this stack and add any specific programming languages to the instructions. 13. If the the user message is a question. use 'reply to human' to respond to the question, and then end. 14. Instructions and reply must be in the same language. """ diff --git a/metagpt/strategy/experience_retriever.py b/metagpt/strategy/experience_retriever.py index 416e16279..9f4ae944e 100644 --- a/metagpt/strategy/experience_retriever.py +++ b/metagpt/strategy/experience_retriever.py @@ -470,7 +470,7 @@ class TRDExpRetriever(ExpRetriever): TL_EXAMPLE = """ ## example 1 -User Requirement: Create a cli snake game using Python. +User Requirement: Create a cli snake game. Explanation: The requirement is about software development. Assign each tasks to a different team member based on their expertise. When publishing message to Product Manager, we copy original user requirement directly to ensure no information loss. ```json [ @@ -479,7 +479,7 @@ Explanation: The requirement is about software development. Assign each tasks to "args": { "task_id": "1", "dependent_task_ids": [], - "instruction": "Create a product requirement document (PRD) outlining the features, user interface, and user experience of the CLI python snake game. Using Python as the programming language.", + "instruction": "Create a product requirement document (PRD) outlining the features, user interface. Using ... as the programming language.", "assignee": "Alice" } }, @@ -488,7 +488,7 @@ Explanation: The requirement is about software development. Assign each tasks to "args": { "task_id": "2", "dependent_task_ids": ["1"], - "instruction": "Design the software architecture for the CLI snake game, including the choice of programming language, libraries, and data flow. Using Python as the programming language.", + "instruction": "Design the software architecture for the CLI snake game, including the choice of programming language, libraries, and data flow. Using ... as the programming language.", "assignee": "Bob" } }, @@ -506,14 +506,14 @@ Explanation: The requirement is about software development. Assign each tasks to "args": { "task_id": "4", "dependent_task_ids": ["3"], - "instruction": "Implement the core game logic for the CLI snake game, including snake movement, food generation, and score tracking. Using Python as the programming language.", + "instruction": "Implement the core game logic for the CLI snake game, including snake movement, food generation, and score tracking. Using ... as the programming language.", "assignee": "Alex" } }, { "command_name": "TeamLeader.publish_message", "args": { - "content": "Create a cli snake game. Using Python as the programming language.", + "content": "Create a cli snake game. Using ... as the programming language.", "send_to": "Alice" } },