You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
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:
committed by
Copybara-Service
parent
ab89d12834
commit
910f65473f
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user