a2aproject / a2aproject/a2a-java

[Feat]: Callback for completed sendMessage request

未关闭
#310 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
490
派生
172
平均合并
1 天 6 小时
30 天内合并 PR
55

描述

### Is your feature request related to a problem? Please describe.

When I implement the a2a client and send a message/prompt to the remote agent (LLM), then I want to know when my request has been handled completely. With the hello world example server, I get one message event and that is all. In case of streaming I have no reliable way to determine if I should expect further events or if the connection has already been closed.

### Describe the solution you'd like

I just need a reliable event/callback/notification that is triggered when the processing of my request has finalized (completed, failed, connection interrupted...). It could be another consumer that I can add as a third consumer parameter, it could be a new kind of ClientEvent, the sendMessage method could return a CompletableFuture object, there could be a reactive interface using Mono/Flux from Project Reactor...

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。