Skip to content

docs: updated built-in tools to use consistent AgentTool call format across files #510

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 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tools/built-in-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ to use built-in tools with other tools by using multiple agents:
=== "Python"

```py
from google.adk.tools import agent_tool
from google.adk.tools.agent_tool import AgentTool
from google.adk.agents import Agent
from google.adk.tools import google_search
from google.adk.code_executors import BuiltInCodeExecutor
Expand All @@ -123,7 +123,7 @@ to use built-in tools with other tools by using multiple agents:
name="RootAgent",
model="gemini-2.0-flash",
description="Root Agent",
tools=[agent_tool.AgentTool(agent=search_agent), agent_tool.AgentTool(agent=coding_agent)],
tools=[AgentTool(agent=search_agent), AgentTool(agent=coding_agent)],
)
```

Expand Down