docs: Update to gemini-2.5-flash for api registry and mcp sample agents

Co-authored-by: Kathy Wu <wukathy@google.com>
PiperOrigin-RevId: 859151854
This commit is contained in:
Kathy Wu
2026-01-21 10:06:08 -08:00
committed by Copybara-Service
parent ab89d12834
commit 910f65473f
8 changed files with 8 additions and 8 deletions
@@ -26,7 +26,7 @@ registry_tools = api_registry.get_toolset(
mcp_server_name=MCP_SERVER_NAME,
)
root_agent = LlmAgent(
model="gemini-2.0-flash",
model="gemini-2.5-flash",
name="bigquery_assistant",
instruction=f"""
You are a helpful data analyst assistant with access to BigQuery. The project ID is: {PROJECT_ID}
@@ -18,7 +18,7 @@ from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnecti
from google.adk.tools.mcp_tool.mcp_toolset import McpToolset
root_agent = LlmAgent(
model='gemini-2.0-flash',
model='gemini-2.5-flash',
name='tenant_agent',
instruction="""You are a helpful assistant that helps users get tenant
information. Call the get_tenant_data tool when the user asks for tenant data.""",
@@ -31,7 +31,7 @@ if not POSTGRES_CONNECTION_STRING:
)
root_agent = LlmAgent(
model="gemini-2.0-flash",
model="gemini-2.5-flash",
name="postgres_agent",
instruction=(
"You are a PostgreSQL database assistant. "
@@ -29,7 +29,7 @@ MCP_SERVER_URL = "https://test.sandbox.googleapis.com/mcp"
SCOPES = {"https://www.googleapis.com/auth/cloud-platform": ""}
root_agent = LlmAgent(
model="gemini-2.0-flash",
model="gemini-2.5-flash",
name="enterprise_assistant",
instruction="""
Help the user with the tools available to you.
+1 -1
View File
@@ -28,7 +28,7 @@ connection_params = SseConnectionParams(
)
root_agent = LlmAgent(
model='gemini-2.0-flash',
model='gemini-2.5-flash',
name='enterprise_assistant',
instruction=McpInstructionProvider(
connection_params=connection_params,
@@ -29,7 +29,7 @@ NOTION_HEADERS = json.dumps({
})
root_agent = LlmAgent(
model="gemini-2.0-flash",
model="gemini-2.5-flash",
name="notion_agent",
instruction=(
"You are my workspace assistant. "
@@ -23,7 +23,7 @@ from mcp import StdioServerParameters
_allowed_path = os.path.dirname(os.path.abspath(__file__))
root_agent = LlmAgent(
model='gemini-2.0-flash',
model='gemini-2.5-flash',
name='enterprise_assistant',
instruction=f"""\
Help user accessing their file systems.
@@ -22,7 +22,7 @@ from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
_allowed_path = os.path.dirname(os.path.abspath(__file__))
root_agent = LlmAgent(
model='gemini-2.0-flash',
model='gemini-2.5-flash',
name='enterprise_assistant',
instruction=f"""\
Help user accessing their file systems.