-
Notifications
You must be signed in to change notification settings - Fork 109
feat: Add an optional tenant parameter to the getExtendedAgentCard operation #610
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
base: main
Are you sure you want to change the base?
feat: Add an optional tenant parameter to the getExtendedAgentCard operation #610
Conversation
Summary of ChangesHello @jmesnil, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces an optional Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces an optional tenant parameter to the getExtendedAgentCard operation, addressing issue #608. The changes involve creating a new GetExtendedAgentCardParams record, updating the ClientTransport interface, modifying AbstractClient with new overloads, and updating the implementations in Client, GrpcTransport, JSONRPCTransport, and RestTransport to handle the new parameter. The ProtoUtils class was also updated for gRPC mapping, and a test case was adjusted. Overall, the implementation is correct and aligns with the feature request. The Javadoc comments provided address minor formatting and consistency issues.
|
@kabir @ehsavoie I've followed the same patterns than the other operations to take into account the optional |
c1d5719 to
62b73a8
Compare
|
@jmesnil afaik for grpc the tenant is a parameter https://github.com/a2aproject/A2A/blob/92e6fb712ebeddd732a0a124b95d5ff8db4e0d41/specification/grpc/a2a.proto#L849 |
|
ok I see. For gRPC, tenant is just a parameter (as opposed to JSON-RPC & REST where the tenant is put into the endpoint URL). |
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request successfully adds an optional tenant parameter to the getExtendedAgentCard operation across the client and transport layers. The changes introduce new overloaded methods in AbstractClient and Client for convenience, and update the ClientTransport interface and its implementations (GrpcTransport, JSONRPCTransport, RestTransport) to propagate and utilize this new parameter. A new record GetExtendedAgentCardParams is also introduced to encapsulate the parameters for this operation. There is a maintainability concern regarding the JSONRPCTransport and RestTransport implementations, as they unnecessarily depend on gRPC-specific types, which should be addressed to improve modularity and separation of concerns.
client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/JSONRPCTransport.java
Outdated
Show resolved
Hide resolved
client/transport/rest/src/main/java/io/a2a/client/transport/rest/RestTransport.java
Outdated
Show resolved
Hide resolved
…eration this fixes a2aproject#608 Signed-off-by: Jeff Mesnil <jmesnil@ibm.com>
62b73a8 to
ece7f10
Compare
Fixes #608 🦕