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.
@hemasekhar-p 已经在做这个了。
开始于 2026年2月24日。
- 主要语言
- Java
- 星标
- 1.7k
- 派生
- 421
- 平均合并
- 4 天 12 小时
- 30 天内合并 PR
- 31
描述
** Please make sure you read the contribution guide and file the issues in the right place. **
[Contribution guide.](https://google.github.io/adk-docs/contributing-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 a2aMessageOpt = com.google.adk.a2a.EventConverter.convertEventsToA2AMessage(invocationContext);`
`metadata` is not assigned. Therefore, will the following code always return a null case:
`Map 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:
2.Multiple agents communicate via the A2A protocol, using a synchronous blocking approach.
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。