Skip to content

Commit 134524a

Browse files
committed
remove gemma for pin adk
1 parent e66d473 commit 134524a

2 files changed

Lines changed: 32 additions & 4 deletions

File tree

kaggle_requirements.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ fury
3333
fuzzywuzzy
3434
geojson
3535
gensim
36-
gemma
3736
# b/443054743,b/455550872
38-
google-adk[a2a,eval]
37+
google-adk[a2a,eval]>=1.21.0
3938
google-cloud-aiplatform
4039
google-cloud-videointelligence
4140
google-cloud-vision
@@ -60,8 +59,6 @@ jupyterlab-lsp
6059
# Colab base image is updated more frequently.
6160
kaggle>=1.7.4.2
6261
kaggle-environments
63-
# Lastest version to support Gemma
64-
kauldron>=1.3.0
6562
keras-cv
6663
keras-nlp
6764
keras-tuner

tests/test_google_adk.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import unittest
2+
3+
# Marked as "necessary building blocks" for 5 Days of AI notebooks
4+
from google.adk.agents import Agent
5+
from google.adk.models.google_llm import Gemini
6+
from google.adk.runners import InMemoryRunner
7+
from google.adk.tools import google_search
8+
from google.genai import types
9+
10+
class TestGoogleADK(unittest.TestCase):
11+
12+
# From "Day 1a - From Prompt to Action"
13+
def test_define_agent(self):
14+
15+
retry_config = types.HttpRetryOptions(
16+
attempts=5, # Maximum retry attempts
17+
exp_base=7, # Delay multiplier
18+
initial_delay=1, # Initial delay before first retry (in seconds)
19+
http_status_codes=[429, 500, 503, 504] # Retry on these HTTP errors
20+
)
21+
22+
root_agent = Agent(
23+
name="helpful_assistant",
24+
model=Gemini(
25+
model="gemini-2.5-flash-lite",
26+
retry_options=retry_config
27+
),
28+
description="A simple agent that can answer general questions.",
29+
instruction="You are a helpful assistant. Use Google Search for current info or if unsure.",
30+
tools=[google_search],
31+
)

0 commit comments

Comments
 (0)