Skip to content

docs: fix README event count and Model javadoc to match code - #2497

Merged
jujn merged 4 commits into
agentscope-ai:mainfrom
helloworldtang:docs/fix-event-count-and-compaction-javadoc
Aug 27, 2026
Merged

docs: fix README event count and Model javadoc to match code#2497
jujn merged 4 commits into
agentscope-ai:mainfrom
helloworldtang:docs/fix-event-count-and-compaction-javadoc

Conversation

@helloworldtang

Copy link
Copy Markdown
Contributor

What & Why

Found two documentation/code inconsistencies while reviewing the 2.0 GA codebase. This PR fixes both — docs only, no behavior change.

1. Typed event count is 31, not 28

AgentEventType defines 31 enum values and AgentEvent registers 31 @JsonSubTypes.Type, but README.md (×2) and README_zh.md still advertise "28 typed events". None of the 31 events are deprecated, so 28 is simply stale.

Updated all three occurrences (README.md ×2, README_zh.md ×1) to 31.

2. Model#getContextWindowSize() javadoc points at a non-core component

The javadoc on Model#getContextWindowSize() says "Used by the compaction middleware to ...", but CompactionMiddleware lives in agentscope-harness, not agentscope-core. The claim is accurate (the harness CompactionMiddleware does call model.getContextWindowSize() at CompactionMiddleware.java:157), but "the compaction middleware" reads as a core concept and misleads readers exploring core in isolation. Qualified it to "the harness-layer compaction middleware".

Verification

  • mvn -pl agentscope-core spotless:check ✅ passes
  • Docs-only change; no tests or behavior affected

Checklist

  • Conventional commit messages (docs(scope): subject)
  • Focused on a single concern (documentation/code consistency)
  • No breaking changes

AgentEventType defines 31 enum values (and AgentEvent registers 31
@JsonSubTypes.Type), but README/README_zh still advertise 28. Update both
locales to match the actual event count.
Model#getContextWindowSize() javadoc referenced 'the compaction middleware'
as if it were a core component, but CompactionMiddleware resides in
agentscope-harness. Qualify the reference so core readers are not misled.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@CLAassistant

CLAassistant commented Jul 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@oss-maintainer oss-maintainer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Reviewed the changes in this PR. The modifications look reasonable and follow the project conventions.


Automated review by "github-manager-bot"

@AgentScopeJavaBot AgentScopeJavaBot added area/core/model Model providers and formatters area/docs Documentation labels Aug 11, 2026

@AgentScopeJavaBot AgentScopeJavaBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

@AgentScopeJavaBot AgentScopeJavaBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

@AgentScopeJavaBot AgentScopeJavaBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

@helloworldtang

Copy link
Copy Markdown
Contributor Author

大佬你好,友好 ping 一下这个 PR——已开放两周左右,并且已获得 oss-maintainer 的 APPROVED 评审。改动仅涉及文档(README 事件计数和 Model javadoc 与实际代码对齐),希望有空时能尽快合并。如需调整任何内容我很乐意配合,谢谢!

@jujn
jujn merged commit c32de52 into agentscope-ai:main Aug 27, 2026
5 checks passed
@helloworldtang
helloworldtang deleted the docs/fix-event-count-and-compaction-javadoc branch August 27, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core/model Model providers and formatters area/docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants