-
Notifications
You must be signed in to change notification settings - Fork 325
feat: Add gRPC server and client support #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add case statement to use the asyncio.Queue.shutdown method for 3.13+ - add special handling to allow for similar semantics as asyncio.Queue.shutdown for 3.12 Tested on multiple samples in the a2a repo and some examples in this repo
- Introduces an A2AGrpcClient to talk to server over grpc - Introduces GrpcHandler to tranlate the gRPC transport to the internal python data model and back. - A set of transform operations in proto_utils.py to handle the transform This is a starting point and can be iterated and optimized as we move forward, especially trying to automate the transform code so it stays in sync.
- add case statement to use the asyncio.Queue.shutdown method for 3.13+ - add special handling to allow for similar semantics as asyncio.Queue.shutdown for 3.12 Tested on multiple samples in the a2a repo and some examples in this repo
- Introduces an A2AGrpcClient to talk to server over grpc - Introduces GrpcHandler to tranlate the gRPC transport to the internal python data model and back. - A set of transform operations in proto_utils.py to handle the transform This is a starting point and can be iterated and optimized as we move forward, especially trying to automate the transform code so it stays in sync.
Member
|
On the spelling errors, there's a few spots where the docstring splits lines in the middle of a word. |
Member
|
Finally figured out how to get the linter to ignore the auto-generated pb2 files. Everything else should be valid. We can also exclude the remaining errors if those files are auto-generated. |
holtskinner
approved these changes
Jun 6, 2025
kthota-g
approved these changes
Jun 6, 2025
holtskinner
pushed a commit
that referenced
this pull request
Jun 9, 2025
🤖 I have created a release *beep* *boop* --- ## [0.2.6](v0.2.5...v0.2.6) (2025-06-09) ### ⚠ BREAKING CHANGES * Add FastAPI JSONRPC Application ([#104](#104)) ### Features * Add FastAPI JSONRPC Application ([#104](#104)) ([0e66e1f](0e66e1f)) * Add gRPC server and client support ([#162](#162)) ([a981605](a981605)) * add reject method to task_updater ([#147](#147)) ([2a6ef10](2a6ef10)) * Add timestamp to `TaskStatus` updates on `TaskUpdater` ([#140](#140)) ([0c9df12](0c9df12)) * **spec:** Add an optional iconUrl field to the AgentCard 🤖 ([a1025f4](a1025f4)) ### Bug Fixes * Correctly adapt starlette BaseUser to A2A User ([#133](#133)) ([88d45eb](88d45eb)) * Event consumer should stop on input_required ([#167](#167)) ([51c2d8a](51c2d8a)) * Fix Release Version ([#161](#161)) ([011d632](011d632)) * generate StrEnum types for enums ([#134](#134)) ([0c49dab](0c49dab)) * library should released as 0.2.6 ([d8187e8](d8187e8)) * remove error types from enqueable events ([#138](#138)) ([511992f](511992f)) * **stream:** don't block event loop in EventQueue ([#151](#151)) ([efd9080](efd9080)) * **task_updater:** fix potential duplicate artifact_id from default v… ([#156](#156)) ([1f0a769](1f0a769)) ### Documentation * remove final and metadata fields from docstring ([#66](#66)) ([3c50ee1](3c50ee1)) * Update Links to Documentation Site ([5e7d418](5e7d418)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduces gRPC support at the server and client interfaces.