Skip to content

fix(skills): retain dynamic grouped tools - #22

Merged
yuluo-yx merged 1 commit into
agentic-ai-java:mainfrom
CryoThrust:fix/skills-agent-hook-dynamic-grouped-tools
Aug 28, 2026
Merged

yuluo-yx merged 1 commit into
agentic-ai-java:mainfrom
CryoThrust:fix/skills-agent-hook-dynamic-grouped-tools

Conversation

@CryoThrust

Copy link
Copy Markdown
Contributor

What does this PR do?

The SkillsAgentHook currently skips configuring groupedTools when the map is empty at construction time. This makes an externally managed map ineffective when tools are added later.

Always passing the configured map to SkillsInterceptor preserves the live map reference. A regression test covers an initially empty ConcurrentHashMap populated after the hook is created.

This is the same fix discussed in alibaba/spring-ai-alibaba#4929, per maintainer guidance.

Verification

  • git diff --check passes.
  • The test was added to SkillsInterceptorEnhancementsTest.

@yuluo-yx yuluo-yx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM thx

@yuluo-yx
yuluo-yx merged commit b0e0b87 into agentic-ai-java:main Aug 28, 2026
yuluo-yx added a commit that referenced this pull request Oct 17, 2026
…grouped-tools

fix(skills): retain dynamic grouped tools
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