Skip to content

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

refine code

geekan33c58d97fef3
diff --git a/metagpt/actions/action_node.py b/metagpt/actions/action_node.py
index 865cb2d32..790069369 100644
--- a/metagpt/actions/action_node.py
+++ b/metagpt/actions/action_node.py
@@ -232,7 +232,7 @@ class ActionNode(Generic[T]):
return prompt
@retry(
- wait=wait_random_exponential(min=1, max=60),
+ wait=wait_random_exponential(min=1, max=20),
stop=stop_after_attempt(6),
after=general_after_log(logger),
)
diff --git a/metagpt/actions/write_prd_an.py b/metagpt/actions/write_prd_an.py
index d96c0aeac..edd94a463 100644
--- a/metagpt/actions/write_prd_an.py
+++ b/metagpt/actions/write_prd_an.py
@@ -47,7 +47,7 @@ PRODUCT_GOALS = ActionNode(
USER_STORIES = ActionNode(
key="User Stories",
expected_type=list[str],
- instruction="Provide up to five scenario-based user stories.",
+ 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 see my score after each game",
@@ -57,7 +57,7 @@ USER_STORIES = ActionNode(
COMPETITIVE_ANALYSIS = ActionNode(
key="Competitive Analysis",
expected_type=list[str],
- instruction="Provide analyses for up to seven competitive products.",
+ instruction="Provide 5 to 7 competitive products.",
example=["Python Snake Game: Simple interface, lacks advanced features"],
)
@@ -92,8 +92,8 @@ REQUIREMENT_ANALYSIS = ActionNode(
REQUIREMENT_POOL = ActionNode(
key="Requirement Pool",
expected_type=list[list[str]],
- instruction="List down the requirements with their priority (P0, P1, P2).",
- example=[["P0", "..."], ["P1", "..."]],
+ instruction="List down the top-5 requirements with their priority (P0, P1, P2).",
+ example=[["P0", "The main code ..."], ["P0", "The game algorithm ..."]],
)
UI_DESIGN_DRAFT = ActionNode(
diff --git a/metagpt/provider/postprecess/base_postprecess_plugin.py b/metagpt/provider/postprecess/base_postprecess_plugin.py
index 0d1cfbb11..721476507 100644
--- a/metagpt/provider/postprecess/base_postprecess_plugin.py
+++ b/metagpt/provider/postprecess/base_postprecess_plugin.py
@@ -44,7 +44,7 @@ class BasePostPrecessPlugin(object):
def run_retry_parse_json_text(self, content: str) -> Union[dict, list]:
"""inherited class can re-implement the function"""
- logger.info(f"extracted json CONTENT from output:\n{content}")
+ logger.debug(f"extracted json CONTENT from output:\n{content}")
parsed_data = retry_parse_json_text(output=content) # should use output=content
return parsed_data