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

Feat add werewolf game #1175

Merged
merged 82 commits into from
Apr 11, 2024
Merged

Feat add werewolf game #1175

merged 82 commits into from
Apr 11, 2024

Conversation

better629
Copy link
Collaborator

Features

  • update werewolf env
  • update werewolf game from old version to new one
  • update rag to support chroma metadata

Feature Docs

Influence

Result

(metagpt) MacBook-Pro:MetaGPT xxxx$ pytest tests/metagpt/rag/*
========================================================================================================= test session starts ==========================================================================================================
collected 69 items                                                                                                                                                                                                                     

tests/metagpt/rag/engines/test_simple.py ............                                                                                                                                                                            [ 17%]
tests/metagpt/rag/factories/test_base.py ..........                                                                                                                                                                              [ 31%]
tests/metagpt/rag/factories/test_embedding.py ...                                                                                                                                                                                [ 36%]
tests/metagpt/rag/factories/test_index.py ....                                                                                                                                                                                   [ 42%]
tests/metagpt/rag/factories/test_llm.py .....                                                                                                                                                                                    [ 49%]
tests/metagpt/rag/factories/test_ranker.py .......                                                                                                                                                                               [ 59%]
tests/metagpt/rag/factories/test_retriever.py ........                                                                                                                                                                           [ 71%]
tests/metagpt/rag/rankers/test_base_ranker.py .                                                                                                                                                                                  [ 72%]
tests/metagpt/rag/rankers/test_object_ranker.py ........                                                                                                                                                                         [ 84%]
tests/metagpt/rag/retrievers/test_base_retriever.py ..                                                                                                                                                                           [ 86%]
tests/metagpt/rag/retrievers/test_bm25_retriever.py ..                                                                                                                                                                           [ 89%]
tests/metagpt/rag/retrievers/test_chroma_retriever.py .                                                                                                                                                                          [ 91%]
tests/metagpt/rag/retrievers/test_es_retriever.py .                                                                                                                                                                              [ 92%]
tests/metagpt/rag/retrievers/test_faiss_retriever.py ..                                                                                                                                                                          [ 95%]
tests/metagpt/rag/retrievers/test_hybrid_retriever.py ...                                                                                                                                                                        [100%]

==================================================================================================== 69 passed, 7 warnings in 9.53s ====================================================================================================
(metagpt) MacBook-Pro:MetaGPT xxxx$ 
(metagpt) MacBook-Pro:MetaGPT xxxx$ 
(metagpt) MacBook-Pro:MetaGPT xxxx$ pytest tests/metagpt/ext/werewolf/actions/test_experience_operation.py
========================================================================================================= test session starts ==========================================================================================================
collected 7 items                                                                                                                                                                                                                      

tests/metagpt/ext/werewolf/actions/test_experience_operation.py .......                                                                                                                                                          [100%]
==================================================================================================== 7 passed, 8 warnings in 18.00s ====================================================================================================

Other

garylin2099 and others added 30 commits September 23, 2023 01:43
delete two lines of local testing code
Werewolf game modify moderator and add seer role and action
# Conflicts:
#	examples/werewolf_game/actions/__init__.py
#	examples/werewolf_game/roles/__init__.py
#	examples/werewolf_game/start_game.py
1st version of runnable complete pipeline
@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2024

Codecov Report

Attention: Patch coverage is 26.55827% with 542 lines in your changes are missing coverage. Please review.

Project coverage is 33.73%. Comparing base (63ca545) to head (bdfec45).

Files Patch % Lines
metagpt/ext/werewolf/roles/moderator.py 0.00% 147 Missing ⚠️
metagpt/ext/werewolf/roles/base_player.py 0.00% 89 Missing ⚠️
metagpt/environment/werewolf/werewolf_ext_env.py 25.00% 66 Missing ⚠️
...tagpt/ext/werewolf/actions/experience_operation.py 38.88% 55 Missing ⚠️
metagpt/ext/werewolf/actions/common_actions.py 39.68% 38 Missing ⚠️
metagpt/ext/werewolf/roles/witch.py 0.00% 19 Missing ⚠️
metagpt/ext/werewolf/roles/human_player.py 0.00% 18 Missing ⚠️
metagpt/ext/werewolf/werewolf_game.py 0.00% 17 Missing ⚠️
metagpt/ext/werewolf/actions/moderator_actions.py 38.46% 16 Missing ⚠️
metagpt/ext/werewolf/actions/witch_actions.py 44.00% 14 Missing ⚠️
... and 15 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1175      +/-   ##
==========================================
- Coverage   34.03%   33.73%   -0.30%     
==========================================
  Files         293      314      +21     
  Lines       17959    18628     +669     
==========================================
+ Hits         6113     6285     +172     
- Misses      11846    12343     +497     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@geekan geekan merged commit 4c16d4a into geekan:main Apr 11, 2024
1 of 3 checks passed
kithib pushed a commit to kithib/MetaGPT that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet