Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refine sop

geekan1ab0ae99a90c
diff --git a/metagpt/actions/write_prd_an.py b/metagpt/actions/write_prd_an.py
index edd94a463..8698c739f 100644
--- a/metagpt/actions/write_prd_an.py
+++ b/metagpt/actions/write_prd_an.py
@@ -26,8 +26,8 @@ PROGRAMMING_LANGUAGE = ActionNode(
ORIGINAL_REQUIREMENTS = ActionNode(
key="Original Requirements",
expected_type=str,
- instruction="Place the polished, complete original requirements here.",
- example="The game should have a leaderboard and multiple difficulty levels.",
+ instruction="Place the original user's requirements here.",
+ example="Create a 2048 game",
)
PROJECT_NAME = ActionNode(
@@ -41,7 +41,7 @@ PRODUCT_GOALS = ActionNode(
key="Product Goals",
expected_type=list[str],
instruction="Provide up to three clear, orthogonal product goals.",
- example=["Create an engaging user experience", "Ensure high performance", "Provide customizable features"],
+ example=["Create an engaging user experience", "Improve accessibility, be responsive", "More beautiful UI"],
)
USER_STORIES = ActionNode(
@@ -49,8 +49,11 @@ USER_STORIES = ActionNode(
expected_type=list[str],
instruction="Provide up to 3 to 5 scenario-based user stories.",
example=[
- "As a user, I want to be able to choose difficulty levels",
+ "As a player, I want to be able to choose difficulty levels",
"As a player, I want to see my score after each game",
+ "As a player, I want to get restart button when I lose",
+ "As a player, I want to see beautiful UI that make me feel good",
+ "As a player, I want to play game via mobile phone",
],
)
@@ -58,7 +61,11 @@ COMPETITIVE_ANALYSIS = ActionNode(
key="Competitive Analysis",
expected_type=list[str],
instruction="Provide 5 to 7 competitive products.",
- example=["Python Snake Game: Simple interface, lacks advanced features"],
+ example=[
+ "2048 Game A: Simple interface, lacks responsive features",
+ "play2048.co: Beautiful and responsive UI with my best score shown",
+ "2048game.com: Responsive UI with my best score shown, but many ads",
+ ],
)
COMPETITIVE_QUADRANT_CHART = ActionNode(
@@ -86,7 +93,7 @@ REQUIREMENT_ANALYSIS = ActionNode(
key="Requirement Analysis",
expected_type=str,
instruction="Provide a detailed analysis of the requirements.",
- example="The product should be user-friendly.",
+ example="",
)
REQUIREMENT_POOL = ActionNode(
@@ -107,7 +114,7 @@ ANYTHING_UNCLEAR = ActionNode(
key="Anything UNCLEAR",
expected_type=str,
instruction="Mention any aspects of the project that are unclear and try to clarify them.",
- example="...",
+ example="",
)
ISSUE_TYPE = ActionNode(
diff --git a/metagpt/roles/product_manager.py b/metagpt/roles/product_manager.py
index 7858d2caa..61263cb50 100644
--- a/metagpt/roles/product_manager.py
+++ b/metagpt/roles/product_manager.py
@@ -28,8 +28,8 @@ class ProductManager(Role):
self,
name: str = "Alice",
profile: str = "Product Manager",
- goal: str = "efficiently create a successful product",
- constraints: str = "use same language as user requirement",
+ goal: str = "efficiently create a successful product that meets market demands and user expectations",
+ constraints: str = "utilize the same language as the user requirements for seamless communication",
) -> None:
"""
Initializes the ProductManager role with given attributes.