@@ -236,6 +236,7 @@ def extract(
236236 max_chars_total : Optional [int ] | Omit = omit ,
237237 objective : Optional [str ] | Omit = omit ,
238238 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
239+ session_id : Optional [str ] | Omit = omit ,
239240 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
240241 # The extra values given here take precedence over values defined on the client or passed to this method.
241242 extra_headers : Headers | None = None ,
@@ -251,6 +252,9 @@ def extract(
251252
252253 advanced_settings: Advanced extract configuration.
253254
255+ These settings may impact result quality and latency unless used carefully. See
256+ https://docs.parallel.ai/search/advanced-extract-settings for more info.
257+
254258 client_model: The model generating this request and consuming the results. Enables
255259 optimizations and tailors default settings for the model's capabilities.
256260
@@ -265,6 +269,10 @@ def extract(
265269 search_queries: Optional keyword search queries, as in SearchRequest. Used together with
266270 objective to focus excerpts on the most relevant content.
267271
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.
275+
268276 extra_headers: Send extra headers
269277
270278 extra_query: Add additional query parameters to the request
@@ -283,6 +291,7 @@ def extract(
283291 "max_chars_total" : max_chars_total ,
284292 "objective" : objective ,
285293 "search_queries" : search_queries ,
294+ "session_id" : session_id ,
286295 },
287296 client_extract_params .ClientExtractParams ,
288297 ),
@@ -301,6 +310,7 @@ def search(
301310 max_chars_total : Optional [int ] | Omit = omit ,
302311 mode : Optional [Literal ["basic" , "standard" ]] | Omit = omit ,
303312 objective : Optional [str ] | Omit = omit ,
313+ session_id : Optional [str ] | Omit = omit ,
304314 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
305315 # The extra values given here take precedence over values defined on the client or passed to this method.
306316 extra_headers : Headers | None = None ,
@@ -318,6 +328,9 @@ def search(
318328
319329 advanced_settings: Advanced search configuration.
320330
331+ These settings may impact result quality and latency unless used carefully. See
332+ https://docs.parallel.ai/search/advanced-search-settings for more info.
333+
321334 client_model: The model generating this request and consuming the results. Enables
322335 optimizations and tailors default settings for the model's capabilities.
323336
@@ -334,6 +347,10 @@ def search(
334347 content. Should be self-contained with enough context to understand the intent
335348 of the search.
336349
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+
337354 extra_headers: Send extra headers
338355
339356 extra_query: Add additional query parameters to the request
@@ -352,6 +369,7 @@ def search(
352369 "max_chars_total" : max_chars_total ,
353370 "mode" : mode ,
354371 "objective" : objective ,
372+ "session_id" : session_id ,
355373 },
356374 client_search_params .ClientSearchParams ,
357375 ),
@@ -562,6 +580,7 @@ async def extract(
562580 max_chars_total : Optional [int ] | Omit = omit ,
563581 objective : Optional [str ] | Omit = omit ,
564582 search_queries : Optional [SequenceNotStr [str ]] | Omit = omit ,
583+ session_id : Optional [str ] | Omit = omit ,
565584 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
566585 # The extra values given here take precedence over values defined on the client or passed to this method.
567586 extra_headers : Headers | None = None ,
@@ -577,6 +596,9 @@ async def extract(
577596
578597 advanced_settings: Advanced extract configuration.
579598
599+ These settings may impact result quality and latency unless used carefully. See
600+ https://docs.parallel.ai/search/advanced-extract-settings for more info.
601+
580602 client_model: The model generating this request and consuming the results. Enables
581603 optimizations and tailors default settings for the model's capabilities.
582604
@@ -591,6 +613,10 @@ async def extract(
591613 search_queries: Optional keyword search queries, as in SearchRequest. Used together with
592614 objective to focus excerpts on the most relevant content.
593615
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.
619+
594620 extra_headers: Send extra headers
595621
596622 extra_query: Add additional query parameters to the request
@@ -609,6 +635,7 @@ async def extract(
609635 "max_chars_total" : max_chars_total ,
610636 "objective" : objective ,
611637 "search_queries" : search_queries ,
638+ "session_id" : session_id ,
612639 },
613640 client_extract_params .ClientExtractParams ,
614641 ),
@@ -627,6 +654,7 @@ async def search(
627654 max_chars_total : Optional [int ] | Omit = omit ,
628655 mode : Optional [Literal ["basic" , "standard" ]] | Omit = omit ,
629656 objective : Optional [str ] | Omit = omit ,
657+ session_id : Optional [str ] | Omit = omit ,
630658 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
631659 # The extra values given here take precedence over values defined on the client or passed to this method.
632660 extra_headers : Headers | None = None ,
@@ -644,6 +672,9 @@ async def search(
644672
645673 advanced_settings: Advanced search configuration.
646674
675+ These settings may impact result quality and latency unless used carefully. See
676+ https://docs.parallel.ai/search/advanced-search-settings for more info.
677+
647678 client_model: The model generating this request and consuming the results. Enables
648679 optimizations and tailors default settings for the model's capabilities.
649680
@@ -660,6 +691,10 @@ async def search(
660691 content. Should be self-contained with enough context to understand the intent
661692 of the search.
662693
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.
697+
663698 extra_headers: Send extra headers
664699
665700 extra_query: Add additional query parameters to the request
@@ -678,6 +713,7 @@ async def search(
678713 "max_chars_total" : max_chars_total ,
679714 "mode" : mode ,
680715 "objective" : objective ,
716+ "session_id" : session_id ,
681717 },
682718 client_search_params .ClientSearchParams ,
683719 ),
0 commit comments