diff --git a/genai/tools/tools_google_search_with_txt.go b/genai/tools/tools_google_search_with_txt.go index 5160e120d9..74bfa1199a 100644 --- a/genai/tools/tools_google_search_with_txt.go +++ b/genai/tools/tools_google_search_with_txt.go @@ -44,7 +44,7 @@ func generateWithGoogleSearch(w io.Writer) error { } config := &genai.GenerateContentConfig{ Tools: []*genai.Tool{ - {GoogleSearch: &genai.GoogleSearch{}}, + {GoogleSearch: &genai.GoogleSearch{ExcludeDomains: []string{"example.com", "example.org"}}}, }, }