Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/google/adk/agents/common_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class AgentRefConfig(BaseModel):
my_custom_agent = LlmAgent(
name="my_custom_agent",
instruction="You are a helpful custom agent.",
model="gemini-2.0-flash",
model="gemini-2.5-flash",
)
```

Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/config_schemas/AgentConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,7 @@
}
],
"default": null,
"description": "Optional. LlmAgent.model. Provide a model name string (e.g. \"gemini-2.0-flash\"). If not set, the model will be inherited from the ancestor or fall back to the system default (gemini-2.5-flash unless overridden via LlmAgent.set_default_model). To construct a model instance from code, use model_code.",
"description": "Optional. LlmAgent.model. Provide a model name string (e.g. \"gemini-2.5-flash\"). If not set, the model will be inherited from the ancestor or fall back to the system default (gemini-2.5-flash unless overridden via LlmAgent.set_default_model). To construct a model instance from code, use model_code.",
"title": "Model"
},
"instruction": {
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/agents/llm_agent_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LlmAgentConfig(BaseAgentConfig):
default=None,
description=(
'Optional. LlmAgent.model. Provide a model name string (e.g.'
' "gemini-2.0-flash"). If not set, the model will be inherited from'
' "gemini-2.5-flash"). If not set, the model will be inherited from'
' the ancestor or fall back to the system default (gemini-2.5-flash'
' unless overridden via LlmAgent.set_default_model). To construct a'
' model instance from code, use model_code.'
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/tools/mcp_tool/mcp_toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class McpToolset(BaseToolset):

# Use in an agent
agent = LlmAgent(
model='gemini-2.0-flash',
model='gemini-2.5-flash',
name='enterprise_assistant',
instruction='Help user accessing their file systems',
tools=[toolset],
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/utils/instructions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def build_instruction(
)

agent = Agent(
model="gemini-2.0-flash",
model="gemini-2.5-flash",
name="agent",
instruction=build_instruction,
)
Expand Down
2 changes: 1 addition & 1 deletion src/google/adk/utils/model_name_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def extract_model_name(model_string: str) -> str:

Args:
model_string: Either a simple model name like "gemini-2.5-pro" or a
path-based model name like "projects/.../models/gemini-2.0-flash-001"
path-based model name like "projects/.../models/gemini-2.5-flash"

Returns:
The extracted model name (e.g., "gemini-2.5-pro")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get_user_id_from_cookie() -> str:


root_agent = Agent(
model="gemini-2.0-flash-001",
model="gemini-2.5-flash",
name="Ecommerce_Customer_Service",
instruction="""
You are an intelligent customer service assistant for an e-commerce platform. Your goal is to accurately understand user queries and use the appropriate tools to fulfill requests. Follow these guidelines:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/fixture/hello_world_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def check_prime(nums: list[int]) -> list[str]:


root_agent = Agent(
model='gemini-2.0-flash-001',
model='gemini-2.5-flash',
name='data_processing_agent',
instruction="""
You roll dice and answer questions about the outcome of the dice rolls.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/fixture/hello_world_agent_async/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def get_agent_async() -> (
):
"""Returns the root agent."""
root_agent = Agent(
model='gemini-2.0-flash-001',
model='gemini-2.5-flash',
name='data_processing_agent',
instruction="""
You roll dice and answer questions about the outcome of the dice rolls.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/fixture/home_automation_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def list_devices(status: str = "", location: str = "") -> list:


root_agent = Agent(
model="gemini-2.0-flash-001",
model="gemini-2.5-flash",
name="Home_automation_agent",
instruction="""
You are Home Automation Agent. You are responsible for controlling the devices in the home.
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/fixture/trip_planner_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
)

root_agent = Agent(
model='gemini-2.0-flash-001',
model='gemini-2.5-flash',
name='trip_planner',
description='Plan the best trip ever',
instruction="""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
_COLLECTION = "default_collection"
_DATA_STORE_ID = f"adk-grounding-test-{uuid.uuid4().hex[:8]}"
_DATA_STORE_DISPLAY_NAME = "ADK Grounding Integration Test"
_MODEL = "gemini-2.0-flash"
_MODEL = "gemini-2.5-flash"

_TEST_DOCUMENTS = (
{
Expand Down
Loading