Skip to content

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

sync mgx_ops

stellahsr04a5529cb306
diff --git a/examples/mgx/run_mgx.py b/examples/mgx/run_mgx.py
index 54d6eb691..86aa67ad7 100644
--- a/examples/mgx/run_mgx.py
+++ b/examples/mgx/run_mgx.py
@@ -7,7 +7,9 @@ from metagpt.roles.di.mgx import MGX
requirement = (
# "design a game using Gym (an open source Python library), including a graphical interface and interactive gameplay"
- 'Create a "2048 game"'
+ # "帮我把pip的源设置成:https://pypi.tuna.tsinghua.edu.cn/simple"
+ # "This is a website url does not require login: https://demosc.chinaz.net/Files/DownLoad//moban/202404/moban7767 please write a similar web page,developed in vue language, The package.json dependency must be generated"
+ "I would like to imitate the website available at https://demosc.chinaz.net/Files/DownLoad//moban/202404/moban7767. Could you please browse through it?"
# "Create a 2048 Game"
)
diff --git a/metagpt/tools/libs/software_development.py b/metagpt/tools/libs/software_development.py
index 9f74c58e1..291fc78d9 100644
--- a/metagpt/tools/libs/software_development.py
+++ b/metagpt/tools/libs/software_development.py
@@ -86,9 +86,8 @@ async def write_design(prd_path: str | Path) -> Path:
Path: The path to the system design files under the project directory.
Example:
- >>> from metagpt.tools.libs.software_development import write_prd
>>> from metagpt.tools.libs.software_development import write_design
- >>> prd_path = await write_prd("Create a new feature for the application")
+ >>> prd_path = '/path/to/project_path/docs/prd' # Returned by `write_prd`
>>> system_design_path = await write_desgin(prd_path)
>>> print(system_design_path)
'/path/to/project_path/docs/system_design/'