When multiple agents communicate via the A2A protocol, the invocationContext.session.state is not transformed and transmitted to the message, and SSE streaming is not supported.
维护者通常 1 天内回复
@hemasekhar-p 已经在做这个了。
开始于 2026年2月24日。
评估
这个 Issue 还没有评估数据。
描述
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Is your feature request related to a specific problem?
1.Based on the following source code reading, in the logic of converting invocationContext to Message using EventConverter.convertEventsToA2AMessage:
Optional<Message> a2aMessageOpt = com.google.adk.a2a.EventConverter.convertEventsToA2AMessage(invocationContext);
metadata is not assigned. Therefore, will the following code always return a null case:
Map<String, Object> metadata = originalMessage.getMetadata() == null ? Map.of() : originalMessage.getMetadata();
Is it possible to convert invocationContext.session.state to the metadata of the Message, as additional information in the communication protocol between the client agent and the server agent? like this:
Due to the time-consuming nature of this communication, which negatively impacts user experience, it is recommended to replace the synchronous approach with SSE streaming output. Simultaneously, the client should use a pre-implemented streaming HTTP request to establish connections.
Describe the Solution You'd Like
Some of the solution code logic is above.
- 主要语言
- Java
- 星标
- 1.7k
- 派生
- 421
- 平均合并
- 3 天 9 小时
- 30 天内合并 PR
- 29
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/adk-java 的其他 Issue
-
needs review
难度 4/5 3-5 天 新手友好度 68/100
google/adk-java#1564 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
needs review
难度 3/5 1-2 天 新手友好度 72/100
google/adk-java#1562 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Approved tool call re-runs on every later user turn if it never got a function response可能已有人在做 @hemasekhar-p 于 4 天前认领。 未关闭needs review
google/adk-java#1556 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
LocalSkillSource.listResources returns backslash-separated paths on Windows可能已有人在做 @hemasekhar-p 于 4 天前认领。 未关闭needs review
google/adk-java#1541 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Context caching (ContextCacheConfig) is a silent no-op: config is plumbed to InvocationContext but never read可能已有人在做 @hemasekhar-p 于 6 天前认领。 未关闭needs review
难度 5/5 一周以上 新手友好度 35/100
google/adk-java#1530 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
component/zeebe kind/bug
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
UniversalMediaServer/UniversalMediaServer#6356 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
refinedmods/refinedstorage2#1414 · 1 条评论 ·
-
难度 1/5 1-3 小时 新手友好度 88/100
yegor256/rultor-image#76 · 1 条评论 ·