Spaces:
Running
Running
File size: 7,815 Bytes
fe5c39d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
## MetaGPT ไฝฟ็จ
### ้
็ฝฎ
- ๅจ `~/.metagpt/config2.yaml / config/config2.yaml` ไธญ้
็ฝฎๆจ็ `api_key`
- ไผๅ
็บง้กบๅบ๏ผ`~/.metagpt/config2.yaml > config/config2.yaml`
```bash
# ๅคๅถ้
็ฝฎๆไปถๅนถ่ฟ่กๅฟ
่ฆ็ไฟฎๆน
cp config/config2.yaml ~/.metagpt/config2.yaml
```
### ็คบไพ๏ผๅฏๅจไธไธชๅไธๅ
ฌๅธ
```shell
metagpt "ๅไธไธชๅฝไปค่ก่ดชๅ่"
# ๅผๅฏcode reviewๆจกๅผไผ่ฑ่ดนๆดๅค็้้ฑ, ไฝๆฏไผๆๅไปฃ็ ่ดจ้ๅๆๅ็
metagpt "ๅไธไธชๅฝไปค่ก่ดชๅ่" --code_review
```
่ฟ่ก่ๆฌๅ๏ผๆจๅฏไปฅๅจ `workspace/` ็ฎๅฝไธญๆพๅฐๆจ็ๆฐ้กน็ฎใ
### ๅนณๅฐๆๅทฅๅ
ท็ๅพๅๆง
ๅฏไปฅๅจ้่ฟฐ้ๆฑๆถ่ฏดๆๆณ่ฆไฝฟ็จ็ๅนณๅฐๆๅทฅๅ
ทใ
ไพๅฆ๏ผ
```shell
metagpt "ๅไธไธชๅบไบpygame็ๅฝไปค่ก่ดชๅ่"
```
### ไฝฟ็จ
```
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. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
```
|