@@ -121,6 +121,7 @@ def extract(
121121 self ,
122122 * ,
123123 urls : SequenceNotStr [str ],
124+ client_model : Optional [str ] | Omit = omit ,
124125 excerpts : beta_extract_params .Excerpts | Omit = omit ,
125126 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
126127 full_content : beta_extract_params .FullContent | Omit = omit ,
@@ -142,6 +143,9 @@ def extract(
142143 `search-extract-2025-10-10`.
143144
144145 Args:
146+ client_model: The model generating this request and consuming the results. Enables
147+ optimizations and tailors default settings for the model's capabilities.
148+
145149 excerpts: Include excerpts from each URL relevant to the search objective and queries.
146150 Note that if neither objective nor search_queries is provided, excerpts are
147151 redundant with full content.
@@ -185,6 +189,7 @@ def extract(
185189 body = maybe_transform (
186190 {
187191 "urls" : urls ,
192+ "client_model" : client_model ,
188193 "excerpts" : excerpts ,
189194 "fetch_policy" : fetch_policy ,
190195 "full_content" : full_content ,
@@ -206,6 +211,7 @@ def extract(
206211 def search (
207212 self ,
208213 * ,
214+ client_model : Optional [str ] | Omit = omit ,
209215 excerpts : ExcerptSettingsParam | Omit = omit ,
210216 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
211217 location : Optional [str ] | Omit = omit ,
@@ -229,6 +235,9 @@ def search(
229235 Searches the web.
230236
231237 Args:
238+ client_model: The model generating this request and consuming the results. Enables
239+ optimizations and tailors default settings for the model's capabilities.
240+
232241 excerpts: Optional settings to configure excerpt generation.
233242
234243 fetch_policy: Policy for live fetching web results.
@@ -291,6 +300,7 @@ def search(
291300 "/v1beta/search" ,
292301 body = maybe_transform (
293302 {
303+ "client_model" : client_model ,
294304 "excerpts" : excerpts ,
295305 "fetch_policy" : fetch_policy ,
296306 "location" : location ,
@@ -378,6 +388,7 @@ async def extract(
378388 self ,
379389 * ,
380390 urls : SequenceNotStr [str ],
391+ client_model : Optional [str ] | Omit = omit ,
381392 excerpts : beta_extract_params .Excerpts | Omit = omit ,
382393 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
383394 full_content : beta_extract_params .FullContent | Omit = omit ,
@@ -399,6 +410,9 @@ async def extract(
399410 `search-extract-2025-10-10`.
400411
401412 Args:
413+ client_model: The model generating this request and consuming the results. Enables
414+ optimizations and tailors default settings for the model's capabilities.
415+
402416 excerpts: Include excerpts from each URL relevant to the search objective and queries.
403417 Note that if neither objective nor search_queries is provided, excerpts are
404418 redundant with full content.
@@ -442,6 +456,7 @@ async def extract(
442456 body = await async_maybe_transform (
443457 {
444458 "urls" : urls ,
459+ "client_model" : client_model ,
445460 "excerpts" : excerpts ,
446461 "fetch_policy" : fetch_policy ,
447462 "full_content" : full_content ,
@@ -463,6 +478,7 @@ async def extract(
463478 async def search (
464479 self ,
465480 * ,
481+ client_model : Optional [str ] | Omit = omit ,
466482 excerpts : ExcerptSettingsParam | Omit = omit ,
467483 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
468484 location : Optional [str ] | Omit = omit ,
@@ -486,6 +502,9 @@ async def search(
486502 Searches the web.
487503
488504 Args:
505+ client_model: The model generating this request and consuming the results. Enables
506+ optimizations and tailors default settings for the model's capabilities.
507+
489508 excerpts: Optional settings to configure excerpt generation.
490509
491510 fetch_policy: Policy for live fetching web results.
@@ -548,6 +567,7 @@ async def search(
548567 "/v1beta/search" ,
549568 body = await async_maybe_transform (
550569 {
570+ "client_model" : client_model ,
551571 "excerpts" : excerpts ,
552572 "fetch_policy" : fetch_policy ,
553573 "location" : location ,
0 commit comments