agenttool: 子状态更新未到达父级会话
作者: ktsoator创建于 2026年9月25日更新于 2026年9月25日
标签bug
Describe the Bug
An agent called through agenttool can read the parent's state, but its state updates do not reach the parent. I reproduced this with both OutputKey and a callback calling ctx.State().Set(...).
Steps to Reproduce
- Give the child agent an
OutputKeyofchild_result. - Call it through
agenttooland let it return"done". - Read
child_resultfrom the parent tool context.
内容来源: google/adk-go