diff --git a/README.md b/README.md index 4a26756e09..faf377913d 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,15 @@ The release cadence is roughly bi-weekly. ```python from google.adk import Agent +from google.adk.models import Gemini +from google.genai import types root_agent = Agent( name="greeting_agent", - model="gemini-2.5-flash", + model=Gemini( + model="gemini-2.5-flash", + retry_options=types.HttpRetryOptions(initial_delay=1, attempts=3), + ), instruction="You are a helpful assistant. Greet the user warmly.", ) ``` diff --git a/contributing/samples/core/quickstart/agent.py b/contributing/samples/core/quickstart/agent.py index 8042d0f25f..7567f66e9b 100644 --- a/contributing/samples/core/quickstart/agent.py +++ b/contributing/samples/core/quickstart/agent.py @@ -13,6 +13,8 @@ # limitations under the License. from google.adk.agents.llm_agent import Agent +from google.adk.models import Gemini +from google.genai import types def get_weather(city: str) -> dict: @@ -80,6 +82,10 @@ def get_current_time(city: str) -> dict: root_agent = Agent( name="weather_time_agent", + model=Gemini( + model="gemini-2.5-flash", + retry_options=types.HttpRetryOptions(initial_delay=1, attempts=3), + ), description=( "Agent to answer questions about the time and weather in a city." ),