a2aproject / a2aproject/A2A

[Feat]: Support publish/subscribe methods for async communications

オープン
#1,029 コメント 26 件 リアクション 15 件 担当者 0 名 GitHub で見る
triaged TSC Review
主要言語
Shell
スター
25.7k
フォーク
2.6k
平均マージ
3日 6時間
マージ済み PR(30日)
16

説明

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

Current A2A RPC methods are point-to-point methods, which requires that the caller must know about the corresponding callee. However, In some scenarios, this kind of method will be difficult to apply:
1. as time goes on, the amount of agents is likely to increase drastically, and it will be difficult for agents to perceive all newly added agents and manage all these connections.
2. For stateful tasks, temporary network outages or service failures will lead to task failures or data loss.
3. In scenarios involving a large number of long-duration tasks, these methods may lead to performance bottlenecks for both the caller and the callee.

### Describe the solution you'd like

Add Support for publish/subscribe methods:
When an agent has a task that requires async processing and does not care about which specific agent actually handles it, the agent can publish the task via the publish method, and subscribe to the task processing result via the subscribe method, then handle the result when it is idle.
The publish and subscribe methods can be implemented through message queues.

### 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 を短くまとめたダイジェスト。