Move grounding tool to reusable parent tools dir#24
Merged
Conversation
lotif
approved these changes
Feb 2, 2026
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
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.
This pull request refactors the location and import paths for the Google Search grounding tool and its related utilities, moving them from the
knowledge_agentmodule to a new, reusabletoolspackage. This improves modularity and code organization, making these tools easier to reuse across different agents and tests. All relevant imports and test files have been updated to reflect this new structure.Refactor and modularization of Google Search tool:
grounding_tool.pyfromaieng.agent_evals.knowledge_agenttoaieng.agent_evals.toolsassearch.py, and updated its module docstring to reflect broader applicability.aieng.agent_evals.toolspackage with an__init__.pythat exposesGroundedResponse,GroundingChunk,create_google_search_tool, andformat_response_with_citationsfor easy import.Import and usage updates:
aieng.agent_evals.toolspath instead of the oldknowledge_agent.grounding_toolpath. [1] [2] [3] [4] [5] [6] [7]Test organization:
tests/aieng/agent_evals/tools/test_search.pyto match the new module location and updated test docstrings accordingly.tests/aieng/agent_evals/tools/__init__.pyto initialize the test package.