Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
AlbumenJ
approved these changes
Dec 18, 2025
JGoP-L
pushed a commit
to JGoP-L/agentscope-java
that referenced
this pull request
Dec 29, 2025
Letter2025
added a commit
to Letter2025/agentscope-java
that referenced
this pull request
Sep 16, 2026
…g semantics Follow-up to the re-review (all 4 warnings + 3 infos addressed): - Capability contract (agentscope-ai#338): ReActAgent validates the chain at build time and warns when a candidate reports a smaller context window or different structured-output support than the primary (the chain reports the primary's capabilities). FallbackChainModel javadoc documents the compatibility requirement; agent.md EN+ZH updated. - Cooldown semantics (agentscope-ai#185, agentscope-ai#240): auth failures (401/403) are no longer cooled — a wrong credential will not fix itself and the real auth error must surface; they still switch. Mid-stream failures only cool the candidate when classified SWITCHABLE (request-shaped failures like oversized payloads do not park the primary for other sessions). The all-cooling error now propagates the last real failure as cause (remembered per candidate) instead of a bare synthetic message; wording no longer counts the primary as a 'fallback candidate'. - Cooldown key (agentscope-ai#286): replaced System.identityHashCode with the stable chain index (collision-free across wrapper instances sharing a table with the same candidate order). - Cleanup (agentscope-ai#258): removed the tautological size() > 0 && !isEmpty() guard (removeIf is a no-op on an empty map). - Docs (agentscope-ai#657, agentscope-ai#626): agent.md EN capability bullet now matches the code (reports the primary); added the ZH fallbackModels section mirroring the EN one. Tests: 3 new cases (auth-not-cooled, mid-stream request-side not cooled, all-cooling preserves cause); existing cooldown-message test updated to assert the propagated last failure; FallbackChainModelTest 29/29, ReActAgentFallbackChainTest 9/9, model+agent package 373 green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
1.0.3-SNAPSHOT
Description
fix #239
Checklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)