@@ -154,6 +154,7 @@ def search(
154154 * ,
155155 excerpts : ExcerptSettingsParam | Omit = omit ,
156156 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
157+ max_chars_per_result : Optional [int ] | Omit = omit ,
157158 max_results : Optional [int ] | Omit = omit ,
158159 mode : Optional [Literal ["one-shot" , "agentic" ]] | Omit = omit ,
159160 objective : Optional [str ] | Omit = omit ,
@@ -182,6 +183,10 @@ def search(
182183 live content (fresher). The default policy for search uses cached results only,
183184 while extract uses a dynamic policy based on the search objective and url.
184185
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.
189+
185190 max_results: Upper bound on the number of results to return. May be limited by the processor.
186191 Defaults to 10 if not provided.
187192
@@ -229,6 +234,7 @@ def search(
229234 {
230235 "excerpts" : excerpts ,
231236 "fetch_policy" : fetch_policy ,
237+ "max_chars_per_result" : max_chars_per_result ,
232238 "max_results" : max_results ,
233239 "mode" : mode ,
234240 "objective" : objective ,
@@ -352,6 +358,7 @@ async def search(
352358 * ,
353359 excerpts : ExcerptSettingsParam | Omit = omit ,
354360 fetch_policy : Optional [FetchPolicyParam ] | Omit = omit ,
361+ max_chars_per_result : Optional [int ] | Omit = omit ,
355362 max_results : Optional [int ] | Omit = omit ,
356363 mode : Optional [Literal ["one-shot" , "agentic" ]] | Omit = omit ,
357364 objective : Optional [str ] | Omit = omit ,
@@ -380,6 +387,10 @@ async def search(
380387 live content (fresher). The default policy for search uses cached results only,
381388 while extract uses a dynamic policy based on the search objective and url.
382389
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+
383394 max_results: Upper bound on the number of results to return. May be limited by the processor.
384395 Defaults to 10 if not provided.
385396
@@ -427,6 +438,7 @@ async def search(
427438 {
428439 "excerpts" : excerpts ,
429440 "fetch_policy" : fetch_policy ,
441+ "max_chars_per_result" : max_chars_per_result ,
430442 "max_results" : max_results ,
431443 "mode" : mode ,
432444 "objective" : objective ,
0 commit comments