Skip to content

Commit c13d6db

Browse files
fix(api): remove full_content from /v1beta/search output
1 parent bc9e1c2 commit c13d6db

17 files changed

Lines changed: 214 additions & 759 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-77649b8f6d46525bfb9fe6d0ec115b1c639d41fffae2a513fa8e9fe5d700f069.yml
3-
openapi_spec_hash: 9e34db58728d2541dc23144262a66a71
1+
configured_endpoints: 11
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-d33149b5dcce76e5a3f4ac9bd7948eaadd22fcbd526c3bf3caf7fa0472a0d169.yml
3+
openapi_spec_hash: b243f06e6735d6513e654c91c2991665
44
config_hash: 677d555754b79eb922f6bf64bccd9559

api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ from parallel.types import (
2222
TaskRunTextOutput,
2323
TaskSpec,
2424
TextSchema,
25+
TaskRunResultResponse,
2526
)
2627
```
2728

2829
Methods:
2930

3031
- <code title="post /v1/tasks/runs">client.task_run.<a href="./src/parallel/resources/task_run.py">create</a>(\*\*<a href="src/parallel/types/task_run_create_params.py">params</a>) -> <a href="./src/parallel/types/task_run.py">TaskRun</a></code>
3132
- <code title="get /v1/tasks/runs/{run_id}">client.task_run.<a href="./src/parallel/resources/task_run.py">retrieve</a>(run_id) -> <a href="./src/parallel/types/task_run.py">TaskRun</a></code>
32-
- <code title="get /v1/tasks/runs/{run_id}/result">client.task_run.<a href="./src/parallel/resources/task_run.py">result</a>(run_id, \*\*<a href="src/parallel/types/task_run_result_params.py">params</a>) -> <a href="./src/parallel/types/task_run_result.py">TaskRunResult</a></code>
33+
- <code title="get /v1/tasks/runs/{run_id}/result">client.task_run.<a href="./src/parallel/resources/task_run.py">result</a>(run_id, \*\*<a href="src/parallel/types/task_run_result_params.py">params</a>) -> <a href="./src/parallel/types/task_run_result_response.py">TaskRunResultResponse</a></code>
3334

3435
Convenience methods:
3536

@@ -77,9 +78,7 @@ from parallel.types.beta import (
7778

7879
Methods:
7980

80-
- <code title="post /v1/tasks/runs?beta=true">client.beta.task_run.<a href="./src/parallel/resources/beta/task_run.py">create</a>(\*\*<a href="src/parallel/types/beta/task_run_create_params.py">params</a>) -> <a href="./src/parallel/types/task_run.py">TaskRun</a></code>
8181
- <code title="get /v1beta/tasks/runs/{run_id}/events">client.beta.task_run.<a href="./src/parallel/resources/beta/task_run.py">events</a>(run_id) -> <a href="./src/parallel/types/beta/task_run_events_response.py">TaskRunEventsResponse</a></code>
82-
- <code title="get /v1/tasks/runs/{run_id}/result?beta=true">client.beta.task_run.<a href="./src/parallel/resources/beta/task_run.py">result</a>(run_id, \*\*<a href="src/parallel/types/beta/task_run_result_params.py">params</a>) -> <a href="./src/parallel/types/beta/beta_task_run_result.py">BetaTaskRunResult</a></code>
8382

8483
## TaskGroup
8584

src/parallel/resources/beta/beta.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ def extract(
104104
105105
fetch_policy: Policy for live fetching web results.
106106
107-
Determines when to return cached content from the index (faster) vs fetching
108-
live content (fresher). The default policy for search uses cached results only,
109-
while extract uses a dynamic policy based on the search objective and url.
110-
111107
full_content: Include full content from each URL. Note that if neither objective nor
112108
search_queries is provided, excerpts are redundant with full content.
113109
@@ -186,11 +182,7 @@ def search(
186182
187183
fetch_policy: Policy for live fetching web results.
188184
189-
Determines when to return cached content from the index (faster) vs fetching
190-
live content (fresher). The default policy for search uses cached results only,
191-
while extract uses a dynamic policy based on the search objective and url.
192-
193-
max_chars_per_result: DEPRECATED - Use excerpts.max_chars_per_result.
185+
max_chars_per_result: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
194186
195187
max_results: Upper bound on the number of results to return. May be limited by the processor.
196188
Defaults to 10 if not provided.
@@ -204,7 +196,7 @@ def search(
204196
include guidance about preferred sources or freshness. At least one of objective
205197
or search_queries must be provided.
206198
207-
processor: DEPRECATED - Use mode.
199+
processor: DEPRECATED: use `mode` instead.
208200
209201
search_queries: Optional list of traditional keyword search queries to guide the search. May
210202
contain search operators. At least one of objective or search_queries must be
@@ -316,10 +308,6 @@ async def extract(
316308
317309
fetch_policy: Policy for live fetching web results.
318310
319-
Determines when to return cached content from the index (faster) vs fetching
320-
live content (fresher). The default policy for search uses cached results only,
321-
while extract uses a dynamic policy based on the search objective and url.
322-
323311
full_content: Include full content from each URL. Note that if neither objective nor
324312
search_queries is provided, excerpts are redundant with full content.
325313
@@ -398,11 +386,7 @@ async def search(
398386
399387
fetch_policy: Policy for live fetching web results.
400388
401-
Determines when to return cached content from the index (faster) vs fetching
402-
live content (fresher). The default policy for search uses cached results only,
403-
while extract uses a dynamic policy based on the search objective and url.
404-
405-
max_chars_per_result: DEPRECATED - Use excerpts.max_chars_per_result.
389+
max_chars_per_result: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
406390
407391
max_results: Upper bound on the number of results to return. May be limited by the processor.
408392
Defaults to 10 if not provided.
@@ -416,7 +400,7 @@ async def search(
416400
include guidance about preferred sources or freshness. At least one of objective
417401
or search_queries must be provided.
418402
419-
processor: DEPRECATED - Use mode.
403+
processor: DEPRECATED: use `mode` instead.
420404
421405
search_queries: Optional list of traditional keyword search queries to guide the search. May
422406
contain search operators. At least one of objective or search_queries must be

0 commit comments

Comments
 (0)