@@ -158,6 +158,7 @@ def search(
158158 max_results : Optional [int ] | Omit = omit ,
159159 mode : Optional [Literal ["one-shot" , "agentic" ]] | Omit = omit ,
160160 objective : Optional [str ] | Omit = omit ,
161+ processor : Optional [Literal ["base" , "pro" ]] | Omit = omit ,
161162 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
162163 source_policy : Optional [SourcePolicy ] | Omit = omit ,
163164 betas : List [ParallelBetaParam ] | Omit = omit ,
@@ -183,9 +184,7 @@ def search(
183184 live content (fresher). The default policy for search uses cached results only,
184185 while extract uses a dynamic policy based on the search objective and url.
185186
186- max_chars_per_result: Optional upper bound on the total number of characters to include per url.
187- Excerpts may contain fewer characters than this limit to maximize relevance and
188- token efficiency.
187+ max_chars_per_result: DEPRECATED - Use excerpts.max_chars_per_result.
189188
190189 max_results: Upper bound on the number of results to return. May be limited by the processor.
191190 Defaults to 10 if not provided.
@@ -199,6 +198,8 @@ def search(
199198 include guidance about preferred sources or freshness. At least one of objective
200199 or search_queries must be provided.
201200
201+ processor: DEPRECATED - Use mode.
202+
202203 search_queries: Optional list of traditional keyword search queries to guide the search. May
203204 contain search operators. At least one of objective or search_queries must be
204205 provided.
@@ -238,6 +239,7 @@ def search(
238239 "max_results" : max_results ,
239240 "mode" : mode ,
240241 "objective" : objective ,
242+ "processor" : processor ,
241243 "search_queries" : search_queries ,
242244 "source_policy" : source_policy ,
243245 },
@@ -362,6 +364,7 @@ async def search(
362364 max_results : Optional [int ] | Omit = omit ,
363365 mode : Optional [Literal ["one-shot" , "agentic" ]] | Omit = omit ,
364366 objective : Optional [str ] | Omit = omit ,
367+ processor : Optional [Literal ["base" , "pro" ]] | Omit = omit ,
365368 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
366369 source_policy : Optional [SourcePolicy ] | Omit = omit ,
367370 betas : List [ParallelBetaParam ] | Omit = omit ,
@@ -387,9 +390,7 @@ async def search(
387390 live content (fresher). The default policy for search uses cached results only,
388391 while extract uses a dynamic policy based on the search objective and url.
389392
390- max_chars_per_result: Optional upper bound on the total number of characters to include per url.
391- Excerpts may contain fewer characters than this limit to maximize relevance and
392- token efficiency.
393+ max_chars_per_result: DEPRECATED - Use excerpts.max_chars_per_result.
393394
394395 max_results: Upper bound on the number of results to return. May be limited by the processor.
395396 Defaults to 10 if not provided.
@@ -403,6 +404,8 @@ async def search(
403404 include guidance about preferred sources or freshness. At least one of objective
404405 or search_queries must be provided.
405406
407+ processor: DEPRECATED - Use mode.
408+
406409 search_queries: Optional list of traditional keyword search queries to guide the search. May
407410 contain search operators. At least one of objective or search_queries must be
408411 provided.
@@ -442,6 +445,7 @@ async def search(
442445 "max_results" : max_results ,
443446 "mode" : mode ,
444447 "objective" : objective ,
448+ "processor" : processor ,
445449 "search_queries" : search_queries ,
446450 "source_policy" : source_policy ,
447451 },
0 commit comments