mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-28 16:58:10 -05:00
Updates all quickstart guides and samples to use the new `toolbox-adk` package instead of the legacy `toolbox-core`. Also updates `ToolboxToolset` usage to rely on the simplified constructor (implicit authentication) and ensures correct dependency installation. > [!NOTE] > The integration tests are failing because the `google-adk` package is not released yet with the newer changes from `toolbox-adk`. This is expected behavior until the [package update](cl/853799009) is released.
18 lines
508 B
Python
18 lines
508 B
Python
from google.adk import Agent
|
|
from google.adk.apps import App
|
|
from google.adk.tools.toolbox_toolset import ToolboxToolset
|
|
|
|
# TODO(developer): update the TOOLBOX_URL to your toolbox endpoint
|
|
toolset = ToolboxToolset(
|
|
server_url="http://127.0.0.1:5000",
|
|
)
|
|
|
|
root_agent = Agent(
|
|
name='root_agent',
|
|
model='gemini-2.5-flash',
|
|
instruction="You are a helpful AI assistant designed to provide accurate and useful information.",
|
|
tools=[toolset],
|
|
)
|
|
|
|
app = App(root_agent=root_agent, name="my_agent")
|