a2aproject / a2aproject/a2a-python

[Feat]: Support adding new RPC methods to a JSON-RPC server application

オープン
#584 コメント 1 件 リアクション 0 件 担当者 1 名 @lkawka が担当を希望しています GitHub で見る
主要言語
Python
スター
2.1k
フォーク
496
平均マージ
4日 17時間
マージ済み PR(30日)
12

説明

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

The spec for [extensions](https://a2a-protocol.org/latest/topics/extensions) defines 3 types of extensions, the last one is: _"Method Extensions (Extended Skills): Adding entirely new RPC methods beyond the core set defined by the protocol"_
As far as I understand, there is currently no way for enhancing my `A2AStarletteApplication`/`A2AFastAPIApplication` application with new RPC methods. (as they both extends `JSONRPCApplication` and it uses a fixed list of the core RPC methods that cant be extended)

### Describe the solution you'd like

I would like `JSONRPCApplication` to allow its users to hook new JSON-RPC methods.

### Describe alternatives you've considered

I'm considering using the HTTP/REST protocol instead of the JSON-RPC protocol just because its easier to extend with new methods.

### Additional context

_No response_

### Code of Conduct

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。