Skip to content

fix: AgentTool import #1375

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 4 commits into
base: main
Choose a base branch
from
Open

fix: AgentTool import #1375

wants to merge 4 commits into from

Conversation

kubikb
Copy link

@kubikb kubikb commented Jun 13, 2025

Currently, the class AgentTool cannot be imported due to it not being listed in the tools directory's __init__.py file.

The same import pattern that is used for other tools such as FunctionTool (imported using from google.adk.tools import FunctionTool) cannot be used and AgentTool needs to be imported with from google.adk.tools.agent_tool import AgentTool.

The change in this PR includes AgentTool in the listing in src/google/adk/tools/__init__.py, thereby allowing a more standard import with from google.adk.tools import AgentTool, adhering to existing import pattern of another tools.

@kubikb kubikb changed the title Fix AgentTool import fix: AgentTool import Jun 13, 2025
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.

2 participants