Skip to content

Commit ef5323b

Browse files
feat(api): task to GA v1
task to GA v1 has type aliasing, want to see if they generate properly
1 parent 032745e commit ef5323b

44 files changed

Lines changed: 1067 additions & 661 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-970b780e86490322cc3c7e2b57f140ca6766a3d9f6e0d3402837ebaf7c2183fc.yml
3-
openapi_spec_hash: 34f784ce2dec796048e6780924bae08f
4-
config_hash: a398d153133d8884bed4e5256a0ae818
1+
configured_endpoints: 21
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-4c5daa70b1b504ddfe167bd7cb0546603015728bf61c87fbb7dfe8f63dd2cc68.yml
3+
openapi_spec_hash: 7f9fde767931feceec531529c9a1c19d
4+
config_hash: 84377e96caa95526984350fcc3c5b4c7

api.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,30 @@ Types:
1212
from parallel.types import (
1313
AutoSchema,
1414
Citation,
15+
ErrorEvent,
1516
FieldBasis,
1617
JsonSchema,
1718
ParsedTaskRunResult,
19+
McpServer,
20+
McpToolCall,
1821
RunInput,
1922
TaskRun,
23+
TaskRunEvent,
2024
TaskRunJsonOutput,
2125
TaskRunResult,
2226
TaskRunTextOutput,
2327
TaskSpec,
2428
TextSchema,
29+
Webhook,
30+
TaskRunEventsResponse,
2531
)
2632
```
2733

2834
Methods:
2935

3036
- <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>
3137
- <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>
38+
- <code title="get /v1/tasks/runs/{run_id}/events">client.task_run.<a href="./src/parallel/resources/task_run.py">events</a>(run_id) -> <a href="./src/parallel/types/task_run_events_response.py">TaskRunEventsResponse</a></code>
3239
- <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>
3340

3441
Convenience methods:

src/parallel/resources/beta/api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ Types:
2626

2727
```python
2828
from parallel.types.beta import (
29+
ParallelBeta,
30+
TaskRunEventsResponse,
2931
BetaRunInput,
3032
BetaTaskRunResult,
31-
ErrorEvent,
33+
Webhook,
3234
McpServer,
3335
McpToolCall,
34-
ParallelBeta,
3536
TaskRunEvent,
36-
Webhook,
37-
TaskRunEventsResponse,
37+
ErrorEvent,
3838
)
3939
```
4040

4141
Methods:
4242

43-
- <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>
43+
- <code title="post /v1/tasks/runs">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>
4444
- <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>
45-
- <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>
45+
- <code title="get /v1/tasks/runs/{run_id}/result">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/task_run_result.py">TaskRunResult</a></code>
4646

4747
## TaskGroup
4848

src/parallel/resources/beta/beta.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ def extract(
123123
"""
124124
Extracts relevant content from specific web URLs.
125125
126-
To access this endpoint, pass the `parallel-beta` header with the value
127-
`search-extract-2025-10-10`.
128-
129126
Args:
130127
excerpts: Include excerpts from each URL relevant to the search objective and queries.
131128
Note that if neither objective nor search_queries is provided, excerpts are
@@ -348,9 +345,6 @@ async def extract(
348345
"""
349346
Extracts relevant content from specific web URLs.
350347
351-
To access this endpoint, pass the `parallel-beta` header with the value
352-
`search-extract-2025-10-10`.
353-
354348
Args:
355349
excerpts: Include excerpts from each URL relevant to the search objective and queries.
356350
Note that if neither objective nor search_queries is provided, excerpts are

src/parallel/resources/beta/findall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
findall_ingest_params,
2828
)
2929
from ..._base_client import make_request_options
30+
from ...types.webhook_param import WebhookParam
3031
from ...types.beta.findall_run import FindAllRun
32+
from ...types.mcp_server_param import McpServerParam
3133
from ...types.json_schema_param import JsonSchemaParam
32-
from ...types.beta.webhook_param import WebhookParam
3334
from ...types.beta.findall_schema import FindAllSchema
34-
from ...types.beta.mcp_server_param import McpServerParam
3535
from ...types.beta.findall_run_result import FindAllRunResult
3636
from ...types.beta.parallel_beta_param import ParallelBetaParam
3737
from ...types.beta.findall_events_response import FindAllEventsResponse

src/parallel/resources/beta/task_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
)
2828
from ..._base_client import make_request_options
2929
from ...types.beta.task_group import TaskGroup
30+
from ...types.run_input_param import RunInputParam
3031
from ...types.task_spec_param import TaskSpecParam
3132
from ...types.beta.parallel_beta_param import ParallelBetaParam
32-
from ...types.beta.beta_run_input_param import BetaRunInputParam
3333
from ...types.beta.task_group_run_response import TaskGroupRunResponse
3434
from ...types.beta.task_group_events_response import TaskGroupEventsResponse
3535
from ...types.beta.task_group_get_runs_response import TaskGroupGetRunsResponse
@@ -140,7 +140,7 @@ def add_runs(
140140
self,
141141
task_group_id: str,
142142
*,
143-
inputs: Iterable[BetaRunInputParam],
143+
inputs: Iterable[RunInputParam],
144144
default_task_spec: Optional[TaskSpecParam] | Omit = omit,
145145
betas: List[ParallelBetaParam] | Omit = omit,
146146
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -427,7 +427,7 @@ async def add_runs(
427427
self,
428428
task_group_id: str,
429429
*,
430-
inputs: Iterable[BetaRunInputParam],
430+
inputs: Iterable[RunInputParam],
431431
default_task_spec: Optional[TaskSpecParam] | Omit = omit,
432432
betas: List[ParallelBetaParam] | Omit = omit,
433433
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

0 commit comments

Comments
 (0)