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
2 changes: 1 addition & 1 deletion genai/tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
google-genai==1.42.0
google-genai>=1.43.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We typically don't use open ended dependencies like this, as it means we can't verify reproducability if future updates introduce breaking changes.

Versions should be pinned (and pre-emptively bumped to the latest available version since this PR was created):

Suggested change
google-genai>=1.43.0
google-genai==1.45.0

# PIl is required for tools_code_execution_with_txt_img.py
pillow==11.1.0
7 changes: 6 additions & 1 deletion genai/tools/tools_google_search_with_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def generate_content() -> str:
config=GenerateContentConfig(
tools=[
# Use Google Search Tool
Tool(google_search=GoogleSearch())
Tool(
google_search=GoogleSearch(
# Optional: Domains to exclude from results
exclude_domains=["domain.com", "domain2.com"]
)
)
],
),
)
Expand Down