Skip to content

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

Open
helloworldtang wants to merge 3 commits into
agentscope-ai:mainfrom
helloworldtang:docs/fix-event-count-and-compaction-javadoc
Open

docs: fix README event count and Model javadoc to match code#2497
helloworldtang wants to merge 3 commits into
agentscope-ai:mainfrom
helloworldtang:docs/fix-event-count-and-compaction-javadoc

Conversation

@helloworldtang

Copy link
Copy Markdown

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!

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