Repository navigation
fix(agent): resolve dynamically disclosed skill tools after HITL resumption (#35) - #73
Merged
yuluo-yx merged 1 commit intoSep 2, 2026
Conversation
…mption (agentic-ai-java#35) Tool callbacks disclosed by progressive-disclosure model interceptors (e.g. skill tools from SkillsInterceptor) were only passed through config.context(), which is cleared when a subgraph resumes after a Human-in-the-Loop interruption, leaving AgentToolNode unable to resolve the approved tool. Share an in-memory registry between AgentLlmNode and AgentToolNode so the disclosed callbacks stay resolvable across resumption, with unit tests covering the empty-context resume scenario.
yuluo-yx
approved these changes
Sep 2, 2026
This was referenced Sep 4, 2026
yuluo-yx
added a commit
that referenced
this pull request
Oct 17, 2026
fix(agent): resolve dynamically disclosed skill tools after HITL resumption (#35)
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.
改动
原因
动态工具回调此前只通过 config.context() 传递(AgentLlmNode 中有 FIXME 标记)。子图在 Human-in-the-Loop 中断后恢复时,GraphRunnerContext 会清空 context,导致 AgentToolNode 无法解析已获人工确认的工具,Skills 场景下报 "No ToolCallback found for tool name: queryTool"(issue #35,源自 alibaba/spring-ai-alibaba#4606)。
注册表挂在节点实例上:恢复执行复用同一个 CompiledGraph,节点实例存活,因此回调在恢复后可解析,且不涉及 checkpoint 状态序列化。
验证
Fixes #35