You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/parallel/_client.py
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,11 @@ def __init__(
104
104
105
105
@cached_property
106
106
deftask_run(self) ->TaskRunResource:
107
+
"""The Task API executes web research and extraction tasks.
108
+
109
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
110
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
111
+
"""
107
112
from .resources.task_runimportTaskRunResource
108
113
109
114
returnTaskRunResource(self)
@@ -284,6 +289,11 @@ def __init__(
284
289
285
290
@cached_property
286
291
deftask_run(self) ->AsyncTaskRunResource:
292
+
"""The Task API executes web research and extraction tasks.
293
+
294
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
295
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
296
+
"""
287
297
from .resources.task_runimportAsyncTaskRunResource
"""The Task API executes web research and extraction tasks.
429
+
430
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
431
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
432
+
"""
418
433
from .resources.task_runimportTaskRunResourceWithRawResponse
"""The Task API executes web research and extraction tasks.
453
+
454
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
455
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
456
+
"""
437
457
from .resources.task_runimportAsyncTaskRunResourceWithRawResponse
"""The Task API executes web research and extraction tasks.
477
+
478
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
479
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
480
+
"""
456
481
from .resources.task_runimportTaskRunResourceWithStreamingResponse
"""The Task API executes web research and extraction tasks.
501
+
502
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
503
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
504
+
"""
475
505
from .resources.task_runimportAsyncTaskRunResourceWithStreamingResponse
Copy file name to clipboardExpand all lines: src/parallel/resources/beta/beta.py
+102Lines changed: 102 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,14 +57,31 @@
57
57
classBetaResource(SyncAPIResource):
58
58
@cached_property
59
59
deftask_run(self) ->TaskRunResource:
60
+
"""The Task API executes web research and extraction tasks.
61
+
62
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
63
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
64
+
"""
60
65
returnTaskRunResource(self._client)
61
66
62
67
@cached_property
63
68
deftask_group(self) ->TaskGroupResource:
69
+
"""
70
+
The Task Group API is currently in beta and enables batch execution of many independent Task runs with group-level monitoring and failure handling.
71
+
- Submit hundreds or thousands of Tasks as a single group
72
+
- Observe group progress and receive results as they complete
73
+
- Real-time updates via Server-Sent Events (SSE)
74
+
- Add tasks to an existing group while it is running
75
+
- Group-level retry and error aggregation
76
+
Status: beta and subject to change.
77
+
"""
64
78
returnTaskGroupResource(self._client)
65
79
66
80
@cached_property
67
81
deffindall(self) ->FindAllResource:
82
+
"""
83
+
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
84
+
"""
68
85
returnFindAllResource(self._client)
69
86
70
87
@cached_property
@@ -265,14 +282,31 @@ def search(
265
282
classAsyncBetaResource(AsyncAPIResource):
266
283
@cached_property
267
284
deftask_run(self) ->AsyncTaskRunResource:
285
+
"""The Task API executes web research and extraction tasks.
286
+
287
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
288
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
289
+
"""
268
290
returnAsyncTaskRunResource(self._client)
269
291
270
292
@cached_property
271
293
deftask_group(self) ->AsyncTaskGroupResource:
294
+
"""
295
+
The Task Group API is currently in beta and enables batch execution of many independent Task runs with group-level monitoring and failure handling.
296
+
- Submit hundreds or thousands of Tasks as a single group
297
+
- Observe group progress and receive results as they complete
298
+
- Real-time updates via Server-Sent Events (SSE)
299
+
- Add tasks to an existing group while it is running
300
+
- Group-level retry and error aggregation
301
+
Status: beta and subject to change.
302
+
"""
272
303
returnAsyncTaskGroupResource(self._client)
273
304
274
305
@cached_property
275
306
deffindall(self) ->AsyncFindAllResource:
307
+
"""
308
+
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
"""The Task API executes web research and extraction tasks.
521
+
522
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
523
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
"""The Task API executes web research and extraction tasks.
562
+
563
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
564
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
"""The Task API executes web research and extraction tasks.
603
+
604
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
605
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
"""The Task API executes web research and extraction tasks.
644
+
645
+
Clients submit a natural-language objective with an optional input schema; the service plans retrieval, fetches relevant URLs, and returns outputs that conform to a provided or inferred JSON schema. Supports deep research style queries and can return rich structured JSON outputs. Processors trade-off between cost, latency, and quality. Each processor supports calibrated confidences.
646
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
Copy file name to clipboardExpand all lines: src/parallel/resources/beta/findall.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,10 @@
53
53
54
54
55
55
classFindAllResource(SyncAPIResource):
56
+
"""
57
+
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
The FindAll API discovers and evaluates entities that match complex criteria from natural language objectives. Submit a high-level goal and the service automatically generates structured match conditions, discovers relevant candidates, and evaluates each against the criteria. Returns comprehensive results with detailed reasoning, citations, and confidence scores for each match decision. Streaming events and webhooks are supported.
0 commit comments