-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve the werewolves game example in AgentScope #840
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the werewolves game example in AgentScope by refactoring the code structure and adding new features. The main purpose is to make the game more modular, maintainable, and feature-rich while also adding validation to the message system.
Key changes include:
- Refactored the game logic into separate modules for better organization
- Added support for both English and Chinese prompts
- Implemented session state management for continuous gaming
- Added validation for message content fields
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/agentscope/message/_message_base.py | Added content validation assert and null handling for content blocks |
| src/agentscope/_version.py | Updated version from 1.0.5 to 1.0.6dev |
| examples/game/werewolves/utils.py | Refactored utility functions and added Players class for better state management |
| examples/game/werewolves/structured_model.py | Minor comment correction and formatting cleanup |
| examples/game/werewolves/prompt.py | Complete rewrite to support both English and Chinese prompts with improved messaging |
| examples/game/werewolves/main.py | Simplified main entry point with session management and cleaner agent creation |
| examples/game/werewolves/game.py | New file containing the main game logic extracted from main.py |
| examples/game/werewolves/README.md | Updated documentation with changelog and advanced usage instructions |
| docs/tutorial/_static/css/gallery.css | Updated CSS styling for gallery footer and download elements |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
AgentScope Version
0.1.5 ==> 0.1.6dev
Description
Checklist
Please check the following items before code is ready to be reviewed.
pre-commit run --all-filescommand