Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
```
Expand Down
6 changes: 6 additions & 0 deletions contributing/samples/core/quickstart/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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."
),
Expand Down
Loading