@@ -247,6 +247,9 @@ def extract(
247247 """
248248 Extracts relevant content from specific web URLs.
249249
250+ The legacy Extract API reference is available
251+ [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract).
252+
250253 Args:
251254 urls: URLs to extract content from. Up to 20 URLs.
252255
@@ -258,9 +261,7 @@ def extract(
258261 client_model: The model generating this request and consuming the results. Enables
259262 optimizations and tailors default settings for the model's capabilities.
260263
261- max_chars_total: Upper bound on total characters across excerpts from all extracted results. Does
262- not affect full_content if requested. Default is dynamic based on urls,
263- objective, and client_model.
264+ max_chars_total: Upper bound on total characters across excerpts from all extracted results.
264265
265266 objective: As in SearchRequest, a natural-language description of the underlying question
266267 or goal driving the request. Used together with search_queries to focus excerpts
@@ -269,9 +270,9 @@ def extract(
269270 search_queries: Optional keyword search queries, as in SearchRequest. Used together with
270271 objective to focus excerpts on the most relevant content.
271272
272- session_id: Session identifier for calls to search and extract made by an agent as part of a
273- larger task. May be a user-generated random string, e.g. a uuid, or a session_id
274- returned by a previous request .
273+ session_id: Session identifier to track calls across separate search and extract calls, to
274+ be used as part of a larger task. Specifying it may give better contextual
275+ results for subsequent API calls .
275276
276277 extra_headers: Send extra headers
277278
@@ -308,7 +309,7 @@ def search(
308309 advanced_settings : Optional [AdvancedSearchSettingsParam ] | Omit = omit ,
309310 client_model : Optional [str ] | Omit = omit ,
310311 max_chars_total : Optional [int ] | Omit = omit ,
311- mode : Optional [Literal ["basic" , "standard " ]] | Omit = omit ,
312+ mode : Optional [Literal ["basic" , "advanced " ]] | Omit = omit ,
312313 objective : Optional [str ] | Omit = omit ,
313314 session_id : Optional [str ] | Omit = omit ,
314315 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -321,6 +322,9 @@ def search(
321322 """
322323 Searches the web.
323324
325+ The legacy Search API reference is available
326+ [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search).
327+
324328 Args:
325329 search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,
326330 provide 2-3 for best results. Used together with objective to focus results on
@@ -334,22 +338,21 @@ def search(
334338 client_model: The model generating this request and consuming the results. Enables
335339 optimizations and tailors default settings for the model's capabilities.
336340
337- max_chars_total: Upper bound on total characters across excerpts from all results. Default is
338- dynamic based on search_queries, objective, and client_model.
341+ max_chars_total: Upper bound on total characters across excerpts from all results.
339342
340- mode: Search mode preset: supported values are basic and standard . Basic mode offers
341- the lowest latency and works best with 2-3 high-quality search_queries. Standard
342- mode provides higher quality with more advanced retrieval and compression.
343- Defaults to standard when omitted.
343+ mode: Search mode preset: supported values are ` basic` and `advanced` . Basic mode
344+ offers the lowest latency and works best with 2-3 high-quality search_queries.
345+ Advanced mode provides higher quality with more advanced retrieval and
346+ compression. Defaults to `advanced` when omitted.
344347
345348 objective: Natural-language description of the underlying question or goal driving the
346349 search. Used together with search_queries to focus results on the most relevant
347350 content. Should be self-contained with enough context to understand the intent
348351 of the search.
349352
350- session_id: Session identifier for calls to search and extract made by an agent as part of a
351- larger task. May be a user-generated random string, e.g. a uuid, or a session_id
352- returned by a previous request .
353+ session_id: Session identifier to track calls across separate search and extract calls, to
354+ be used as part of a larger task. Specifying it may give better contextual
355+ results for subsequent API calls .
353356
354357 extra_headers: Send extra headers
355358
@@ -591,6 +594,9 @@ async def extract(
591594 """
592595 Extracts relevant content from specific web URLs.
593596
597+ The legacy Extract API reference is available
598+ [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract).
599+
594600 Args:
595601 urls: URLs to extract content from. Up to 20 URLs.
596602
@@ -602,9 +608,7 @@ async def extract(
602608 client_model: The model generating this request and consuming the results. Enables
603609 optimizations and tailors default settings for the model's capabilities.
604610
605- max_chars_total: Upper bound on total characters across excerpts from all extracted results. Does
606- not affect full_content if requested. Default is dynamic based on urls,
607- objective, and client_model.
611+ max_chars_total: Upper bound on total characters across excerpts from all extracted results.
608612
609613 objective: As in SearchRequest, a natural-language description of the underlying question
610614 or goal driving the request. Used together with search_queries to focus excerpts
@@ -613,9 +617,9 @@ async def extract(
613617 search_queries: Optional keyword search queries, as in SearchRequest. Used together with
614618 objective to focus excerpts on the most relevant content.
615619
616- session_id: Session identifier for calls to search and extract made by an agent as part of a
617- larger task. May be a user-generated random string, e.g. a uuid, or a session_id
618- returned by a previous request .
620+ session_id: Session identifier to track calls across separate search and extract calls, to
621+ be used as part of a larger task. Specifying it may give better contextual
622+ results for subsequent API calls .
619623
620624 extra_headers: Send extra headers
621625
@@ -652,7 +656,7 @@ async def search(
652656 advanced_settings : Optional [AdvancedSearchSettingsParam ] | Omit = omit ,
653657 client_model : Optional [str ] | Omit = omit ,
654658 max_chars_total : Optional [int ] | Omit = omit ,
655- mode : Optional [Literal ["basic" , "standard " ]] | Omit = omit ,
659+ mode : Optional [Literal ["basic" , "advanced " ]] | Omit = omit ,
656660 objective : Optional [str ] | Omit = omit ,
657661 session_id : Optional [str ] | Omit = omit ,
658662 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -665,6 +669,9 @@ async def search(
665669 """
666670 Searches the web.
667671
672+ The legacy Search API reference is available
673+ [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search).
674+
668675 Args:
669676 search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,
670677 provide 2-3 for best results. Used together with objective to focus results on
@@ -678,22 +685,21 @@ async def search(
678685 client_model: The model generating this request and consuming the results. Enables
679686 optimizations and tailors default settings for the model's capabilities.
680687
681- max_chars_total: Upper bound on total characters across excerpts from all results. Default is
682- dynamic based on search_queries, objective, and client_model.
688+ max_chars_total: Upper bound on total characters across excerpts from all results.
683689
684- mode: Search mode preset: supported values are basic and standard . Basic mode offers
685- the lowest latency and works best with 2-3 high-quality search_queries. Standard
686- mode provides higher quality with more advanced retrieval and compression.
687- Defaults to standard when omitted.
690+ mode: Search mode preset: supported values are ` basic` and `advanced` . Basic mode
691+ offers the lowest latency and works best with 2-3 high-quality search_queries.
692+ Advanced mode provides higher quality with more advanced retrieval and
693+ compression. Defaults to `advanced` when omitted.
688694
689695 objective: Natural-language description of the underlying question or goal driving the
690696 search. Used together with search_queries to focus results on the most relevant
691697 content. Should be self-contained with enough context to understand the intent
692698 of the search.
693699
694- session_id: Session identifier for calls to search and extract made by an agent as part of a
695- larger task. May be a user-generated random string, e.g. a uuid, or a session_id
696- returned by a previous request .
700+ session_id: Session identifier to track calls across separate search and extract calls, to
701+ be used as part of a larger task. Specifying it may give better contextual
702+ results for subsequent API calls .
697703
698704 extra_headers: Send extra headers
699705
0 commit comments