Skip to content

Conversation

@DavdGao
Copy link
Member

@DavdGao DavdGao commented Oct 14, 2025

AgentScope Version

0.1.5 ==> 0.1.6dev

Description

  • Improve the werewolves game example in AgentScope
  • Add value assert for the content field in the message object

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@DavdGao DavdGao requested a review from Copilot October 14, 2025 06:34
Copy link

Copilot AI left a 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.

@DavdGao DavdGao requested a review from Copilot October 14, 2025 07:02
Copy link

Copilot AI left a 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.

@DavdGao DavdGao mentioned this pull request Oct 14, 2025
5 tasks
@DavdGao DavdGao merged commit cb35287 into agentscope-ai:main Oct 14, 2025
10 checks passed
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.

用户体验建议:agent scope 文档中的代码示例提供 复制 按钮

1 participant