@@ -249,6 +249,55 @@ class InstrumentEnum(Enum):
249249 ),
250250 ),
251251 ),
252+ pytest_helper .TestTableItem (
253+ name = 'test_google_search_tool_with_exclude_domains' ,
254+ parameters = types ._GenerateContentParameters (
255+ model = 'gemini-2.5-flash' ,
256+ contents = t .t_contents ('Why is the sky blue?' ),
257+ config = types .GenerateContentConfig (
258+ tools = [
259+ types .Tool (
260+ google_search = types .GoogleSearch (
261+ exclude_domains = ['amazon.com' , 'facebook.com' ]
262+ )
263+ )
264+ ]
265+ ),
266+ ),
267+ exception_if_mldev = 'not supported in' ,
268+ ),
269+ pytest_helper .TestTableItem (
270+ name = 'test_enterprise_web_search_tool' ,
271+ parameters = types ._GenerateContentParameters (
272+ model = 'gemini-2.5-flash' ,
273+ contents = t .t_contents ('Why is the sky blue?' ),
274+ config = types .GenerateContentConfig (
275+ tools = [
276+ types .Tool (
277+ enterprise_web_search = types .EnterpriseWebSearch ()
278+ )
279+ ]
280+ ),
281+ ),
282+ exception_if_mldev = 'not supported in' ,
283+ ),
284+ pytest_helper .TestTableItem (
285+ name = 'test_enterprise_web_search_tool_with_exclude_domains' ,
286+ parameters = types ._GenerateContentParameters (
287+ model = 'gemini-2.5-flash' ,
288+ contents = t .t_contents ('Why is the sky blue?' ),
289+ config = types .GenerateContentConfig (
290+ tools = [
291+ types .Tool (
292+ enterprise_web_search = types .EnterpriseWebSearch (
293+ exclude_domains = ['amazon.com' , 'facebook.com' ]
294+ )
295+ )
296+ ]
297+ ),
298+ ),
299+ exception_if_mldev = 'not supported in' ,
300+ ),
252301 pytest_helper .TestTableItem (
253302 name = 'test_speech_with_config' ,
254303 parameters = types ._GenerateContentParameters (
0 commit comments