Skip to content

Fix loading time for google_api_tool_sets #89

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShyamSathish005
Copy link

Fixes #87

Modify the tool loading process to load only the specified tool's swagger document.

  • Remove the initialization of all tools in src/google/adk/tools/google_api_tool/google_api_tool_sets.py.
  • Add a function load_tool_set to load a specific tool by name in src/google/adk/tools/google_api_tool/google_api_tool_sets.py.
  • Modify the GoogleApiToolSet.load_tool_set method in src/google/adk/tools/google_api_tool/google_api_tool_set.py to accept a tool name parameter and load the swagger document only for the specified tool.

Fixes google#87

Modify the tool loading process to load only the specified tool's swagger document.

* Remove the initialization of all tools in `src/google/adk/tools/google_api_tool/google_api_tool_sets.py`.
* Add a function `load_tool_set` to load a specific tool by name in `src/google/adk/tools/google_api_tool/google_api_tool_sets.py`.
* Modify the `GoogleApiToolSet.load_tool_set` method in `src/google/adk/tools/google_api_tool/google_api_tool_set.py` to accept a tool name parameter and load the swagger document only for the specified tool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take a long time when loading google.adk.tools.google_api_tool.google_api_tool_sets tools
1 participant