Skip to content

Commit f399080

Browse files
feat(api): 1.0.0 changes
1 parent 61846a0 commit f399080

11 files changed

Lines changed: 264 additions & 258 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web/parallel-sdk-74b1570d9fd4b863fed090a7a33510e2a3d46d93a05346761f9e1bbf8b93361d.yml
3-
openapi_spec_hash: c4fc5b0cb3bc48076f736a0ad2b2e75e
4-
config_hash: a3dc5e363f6fdf4c7776c12c14ba5fd1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web/parallel-sdk-b75d2ee61354baf0a6b3cda6f5c5227b916ed1248966929ccc857473cd7951e5.yml
3+
openapi_spec_hash: 0968cb17e173adb9f82c4037311116b4
4+
config_hash: 563559bbf3ddda532d629e8620790846

src/parallel/_client.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def search(
355355
advanced_settings: Optional[AdvancedSearchSettingsParam] | Omit = omit,
356356
client_model: Optional[str] | Omit = omit,
357357
max_chars_total: Optional[int] | Omit = omit,
358-
mode: Optional[Literal["basic", "advanced"]] | Omit = omit,
358+
mode: Optional[Literal["basic", "advanced", "turbo"]] | Omit = omit,
359359
objective: Optional[str] | Omit = omit,
360360
session_id: Optional[str] | Omit = omit,
361361
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -388,10 +388,11 @@ def search(
388388
389389
max_chars_total: Upper bound on total characters across excerpts from all results.
390390
391-
mode: Search mode preset: supported values are `basic` and `advanced`. Basic mode
392-
offers the lowest latency and works best with 2-3 high-quality search_queries.
393-
Advanced mode provides higher quality with more advanced retrieval and
394-
compression. Defaults to `advanced` when omitted.
391+
mode: Search mode preset: supported values are `basic`, `advanced`, and `turbo`. Basic
392+
mode offers the lowest latency and works best with 2-3 high-quality
393+
search_queries. Advanced mode provides higher quality with more advanced
394+
retrieval and compression. Turbo mode is optimized for the fastest responses.
395+
Defaults to `advanced` when omitted.
395396
396397
objective: Natural-language description of the underlying question or goal driving the
397398
search. Used together with search_queries to focus results on the most relevant
@@ -747,7 +748,7 @@ async def search(
747748
advanced_settings: Optional[AdvancedSearchSettingsParam] | Omit = omit,
748749
client_model: Optional[str] | Omit = omit,
749750
max_chars_total: Optional[int] | Omit = omit,
750-
mode: Optional[Literal["basic", "advanced"]] | Omit = omit,
751+
mode: Optional[Literal["basic", "advanced", "turbo"]] | Omit = omit,
751752
objective: Optional[str] | Omit = omit,
752753
session_id: Optional[str] | Omit = omit,
753754
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -780,10 +781,11 @@ async def search(
780781
781782
max_chars_total: Upper bound on total characters across excerpts from all results.
782783
783-
mode: Search mode preset: supported values are `basic` and `advanced`. Basic mode
784-
offers the lowest latency and works best with 2-3 high-quality search_queries.
785-
Advanced mode provides higher quality with more advanced retrieval and
786-
compression. Defaults to `advanced` when omitted.
784+
mode: Search mode preset: supported values are `basic`, `advanced`, and `turbo`. Basic
785+
mode offers the lowest latency and works best with 2-3 high-quality
786+
search_queries. Advanced mode provides higher quality with more advanced
787+
retrieval and compression. Turbo mode is optimized for the fastest responses.
788+
Defaults to `advanced` when omitted.
787789
788790
objective: Natural-language description of the underlying question or goal driving the
789791
search. Used together with search_queries to focus results on the most relevant

src/parallel/resources/beta/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ from parallel.types.beta import (
99
FindAllCandidate,
1010
FindAllCandidateMatchStatusEvent,
1111
FindAllCandidateMetrics,
12-
FindAllCandidatesRequest,
13-
FindAllCandidatesResponse,
1412
FindAllEnrichInput,
13+
FindAllEntitySearchRequest,
14+
FindAllEntitySearchResponse,
1515
FindAllExtendInput,
1616
FindAllRun,
1717
FindAllRunInput,
@@ -32,8 +32,8 @@ Methods:
3232
- <code title="post /v1beta/findall/runs">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">create</a>(\*\*<a href="src/parallel/types/beta/findall_create_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_run.py">FindAllRun</a></code>
3333
- <code title="get /v1beta/findall/runs/{findall_id}">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">retrieve</a>(findall_id) -> <a href="./src/parallel/types/beta/findall_run.py">FindAllRun</a></code>
3434
- <code title="post /v1beta/findall/runs/{findall_id}/cancel">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">cancel</a>(findall_id) -> None</code>
35-
- <code title="post /v1beta/findall/candidates">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">candidates</a>(\*\*<a href="src/parallel/types/beta/findall_candidates_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_candidates_response.py">FindAllCandidatesResponse</a></code>
3635
- <code title="post /v1beta/findall/runs/{findall_id}/enrich">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">enrich</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_enrich_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindAllSchema</a></code>
36+
- <code title="post /v1beta/findall/entity-search">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">entity_search</a>(\*\*<a href="src/parallel/types/beta/findall_entity_search_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_entity_search_response.py">FindAllEntitySearchResponse</a></code>
3737
- <code title="get /v1beta/findall/runs/{findall_id}/events">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">events</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_events_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_events_response.py">FindAllEventsResponse</a></code>
3838
- <code title="post /v1beta/findall/runs/{findall_id}/extend">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">extend</a>(findall_id, \*\*<a href="src/parallel/types/beta/findall_extend_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindAllSchema</a></code>
3939
- <code title="post /v1beta/findall/ingest">client.beta.findall.<a href="./src/parallel/resources/beta/findall.py">ingest</a>(\*\*<a href="src/parallel/types/beta/findall_ingest_params.py">params</a>) -> <a href="./src/parallel/types/beta/findall_schema.py">FindAllSchema</a></code>

0 commit comments

Comments
 (0)