Skip to content

feat: allow extra fields on Event model and bump version to 1.1.6.post1#513

Merged
rayrayraykk merged 1 commit into
agentscope-ai:mainfrom
rayrayraykk:weirui/feat/model-config-extra-allow
Jun 4, 2026
Merged

feat: allow extra fields on Event model and bump version to 1.1.6.post1#513
rayrayraykk merged 1 commit into
agentscope-ai:mainfrom
rayrayraykk:weirui/feat/model-config-extra-allow

Conversation

@rayrayraykk

Copy link
Copy Markdown
Member

Description

[Describe what this PR does and why]

Related Issue: Fixes #[issue_number] or Relates to #[issue_number]

Security Considerations: [If applicable, especially for sandbox changes]

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Engine
  • Sandbox
  • Tools
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rayrayraykk rayrayraykk requested review from a team and Copilot June 4, 2026 03:40
@rayrayraykk rayrayraykk merged commit f5f1b02 into agentscope-ai:main Jun 4, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 relaxes Pydantic validation for the engine’s Event schema to tolerate unknown fields (useful for forward/backward compatibility with event payloads), and bumps the package version for a post-release.

Changes:

  • Allow extra/unknown fields on Event via ConfigDict(extra="allow").
  • Bump package version to 1.1.6.post1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/agentscope_runtime/engine/schemas/agent_schemas.py Adjusts the base Event Pydantic model to accept extra fields.
pyproject.toml Bumps the distribution version to 1.1.6.post1.

Comment thread pyproject.toml
[project]
name = "agentscope-runtime"
version = "1.1.6"
version = "1.1.6.post1"
Comment on lines 263 to +265
class Event(BaseModel):
model_config = ConfigDict(extra="allow")

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.

2 participants