-
Notifications
You must be signed in to change notification settings - Fork 2.7k
refactor(tools): Update ToolboxToolset to wrap toolbox-adk
#3888
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?
Conversation
Summary of ChangesHello @anubhav756, 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 refactors the 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
|
|
Response from ADK Triaging Agent Hello @anubhav756, thank you for creating this PR! To help reviewers evaluate your contribution, could you please provide the following information as outlined in our contribution guidelines?
This information will help reviewers to review your PR more efficiently. Thanks! |
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 refactors the ToolboxToolset to act as a wrapper around the new toolbox-adk package. This is a good architectural change to delegate functionality to a specialized library. My review focuses on ensuring the wrapper is implemented cleanly and maintains its previous contract where appropriate. I've identified a few areas for improvement: removing verbose development comments, improving type hints for better static analysis, and re-introducing a validation check that was removed during the refactoring.
58fdb71 to
ca073ee
Compare
e864dff to
cddc1b0
Compare
cddc1b0 to
b77934b
Compare
ToolboxToolset to wrap toolbox-adk
Removes verbose comments, improves type hints (dict -> Mapping), and restores validation check for toolset/tool names.
Adds 'from __future__ import annotations' and fixes Pyink formatting validation errors (docstring Indentation, trailing comma, line wrapping).
Uses TYPE_CHECKING import to reference toolset_adk.CredentialConfig for the credentials parameter, improving static analysis without adding runtime dependencies.
83d138c to
8619dca
Compare
Link to Issue or Description of Change
2. Or, if no issue exists, describe the change:
Problem:
The
ToolboxToolsetwas implemented directly withinadk-python, leading to code duplication and potential drift from the coretoolbox-adkimplementation.Solution:
Refactored
ToolboxToolsetto act as a rigorous wrapper around thetoolbox-adkpackage, which delegates all functionality totoolbox_adk.ToolboxToolset.Testing Plan
Unit Tests:
Summary:
toolbox-adk.auth_token_gettersare correctly propagated.Manual End-to-End (E2E) Tests:
Manually verified standard toolbox loading and execution with the new wrapper:
Checklist