Skip to content
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
19 changes: 8 additions & 11 deletions docs/tools/google-cloud/mcp-toolbox-for-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ documentation:

=== "Python"

ADK relies on the `toolbox-core` python package to use Toolbox. Install the
ADK relies on the `toolbox-adk` python package to use Toolbox. Install the
package before getting started:

```shell
pip install toolbox-core
pip install toolbox-adk
```

### Loading Toolbox Tools
Expand All @@ -97,19 +97,16 @@ documentation:

```python
from google.adk.agents import Agent
from toolbox_core import ToolboxSyncClient
from google.adk.tools.toolbox_toolset import ToolboxToolset

toolbox = ToolboxSyncClient("https://127.0.0.1:5000")

# Load a specific set of tools
tools = toolbox.load_toolset('my-toolset-name'),
# Load single tool
tools = toolbox.load_tool('my-tool-name'),
toolset = ToolboxToolset(
server_url="http://127.0.0.1:5000",
toolset_name="my-toolset-name"
)

root_agent = Agent(
...,
tools=tools # Provide the list of tools to the Agent

tools=[toolset] # Provide the toolset to the Agent
)
```

Expand Down
Loading