๐ The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refine docs
geekan3fa2b3216eff
diff --git a/docs/install/cli_install.md b/docs/install/cli_install.mdindex ab360fad2..b79ad9cb7 100644--- a/docs/install/cli_install.md+++ b/docs/install/cli_install.md@@ -9,17 +9,29 @@### Detail Installation```bash-# Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)-npm --version-sudo npm install -g @mermaid-js/mermaid-cli--# Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:+# Step 1: Ensure that Python 3.9+ is installed on your system. You can check this by using:+# You can use conda to initialize a new python env+# conda create -n metagpt python=3.9+# conda activate metagptpython3 --version-# Step 3: Clone the repository to your local machine, and install it.+# Step 2: Clone the repository to your local machine for latest version, and install it.git clone https://github.com/geekan/MetaGPT.gitcd MetaGPT-pip install -e.+pip3 install -e . # or pip3 install metagpt # for stable version++# Step 3: setup your LLM key in the config2.yaml file+mkdir ~/.metagpt+cp config/config2.yaml ~/.metagpt/config2.yaml+vim ~/.metagpt/config2.yaml++# Step 4: run metagpt cli+metagpt "Create a 2048 game in python"++# Step 5 [Optional]: If you want to save the artifacts like diagrams such as quadrant chart, system designs, sequence flow in the workspace, you can execute the step before Step 3. By default, the framework is compatible, and the entire process can be run completely without executing this step.+# If executing, ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)+npm --version+sudo npm install -g @mermaid-js/mermaid-cli```**Note:**@@ -35,7 +47,7 @@ pip install -e.- don't forget to the configuration for mmdc path in config.yml- ```yml+ ```yamlmermaid:puppeteer_config: "./config/puppeteer-config.json"path: "./node_modules/.bin/mmdc"diff --git a/docs/install/cli_install_cn.md b/docs/install/cli_install_cn.mdindex 891b72d24..1ee18d9a6 100644--- a/docs/install/cli_install_cn.md+++ b/docs/install/cli_install_cn.md@@ -10,17 +10,29 @@### ่ฏฆ็ปๅฎ่ฃ```bash-# ็ฌฌ 1 ๆญฅ๏ผ็กฎไฟๆจ็็ณป็ปไธๅฎ่ฃ ไบ NPMใๅนถไฝฟ็จnpmๅฎ่ฃ mermaid-js-npm --version-sudo npm install -g @mermaid-js/mermaid-cli--# ็ฌฌ 2 ๆญฅ๏ผ็กฎไฟๆจ็็ณป็ปไธๅฎ่ฃ ไบ Python 3.9+ใๆจๅฏไปฅไฝฟ็จไปฅไธๅฝไปค่ฟ่กๆฃๆฅ๏ผ+# ๆญฅ้ชค 1: ็กฎไฟๆจ็็ณป็ปๅฎ่ฃ ไบ Python 3.9 ๆๆด้ซ็ๆฌใๆจๅฏไปฅไฝฟ็จไปฅไธๅฝไปคๆฅๆฃๆฅ:+# ๆจๅฏไปฅไฝฟ็จ conda ๆฅๅๅงๅไธไธชๆฐ็ Python ็ฏๅข+# conda create -n metagpt python=3.9+# conda activate metagptpython3 --version-# ็ฌฌ 3 ๆญฅ๏ผๅ ้ไปๅบๅฐๆจ็ๆฌๅฐๆบๅจ๏ผๅนถ่ฟ่กๅฎ่ฃ ใ+# ๆญฅ้ชค 2: ๅ ้ไปๅบๅฐๆจ็ๆฌๅฐๆบๅจไปฅ่ทๅๆๆฐ็ๆฌ๏ผๅนถๅฎ่ฃ ๅฎใgit clone https://github.com/geekan/MetaGPT.gitcd MetaGPT-pip install -e.+pip3 install -e . # ๆ pip3 install metagpt # ็จไบ็จณๅฎ็ๆฌ++# ๆญฅ้ชค 3: ๅจ config2.yaml ๆไปถไธญ่ฎพ็ฝฎๆจ็ LLM ๅฏ้ฅ+mkdir ~/.metagpt+cp config/config2.yaml ~/.metagpt/config2.yaml+vim ~/.metagpt/config2.yaml++# ๆญฅ้ชค 4: ่ฟ่ก metagpt ๅฝไปค่ก็้ข+metagpt "็จ python ๅๅปบไธไธช 2048 ๆธธๆ"++# ๆญฅ้ชค 5 [ๅฏ้]: ๅฆๆๆจๆณไฟๅญ่ฏธๅฆ่ฑก้ๅพใ็ณป็ป่ฎพ่ฎกใๅบๅๆต็ญๅพ่กจไฝไธบๅทฅไฝ็ฉบ้ด็ๅทฅไปถ๏ผๆจๅฏไปฅๅจๆง่กๆญฅ้ชค 3 ไนๅๆง่กๆญคๆญฅ้ชคใ้ป่ฎคๆ ๅตไธ๏ผ่ฏฅๆกๆถๆฏๅ ผๅฎน็๏ผๆดไธช่ฟ็จๅฏไปฅๅฎๅ จไธๆง่กๆญคๆญฅ้ชค่่ฟ่กใ+# ๅฆๆๆง่กๆญคๆญฅ้ชค๏ผ่ฏท็กฎไฟๆจ็็ณป็ปไธๅฎ่ฃ ไบ NPMใ็ถๅๅฎ่ฃ mermaid-jsใ๏ผๅฆๆๆจ็่ฎก็ฎๆบไธญๆฒกๆ npm๏ผ่ฏท่ฎฟ้ฎ Node.js ๅฎๆน็ฝ็ซ https://nodejs.org/ ๅฎ่ฃ Node.js๏ผ็ถๅๆจๅฐๅจ่ฎก็ฎๆบไธญๆฅๆ npm ๅทฅๅ ทใ๏ผ+npm --version+sudo npm install -g @mermaid-js/mermaid-cli```**ๆณจๆ๏ผ**@@ -33,11 +45,12 @@ pip install -e.npm install @mermaid-js/mermaid-cli```-- ไธ่ฆๅฟ่ฎฐๅจconfig.ymlไธญไธบmmdc้ ็ฝฎ้ ็ฝฎ๏ผ+- ไธ่ฆๅฟ่ฎฐๅจconfig.ymlไธญไธบmmdc้ ็ฝฎ```yml- puppeteer_config: "./config/puppeteer-config.json"- path: "./node_modules/.bin/mmdc"+ mermaid:+ puppeteer_config: "./config/puppeteer-config.json"+ path: "./node_modules/.bin/mmdc"```- ๅฆๆ`pip install -e.`ๅคฑ่ดฅๅนถๆพ็คบ้่ฏฏ`[Errno 13] Permission denied: '/usr/local/lib/python3.11/dist-packages/test-easy-install-13129.write-test'`๏ผ่ฏทๅฐ่ฏไฝฟ็จ`pip install -e. --user`่ฟ่กใdiff --git a/docs/tutorial/usage.md b/docs/tutorial/usage.mdindex 809f91e1f..e8bfc37d9 100644--- a/docs/tutorial/usage.md+++ b/docs/tutorial/usage.md@@ -34,29 +34,28 @@ metagpt "Write a cli snake game based on pygame"### Usage```-NAME- metagpt - We are a software startup comprised of AI. By investing in us, you are empowering a future filled with limitless possibilities.--SYNOPSIS- metagpt IDEA <flags>--DESCRIPTION- We are a software startup comprised of AI. By investing in us, you are empowering a future filled with limitless possibilities.--POSITIONAL ARGUMENTS- IDEA- Type: str- Your innovative idea, such as "Creating a snake game."--FLAGS- --investment=INVESTMENT- Type: float- Default: 3.0- As an investor, you have the opportunity to contribute a certain dollar amount to this AI company.- --n_round=N_ROUND- Type: int- Default: 5--NOTES- You can also use flags syntax for POSITIONAL ARGUMENTS+ Usage: metagpt [OPTIONS] [IDEA]++ Start a new project.++โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ+โ idea [IDEA] Your innovative idea, such as 'Create a 2048 game.' [default: None] โ+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ+โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ+โ --investment FLOAT Dollar amount to invest in the AI company. [default: 3.0] โ+โ --n-round INTEGER Number of rounds for the simulation. [default: 5] โ+โ --code-review --no-code-review Whether to use code review. [default: code-review] โ+โ --run-tests --no-run-tests Whether to enable QA for adding & running tests. [default: no-run-tests] โ+โ --implement --no-implement Enable or disable code implementation. [default: implement] โ+โ --project-name TEXT Unique project name, such as 'game_2048'. โ+โ --inc --no-inc Incremental mode. Use it to coop with existing repo. [default: no-inc] โ+โ --project-path TEXT Specify the directory path of the old version project to fulfill the incremental requirements. โ+โ --reqa-file TEXT Specify the source file name for rewriting the quality assurance code. โ+โ --max-auto-summarize-code INTEGER The maximum number of times the 'SummarizeCode' action is automatically invoked, with -1 indicating unlimited. This parameter is used for debugging the โ+โ workflow. โ+โ [default: 0] โ+โ --recover-path TEXT recover the project from existing serialized storage [default: None] โ+โ --init-config --no-init-config Initialize the configuration file for MetaGPT. [default: no-init-config] โ+โ --help Show this message and exit. โ+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ```\ No newline at end of filediff --git a/docs/tutorial/usage_cn.md b/docs/tutorial/usage_cn.mdindex 709ec9968..075e928fd 100644--- a/docs/tutorial/usage_cn.md+++ b/docs/tutorial/usage_cn.md@@ -30,29 +30,28 @@ metagpt "ๅไธไธชๅบไบpygame็ๅฝไปค่ก่ดชๅ่"### ไฝฟ็จ```-ๅ็งฐ- metagpt - ๆไปฌๆฏไธๅฎถAI่ฝฏไปถๅไธๅ ฌๅธใ้่ฟๆ่ตๆไปฌ๏ผๆจๅฐ่ต่ฝไธไธชๅ ๆปกๆ ้ๅฏ่ฝ็ๆชๆฅใ--ๆฆ่ฆ- metagpt IDEA <flags>--ๆ่ฟฐ- ๆไปฌๆฏไธๅฎถAI่ฝฏไปถๅไธๅ ฌๅธใ้่ฟๆ่ตๆไปฌ๏ผๆจๅฐ่ต่ฝไธไธชๅ ๆปกๆ ้ๅฏ่ฝ็ๆชๆฅใ--ไฝ็ฝฎๅๆฐ- IDEA- ็ฑปๅ: str- ๆจ็ๅๆฐๆณๆณ๏ผไพๅฆ"ๅไธไธชๅฝไปค่ก่ดชๅ่ใ"--ๆ ๅฟ- --investment=INVESTMENT- ็ฑปๅ: float- ้ป่ฎคๅผ: 3.0- ไฝไธบๆ่ต่ ๏ผๆจๆๆบไผๅ่ฟๅฎถAIๅ ฌๅธๆๅ ฅไธๅฎ็็พๅ ้้ขใ- --n_round=N_ROUND- ็ฑปๅ: int- ้ป่ฎคๅผ: 5--ๅคๆณจ- ๆจไนๅฏไปฅ็จ`ๆ ๅฟ`็่ฏญๆณ๏ผๆฅๅค็`ไฝ็ฝฎๅๆฐ`+ Usage: metagpt [OPTIONS] [IDEA]++ Start a new project.++โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ+โ idea [IDEA] Your innovative idea, such as 'Create a 2048 game.' [default: None] โ+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ+โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ+โ --investment FLOAT Dollar amount to invest in the AI company. [default: 3.0] โ+โ --n-round INTEGER Number of rounds for the simulation. [default: 5] โ+โ --code-review --no-code-review Whether to use code review. [default: code-review] โ+โ --run-tests --no-run-tests Whether to enable QA for adding & running tests. [default: no-run-tests] โ+โ --implement --no-implement Enable or disable code implementation. [default: implement] โ+โ --project-name TEXT Unique project name, such as 'game_2048'. โ+โ --inc --no-inc Incremental mode. Use it to coop with existing repo. [default: no-inc] โ+โ --project-path TEXT Specify the directory path of the old version project to fulfill the incremental requirements. โ+โ --reqa-file TEXT Specify the source file name for rewriting the quality assurance code. โ+โ --max-auto-summarize-code INTEGER The maximum number of times the 'SummarizeCode' action is automatically invoked, with -1 indicating unlimited. This parameter is used for debugging the โ+โ workflow. โ+โ [default: 0] โ+โ --recover-path TEXT recover the project from existing serialized storage [default: None] โ+โ --init-config --no-init-config Initialize the configuration file for MetaGPT. [default: no-init-config] โ+โ --help Show this message and exit. โ+โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ```