Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The serializer error occurs when the example of werewolf exits error #1688

Open
wants to merge 4,225 commits into
base: werewolf_game
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4225 commits
Select commit Hold shift + click to select a range
ad8a989
1
Oct 8, 2024
c061e4e
Update README.md
kithib Oct 8, 2024
f2326c9
1
Oct 8, 2024
2a19c17
1
Oct 9, 2024
51c2413
Merge remote-tracking branch 'origin/main'
Oct 9, 2024
4a50895
1
Oct 9, 2024
27332d1
Update README.md
kithib Oct 9, 2024
573e9b6
Merge branch 'improve-multimodal' into 'expo'
garylin2099 Oct 10, 2024
8b79c6c
1
Oct 10, 2024
0c16c32
Merge remote-tracking branch 'origin/main'
Oct 10, 2024
f80ebc4
1. add role level timeout 限制是1000s
cyzus Oct 10, 2024
2fc8f20
can change timeout through data.yaml
cyzus Oct 10, 2024
eb460d3
make timeout as argument
cyzus Oct 10, 2024
9f4eba7
add scripts
cyzus Oct 10, 2024
c023a23
fix dashscope high version problem
better629 Oct 10, 2024
e1c2683
删除图片
cyzus Oct 11, 2024
cdfb413
去掉role装饰器
cyzus Oct 11, 2024
9c54113
make sure image task starting from datapreprocessing
cyzus Oct 11, 2024
ae12d73
remove dependency
cyzus Oct 11, 2024
b12cd6a
Merge pull request #1496 from better629/tokens
geekan Oct 11, 2024
8263105
Merge pull request #1490 from eltociear/patch-2
geekan Oct 11, 2024
1538661
Merge pull request #1459 from geekan/fixbug/1455
geekan Oct 11, 2024
be5100a
Merge pull request #1460 from iorisa/fixbug/qianfan_timeout
geekan Oct 11, 2024
5be77df
Merge pull request #1452 from iorisa/feature/README.md
geekan Oct 11, 2024
56e7a08
insight pool is now able to dynamically increase
cyzus Oct 11, 2024
f7374c0
rename analysis pool to insight pool
cyzus Oct 11, 2024
a7efa27
rm
femto Oct 11, 2024
cb8fcb9
Merge pull request #1465 from MorpheusI0/feature/support_for_open_webui
geekan Oct 11, 2024
2a23806
Merge pull request #1440 from femto/rm_sk_agent
geekan Oct 11, 2024
5afa7f0
chore: 代码格式化
voidking Oct 11, 2024
4c55a97
Merge pull request #1499 from voidking/main
geekan Oct 11, 2024
eda9322
1. dynamically add insight
cyzus Oct 11, 2024
61bb774
fix #687
shenchucheng Oct 11, 2024
45f102c
Merge pull request #1500 from geekan/fix-serialize-error
geekan Oct 11, 2024
3a57060
1. add eval_func for sela and compatibility to others
cyzus Oct 12, 2024
9221fb7
add readme in french language
TitanSage02 Oct 13, 2024
5205898
update to integrate link for french version
TitanSage02 Oct 13, 2024
d4970f2
update readme_fr
TitanSage02 Oct 13, 2024
ebf95ab
-
TitanSage02 Oct 13, 2024
ca12ff0
bugfix: resolve incorrect URL redirections
TitanSage02 Oct 13, 2024
e6a2dc8
docs: add French version of README
TitanSage02 Oct 13, 2024
8a792fb
Update README_FR.md
TitanSage02 Oct 14, 2024
a91003a
disable submission
cyzus Oct 14, 2024
eecbfb5
Fixing README redict from README_CN and README_JP
Codezy93 Oct 14, 2024
1d4a845
支持跑通mle bench
cyzus Oct 14, 2024
4b1a616
Added inf param refs; Added Llama 3.2 model IDs; Removed titan-tg1-la…
JGalego Oct 14, 2024
47be4f5
Commented out legacy Llama 2, smaller Llama 3 and Mistral 7B Instruct…
JGalego Oct 14, 2024
7cb307a
Merge branch 'prepare-for-opensource' into 'expo'
garylin2099 Oct 15, 2024
07800be
allow datasets to be prepared by users
cyzus Oct 15, 2024
d179982
allow special-instruction for mle-bench
cyzus Oct 15, 2024
0166834
fix special instruction bug
cyzus Oct 15, 2024
02b4f0a
add timout to mlebench readme instruction
cyzus Oct 15, 2024
541f8a1
fix path bug
cyzus Oct 15, 2024
32d416b
Merge pull request #1457 from Jacksonxhx/milvus
geekan Oct 15, 2024
bcb6b89
Fixes:#1507 ; Update Transformers Link in README ; Fixed
himanshumahajan138 Oct 15, 2024
7794b99
fix: role timeout not passing in
cyzus Oct 16, 2024
989a3b4
allow max depth passing in
cyzus Oct 16, 2024
eae3514
Update AFlow
didiforgithub Oct 16, 2024
bb229f2
Update AFlolw
didiforgithub Oct 16, 2024
eea9486
Update Eval
didiforgithub Oct 16, 2024
df7a04d
output dev set score
cyzus Oct 16, 2024
eab9b84
Change HotpotQA
MoshiQAQ Oct 16, 2024
390b65f
Update HotpotQA
MoshiQAQ Oct 16, 2024
859ee3d
fix test()
MoshiQAQ Oct 16, 2024
cea3473
Update evaluator.py
MoshiQAQ Oct 16, 2024
38daf24
rename task if custom_data_dir is used
cyzus Oct 17, 2024
a46f575
clean up input argument
cyzus Oct 17, 2024
0f01c07
add tree visualization script and function
cyzus Oct 17, 2024
1d22466
change dir for tree fig
cyzus Oct 17, 2024
6646983
fix visualization bug
cyzus Oct 17, 2024
510136a
allowing whether to show instructions
cyzus Oct 17, 2024
06710fb
fix typo in readme.md
cyzus Oct 17, 2024
6aedc4a
Update AFlow
didiforgithub Oct 17, 2024
7c6edce
Update config2.yaml
didiforgithub Oct 17, 2024
d99054a
Merge branch 'main' into main
better629 Oct 17, 2024
852fbc5
automatically update args.low_is_better for mle-bench
cyzus Oct 17, 2024
6f437bb
automatically change low_is_better for rmse
cyzus Oct 17, 2024
de42e32
automatically update low_is_better for our task
cyzus Oct 17, 2024
1915d19
update aide readme
limafang Oct 17, 2024
2762c12
Merge branch 'fix-aide-readme' into 'expo'
garylin2099 Oct 17, 2024
358a97e
modify prompt
cyzus Oct 18, 2024
2b788b2
Update Annotation to English, And Update Operator.json
didiforgithub Oct 18, 2024
ebcacdd
Update print error
didiforgithub Oct 18, 2024
7a38165
add seed
cyzus Oct 18, 2024
3646feb
Merge remote-tracking branch 'origin/expo' into insight-pool-improve
cyzus Oct 18, 2024
f97ad72
add task arg for tree visualization
cyzus Oct 18, 2024
2ce186c
Merge branch 'insight-pool-improve' into 'expo'
garylin2099 Oct 18, 2024
345d799
Merge remote-tracking branch 'origin/expo' into optimize-mle-bench-pr…
cyzus Oct 18, 2024
5eaa072
add an instruction to avoid splitting instruction being replaced
cyzus Oct 18, 2024
f070455
Merge branch 'expo' into 'sela'
garylin2099 Oct 18, 2024
e094e2a
update openai_api.py
better629 Oct 18, 2024
5d6fa7a
Update readme.md
didiforgithub Oct 18, 2024
17f3cd4
Refactor Evaluator
didiforgithub Oct 18, 2024
6ebf3c4
Update drop.py
MoshiQAQ Oct 19, 2024
478589e
Update action_node.py
MoshiQAQ Oct 19, 2024
8f34c74
Merge pull request #1450 from JGalego/feat/bedrock-update
geekan Oct 20, 2024
6041070
Merge pull request #1504 from Codezy93/main
geekan Oct 20, 2024
cca28df
Merge pull request #1509 from himanshumahajan138/issue-1507
geekan Oct 20, 2024
8387e28
Merge pull request #1311 from chenchun0629/main
geekan Oct 20, 2024
ac4eb30
删除codecov
voidking Oct 20, 2024
ae4e5d3
Merge pull request #1515 from voidking/main
geekan Oct 20, 2024
da2e0b8
Update README.md
PrathameshSPawar Oct 20, 2024
ade1068
Update Operator's code
didiforgithub Oct 21, 2024
5a58439
Merge pull request #1517 from PrathameshSPawar/patch-1
geekan Oct 21, 2024
efa00f8
Update
didiforgithub Oct 21, 2024
c194415
Update mbpp & math's eval
didiforgithub Oct 21, 2024
d304fc3
Merge branch 'optimize-mle-bench-prompt' into 'sela'
garylin2099 Oct 21, 2024
fe3fca5
Create download_data.py
MoshiQAQ Oct 21, 2024
f6e6e89
chore: 调整requirements.txt中的依赖版本,适配python3.9/3.10/3.11
voidking Oct 21, 2024
2dbf1db
Merge pull request #1524 from voidking/main
geekan Oct 21, 2024
d09c060
删除误提交的milvus_local.db
voidking Oct 21, 2024
048a56f
Merge pull request #1525 from voidking/main
geekan Oct 21, 2024
3a8fdc6
add visit order
garylin2099 Oct 21, 2024
4bed19b
Merge pull request #1526 from garylin2099/sela-lyz
garylin2099 Oct 21, 2024
2d1d7ca
Update Operator & Benchmark
didiforgithub Oct 21, 2024
23eec00
Update operator.py
didiforgithub Oct 21, 2024
d8c7174
Update HotpotQA's init round
didiforgithub Oct 21, 2024
35acb98
Update optimizer.py
didiforgithub Oct 21, 2024
65f9654
Merge branch 'main' into main
TitanSage02 Oct 21, 2024
828d187
change context_fill to xml_fill
didiforgithub Oct 22, 2024
66b5239
Update llm.py & handle exception
didiforgithub Oct 22, 2024
0b69ffe
Update download data.py and rm json files
didiforgithub Oct 22, 2024
fcc5e19
mv aflow from example to ext
didiforgithub Oct 22, 2024
5aa62b7
Update
didiforgithub Oct 22, 2024
e575b62
Resolve comment and modify readme
didiforgithub Oct 22, 2024
5775b20
Update Readme
didiforgithub Oct 22, 2024
2ccee33
Update Readme
didiforgithub Oct 22, 2024
462b7d9
Update README.md
didiforgithub Oct 22, 2024
8b209d4
Merge pull request #1503 from TitanSage02/main
geekan Oct 22, 2024
56d0af1
pre-commit modify
didiforgithub Oct 22, 2024
27e942c
update
didiforgithub Oct 22, 2024
8c7cde5
Transform print into logger.info & mv code sanitize to utils.py
didiforgithub Oct 22, 2024
344d87d
Update
didiforgithub Oct 22, 2024
4564b70
Update mbpp.py
didiforgithub Oct 22, 2024
7c5b29d
rename expo folder to sela
cyzus Oct 22, 2024
d2f90db
Update readme and better optimizer
didiforgithub Oct 23, 2024
39ae682
Fix jinyu's review and add reproduce's code in experiment folder
didiforgithub Oct 24, 2024
072839a
Final version
didiforgithub Oct 24, 2024
bbb9824
Update download_data.py
didiforgithub Oct 24, 2024
b43429e
Delete Unnecessary Part
didiforgithub Oct 24, 2024
ceccd66
Update pre-commit's error
didiforgithub Oct 24, 2024
b2dcd6a
Update README.md
didiforgithub Oct 24, 2024
ca3422b
Update README.md
didiforgithub Oct 24, 2024
17785ca
Update
didiforgithub Oct 24, 2024
e48f659
Update README.md
didiforgithub Oct 24, 2024
8a06c95
Update README.md
didiforgithub Oct 24, 2024
765244c
Update README.md
didiforgithub Oct 24, 2024
d9ad8fe
1
Oct 24, 2024
06c1915
Update README.md
didiforgithub Oct 25, 2024
38c825d
Delete unnecessary part & Update Optimize for better use
didiforgithub Oct 25, 2024
95bed6e
modify reproduce function
didiforgithub Oct 25, 2024
92e520d
Final Version
didiforgithub Oct 25, 2024
eb3d49d
move to ext/sela
cyzus Oct 25, 2024
a62ae88
update readme.md
cyzus Oct 25, 2024
7602978
rename aug to rs
cyzus Oct 25, 2024
4d1a6f4
rename classes and functions
cyzus Oct 25, 2024
ea699ca
1
Oct 27, 2024
a7fa56a
1
Oct 27, 2024
61492d9
add data type; fix instruction generation
cyzus Oct 28, 2024
9abb8db
edit-baseline-experimenter
cyzus Oct 28, 2024
e41f934
update readme
cyzus Oct 28, 2024
4c541c2
reorder import
cyzus Oct 28, 2024
3fefc48
fix ollama to add llava support
EvensXia Oct 28, 2024
6321b79
reoreder
cyzus Oct 28, 2024
cf03c5d
Merge pull request #1543 from cyzus/sela
garylin2099 Oct 28, 2024
1aac79c
identation on readme
cyzus Oct 28, 2024
7b81c8a
make context length configurable
seehi Oct 28, 2024
f0a3a3f
Update Latest Review
didiforgithub Oct 28, 2024
e0cbbf8
rename research assistant to experimenter
cyzus Oct 28, 2024
b97fa40
1
Oct 28, 2024
d5bd342
1
Oct 28, 2024
7146a7b
Merge pull request #1546 from seehi/feat-set-context-length
geekan Oct 28, 2024
4dc1a38
Merge pull request #1494 from kithib/main
geekan Oct 28, 2024
fdb8346
update ollama
EvensXia Oct 29, 2024
25299e1
change research assistant to experimenter
cyzus Oct 29, 2024
a5f33e2
update ollama
EvensXia Oct 29, 2024
37698b3
update readme - put baseline readme in /runner
cyzus Oct 29, 2024
df51f45
Merge pull request #1545 from cyzus/sela-readme
garylin2099 Oct 29, 2024
d01051a
Update for solving latest review.
didiforgithub Oct 29, 2024
322974a
fix for test
EvensXia Oct 29, 2024
7d3d15a
format
EvensXia Oct 29, 2024
c48d16d
fix embedding
EvensXia Oct 29, 2024
685d301
f
EvensXia Oct 29, 2024
dbfd37b
Merge pull request #1510 from didiforgithub/main
geekan Oct 29, 2024
bbb087b
Update Readme News & Update AFLOW's entrance.
didiforgithub Oct 29, 2024
1b5939f
Update README.md
didiforgithub Oct 29, 2024
beae28d
Update README.md
didiforgithub Oct 29, 2024
8a46f96
Merge pull request #1548 from didiforgithub/main
geekan Oct 29, 2024
187e512
fixup ollama_api chat prompt
EvensXia Oct 29, 2024
f2aa4e3
tested for embeddings/embed
EvensXia Oct 30, 2024
062b13f
fix embed
EvensXia Oct 30, 2024
2bca5c9
fix embedding output
EvensXia Oct 30, 2024
82dba4b
revert llm_vision
EvensXia Oct 30, 2024
e209e0e
fx
EvensXia Oct 30, 2024
9db0874
Merge pull request #1544 from EvensXia/fix_metagpt_from_evensxia
geekan Oct 30, 2024
ea13d7a
Fix Issue 1549 & Fix Claude Token Calculate Error.
didiforgithub Oct 30, 2024
6b8b9c8
Update token_counter.py
didiforgithub Oct 30, 2024
fd7feb5
Merge pull request #1552 from didiforgithub/main
geekan Oct 30, 2024
a01156d
Update utils.py
didiforgithub Oct 30, 2024
2077dd5
Merge pull request #1554 from didiforgithub/main
geekan Oct 30, 2024
74041bd
update readme intro
cyzus Oct 30, 2024
73d2358
update intro and citation
cyzus Oct 30, 2024
0a215a9
update readme
cyzus Oct 30, 2024
261a39d
remove autogluon models in gitignore
cyzus Oct 30, 2024
776ee44
remove mlebench
cyzus Oct 30, 2024
b710365
use google drive link
cyzus Oct 30, 2024
39027b6
Merge pull request #1556 from cyzus/sela-readme-intro
garylin2099 Oct 30, 2024
db19c88
Merge branch 'main' into sela
garylin2099 Oct 30, 2024
21d9c5a
Merge pull request #1514 from geekan/sela
geekan Oct 31, 2024
0c0cfe0
Update openai_api.py
zhaoweiguo Oct 31, 2024
8ced2e8
Update requirements.txt
zhaoweiguo Oct 31, 2024
0f27029
fix bug in multi llm
zhaoweiguo Oct 31, 2024
b5bb4d7
Merge pull request #1558 from zhaoweiguo/patch-1
geekan Oct 31, 2024
6d1ab98
FIX multiLLM bug
zhaoweiguo Nov 1, 2024
0e37450
Merge branch 'geekan:main' into patch-3
zhaoweiguo Nov 1, 2024
0443865
bugfix: #1547 Before calling serializeToString in mmdc_playwright.py,…
voidking Nov 1, 2024
3e626f4
Merge pull request #1564 from voidking/main
geekan Nov 1, 2024
ad30d2f
Merge pull request #1560 from zhaoweiguo/patch-2
geekan Nov 1, 2024
84ac87d
Merge branch 'main' into patch-3
zhaoweiguo Nov 4, 2024
5442d8f
pre-commit: make sure all files are clean
zhaoweiguo Nov 4, 2024
4255acc
Merge branch 'patch-3' of github.com:zhaoweiguo/MetaGPT into patch-3
zhaoweiguo Nov 4, 2024
59715c0
Merge pull request #1561 from zhaoweiguo/patch-3
geekan Nov 4, 2024
fb817a7
update aws claude token usage
better629 Nov 4, 2024
99c1f95
Merge pull request #1569 from better629/main
geekan Nov 4, 2024
f1565e2
fixbug: #1565 zhipuai model exception
Nov 4, 2024
f0a9042
Merge pull request #1570 from iorisa/fixbug/issue/1565
better629 Nov 4, 2024
bfe15e3
bugfix: If --run-tests is enabled, at least 8 rounds are required to …
voidking Nov 5, 2024
7464b9f
Add unittest for QaEngineer in software company workflow
voidking Nov 5, 2024
f11e671
Merge pull request #1573 from voidking/main
geekan Nov 6, 2024
7824c93
add sela example
limafang Nov 6, 2024
a1ad02a
Update action_node.py
didiforgithub Nov 8, 2024
532aede
Merge pull request #1578 from limafang/main
voidking Nov 9, 2024
e2cdcfb
Create AFLOW Inference Interface.
didiforgithub Nov 10, 2024
6fcb39a
Merge pull request #1587 from didiforgithub/main
geekan Nov 11, 2024
c0f6605
fix sela readme path error
limafang Nov 11, 2024
2b160f2
Merge pull request #1590 from limafang/main
geekan Nov 11, 2024
943c658
chore: 跑通单元测试
voidking Nov 12, 2024
7ec3119
fixbug: TypeError: AsyncClient.__init__() got an unexpected keyword a…
Dec 2, 2024
6fbc2a9
Merge pull request #1614 from voidking/main
geekan Dec 2, 2024
ee87d87
feat: httpx==0.27.2
Dec 2, 2024
68b7dc6
Merge pull request #1619 from iorisa/fixbug/1617
geekan Dec 4, 2024
3aaa8cf
fixbug: use a share context to pass the repo path information
Dec 6, 2024
0a5a235
Merge pull request #1631 from iorisa/fixbug/1623
iorisa Dec 6, 2024
fd133aa
Add detailed error message for missing model configurations
shenchucheng Dec 6, 2024
5eb6098
update .gitignore
shenchucheng Dec 6, 2024
0ab21e3
Merge pull request #1632 from shenchucheng/opt-aflow-cmd
shenchucheng Dec 9, 2024
d360800
pass the reigion name to the boto3.session.client to use region gated…
TorgemanTarak Dec 16, 2024
f439c67
sorry i forgot the pre commit hooks
TorgemanTarak Dec 17, 2024
4954729
Merge pull request #1644 from TorgemanTarak/pass-region-name-to-the-c…
shenchucheng Dec 18, 2024
de482e2
In the example of werewolf, when the model call fails, it will try to…
Terrdi Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
source =
./metagpt/
omit =
*/metagpt/ext/*
*/metagpt/environment/android_env/*
*/metagpt/environment/werewolf_env/*

41 changes: 18 additions & 23 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
# Dev container
# Dev Container

This project includes a [dev container](https://containers.dev/), which lets you use a container as a full-featured dev environment.
This project includes a [Dev Container](https://containers.dev/), offering you a comprehensive and fully-featured development environment within a container. By leveraging the Dev Container configuration in this folder, you can seamlessly build and initiate MetaGPT locally. For detailed information, please refer to the main README in the home directory.

You can use the dev container configuration in this folder to build and start running MetaGPT locally! For more, refer to the main README under the home directory.
You can use it in [GitHub Codespaces](https://github.com/features/codespaces) or the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
You can utilize this Dev Container in [GitHub Codespaces](https://github.com/features/codespaces) or with the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).

## GitHub Codespaces
<a href="https://codespaces.new/geekan/MetaGPT"><img src="https://github.com/codespaces/badge.svg" alt="Open in GitHub Codespaces"></a>
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/geekan/MetaGPT)

You may use the button above to open this repo in a Codespace
Click the button above to open this repository in a Codespace. For additional information, refer to the [GitHub documentation on creating a Codespace](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).

For more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).

## VS Code Dev Containers
<a href="https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/geekan/MetaGPT"><img src="https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode" alt="Open in Dev Containers"></a>
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/geekan/MetaGPT)

Note: If you click this link you will open the main repo and not your local cloned repo, you can use this link and replace with your username and cloned repo name:
https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/geekan/MetaGPT
Note: Clicking the link above opens the main repository. To open your local cloned repository, replace the URL with your username and cloned repository's name: `https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/<your-username>/<your-repo-name>`

If you have VS Code and Docker installed, use the button above to get started. This will prompt VS Code to install the Dev Containers extension if it's not already installed, clone the source code into a container volume, and set up a dev container for you.

If you already have VS Code and Docker installed, you can use the button above to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
Alternatively, follow these steps to open this repository in a container using the VS Code Dev Containers extension:

You can also follow these steps to open this repo in a container using the VS Code Dev Containers extension:
1. For first-time users of a development container, ensure your system meets the prerequisites (e.g., Docker installation) as outlined in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).

1. If this is your first time using a development container, please ensure your system meets the pre-reqs (i.e. have Docker installed) in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).

2. Open a locally cloned copy of the code:

- Fork and Clone this repository to your local filesystem.
2. To open a locally cloned copy of the code:
- Fork and clone this repository to your local file system.
- Press <kbd>F1</kbd> and select the **Dev Containers: Open Folder in Container...** command.
- Select the cloned copy of this folder, wait for the container to start, and try things out!
- Choose the cloned folder, wait for the container to initialize, and start exploring!

Learn more in the [VS Code Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers).

You can learn more in the [Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers).
## Tips and Tricks

## Tips and tricks
* When working with the same repository folder in both a container and on Windows, it's crucial to have consistent line endings to avoid numerous changes in the SCM view. The `.gitattributes` file in the root of this repository disables line ending conversion, helping to prevent this issue. For more information, see [resolving git line ending issues in containers](https://code.visualstudio.com/docs/devcontainers/tips-and-tricks#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files).

* If you are working with the same repository folder in a container and Windows, you'll want consistent line endings (otherwise you may see hundreds of changes in the SCM view). The `.gitattributes` file in the root of this repo will disable line ending conversion and should prevent this. See [tips and tricks](https://code.visualstudio.com/docs/devcontainers/tips-and-tricks#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files) for more info.
* If you'd like to review the contents of the image used in this dev container, you can check it out in the [devcontainers/images](https://github.com/devcontainers/images/tree/main/src/python) repo.
* If you're curious about the contents of the image used in this Dev Container, you can review it in the [devcontainers/images](https://github.com/devcontainers/images/tree/main/src/python) repository.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"image": "metagpt/metagpt:latest",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -18,7 +18,7 @@
]
}
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ 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:
python --version
pip install -e.
pip install -e .
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
workspace
tmp
build
workspace
dist
data
geckodriver.log
33 changes: 33 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# HTML code is incorrectly calculated into statistics, so ignore them
*.html linguist-detectable=false

# Auto detect text files and perform LF normalization
* text=auto eol=lf

# Ensure shell scripts use LF (Linux style) line endings on Windows
*.sh text eol=lf

# Treat specific binary files as binary and prevent line ending conversion
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.jpeg binary
*.mp3 binary
*.mp4 binary
*.zip binary
*.bin binary


# Preserve original line endings for specific document files
*.doc text eol=crlf
*.docx text eol=crlf
*.pdf binary

# Ensure source code and script files use LF line endings
*.py text eol=lf
*.js text eol=lf
*.html text eol=lf
*.css text eol=lf

# Specify custom diff driver for specific file types
*.md diff=markdown
*.json diff=json
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: "📑 Read online docs"
url: https://docs.deepwisdom.ai/
about: Find the tutorials, use cases and blogs from the doc site.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/request_new_features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "🤔 Request new features"
about: There are some ideas or demands want to discuss with the official and hope to be implemented in the future.
title: ''
labels: kind/features
assignees: ''
---

**Feature description**
<!-- Clear and direct description of the functionality of the currently submitted or proposed feature -->

**Your Feature**
<!-- Describe the idea or process of implementing the current feature. Of course, you can also paste the URL address of your Pull Request. -->
<!-- When submitting features, you need to complete the corresponding doc/tests/examples to facilitate verification by reviewers. -->
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/show_me_the_bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: "🪲 Show me the Bug"
about: Something happened when I use MetaGPT, I want to report it and hope to get help from the official and community.
title: ''
labels: kind/bug
assignees: ''
---

**Bug description**
<!-- Clearly and directly describe the current bug -->

**Bug solved method**
<!-- If you solved the bug, describe the idea or process to solve the current bug. Of course, you can also paste the URL address of your Pull Request. -->
<!-- If not, provide more auxiliary information to facilitate our further positioning and investigation -->

**Environment information**
<!-- Environment:System version (like ubuntu 22.04), Python version (conda python 3.7), LLM type and model (OpenAI gpt-4-1106-preview) -->

- LLM type and model name:
- System version:
- Python version:
- MetaGPT version or branch:

<!-- Dependent packagess:the packages version cause the bug(like `pydantic 1.10.8`), installation method(like `pip install metagpt` or `pip install from source` or `run in docker`) -->

- packages version:
- installation method:

**Screenshots or logs**
<!-- Screenshots or logs of the bug can help us understand the problem more quickly -->
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

**Features**
<!-- Clear and direct description of the submit features. -->
<!-- If it's a bug fix, please also paste the issue link. -->

- xx
- yy

**Feature Docs**
<!-- The RFC, tutorial, or use cases about the feature if it's a pretty big update. If not, there is no need to fill. -->

**Influence**
<!-- Tell me the impact of the new feature and I'll focus on it. -->

**Result**
<!-- The screenshot/log of unittest/running result -->

**Other**
<!-- Something else about this PR. -->
35 changes: 35 additions & 0 deletions .github/workflows/build-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and upload python package

on:
workflow_dispatch:
release:
types: [created, published]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e.
pip install setuptools wheel twine
- name: Set package version
run: |
export VERSION="${GITHUB_REF#refs/tags/v}"
sed -i "s/version=.*/version=\"${VERSION}\",/" setup.py
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py bdist_wheel sdist
twine upload dist/*
86 changes: 86 additions & 0 deletions .github/workflows/fulltest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Full Tests

on:
workflow_dispatch:
pull_request_target:
push:
branches:
- 'main'
- 'dev'
- '*-release'
- '*-debugger'

jobs:
build:
runs-on: ubuntu-latest
environment: unittest
strategy:
matrix:
# python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9']

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
npm install -g @mermaid-js/mermaid-cli
playwright install --with-deps
- name: Run reverse proxy script for ssh service
if: contains(github.ref, '-debugger')
continue-on-error: true
env:
FPR_SERVER_ADDR: ${{ secrets.FPR_SERVER_ADDR }}
FPR_TOKEN: ${{ secrets.FPR_TOKEN }}
FPR_SSH_REMOTE_PORT: ${{ secrets.FPR_SSH_REMOTE_PORT }}
RSA_PUB: ${{ secrets.RSA_PUB }}
SSH_PORT: ${{ vars.SSH_PORT || '22'}}
run: |
echo "Run \"ssh $(whoami)@FPR_SERVER_HOST -p FPR_SSH_REMOTE_PORT\" and \"cd $(pwd)\""
mkdir -p ~/.ssh/
echo $RSA_PUB >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
wget https://github.com/fatedier/frp/releases/download/v0.32.1/frp_0.32.1_linux_amd64.tar.gz -O frp.tar.gz
tar xvzf frp.tar.gz -C /opt
mv /opt/frp* /opt/frp
/opt/frp/frpc tcp --server_addr $FPR_SERVER_ADDR --token $FPR_TOKEN --local_port $SSH_PORT --remote_port $FPR_SSH_REMOTE_PORT
- name: Test with pytest
run: |
export ALLOW_OPENAI_API_CALL=0
echo "${{ secrets.METAGPT_KEY_YAML }}" | base64 -d > config/key.yaml
mkdir -p ~/.metagpt && echo "${{ secrets.METAGPT_CONFIG2_YAML }}" | base64 -d > ~/.metagpt/config2.yaml
pytest tests/ --doctest-modules --cov=./metagpt/ --cov-report=xml:cov.xml --cov-report=html:htmlcov --durations=20 | tee unittest.txt
- name: Show coverage report
run: |
coverage report -m
- name: Show failed tests and overall summary
run: |
grep -E "FAILED tests|ERROR tests|[0-9]+ passed," unittest.txt
failed_count=$(grep -E "FAILED|ERROR" unittest.txt | wc -l)
if [[ "$failed_count" -gt 0 ]]; then
echo "$failed_count failed lines found! Task failed."
exit 1
fi
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: |
./unittest.txt
./htmlcov/
./tests/data/rsp_cache_new.json
retention-days: 3
if: ${{ always() }}
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# if: ${{ always() }}
31 changes: 31 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pre-commit checks

on:
pull_request:
branches:
- '**'
push:
branches:
- '**'

jobs:
pre-commit-check:
runs-on: ubuntu-latest
environment: pre-commit
steps:
- name: Checkout Source Code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9.17'

- name: Install pre-commit
run: pip install pre-commit

- name: Initialize pre-commit
run: pre-commit install

- name: Run pre-commit hooks
run: pre-commit run --all-files
22 changes: 22 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "5 0 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "inactive"
stale-issue-message: "This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add."
close-issue-message: "This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
Loading