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/resources/beta/task_group.py
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,17 @@
38
38
39
39
40
40
classTaskGroupResource(SyncAPIResource):
41
-
"""
42
-
The Task Group API is currently in beta and enables batch execution of many independent Task runs with group-level monitoring and failure handling.
41
+
"""The Task API executes web research and extraction tasks.
42
+
43
+
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.
44
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
45
+
46
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
43
47
- Submit hundreds or thousands of Tasks as a single group
44
48
- Observe group progress and receive results as they complete
45
49
- Real-time updates via Server-Sent Events (SSE)
46
50
- Add tasks to an existing group while it is running
47
51
- Group-level retry and error aggregation
48
-
Status: beta and subject to change.
49
52
"""
50
53
51
54
@cached_property
@@ -332,14 +335,17 @@ def get_runs(
332
335
333
336
334
337
classAsyncTaskGroupResource(AsyncAPIResource):
335
-
"""
336
-
The Task Group API is currently in beta and enables batch execution of many independent Task runs with group-level monitoring and failure handling.
338
+
"""The Task API executes web research and extraction tasks.
339
+
340
+
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.
341
+
- Output metadata: citations, excerpts, reasoning, and confidence per field
342
+
343
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
337
344
- Submit hundreds or thousands of Tasks as a single group
338
345
- Observe group progress and receive results as they complete
339
346
- Real-time updates via Server-Sent Events (SSE)
340
347
- Add tasks to an existing group while it is running
Copy file name to clipboardExpand all lines: src/parallel/resources/beta/task_run.py
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,13 @@ class TaskRunResource(SyncAPIResource):
37
37
38
38
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.
39
39
- Output metadata: citations, excerpts, reasoning, and confidence per field
40
+
41
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
42
+
- Submit hundreds or thousands of Tasks as a single group
43
+
- Observe group progress and receive results as they complete
44
+
- Real-time updates via Server-Sent Events (SSE)
45
+
- Add tasks to an existing group while it is running
46
+
- Group-level retry and error aggregation
40
47
"""
41
48
42
49
@cached_property
@@ -265,6 +272,13 @@ class AsyncTaskRunResource(AsyncAPIResource):
265
272
266
273
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.
267
274
- Output metadata: citations, excerpts, reasoning, and confidence per field
275
+
276
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
277
+
- Submit hundreds or thousands of Tasks as a single group
278
+
- Observe group progress and receive results as they complete
279
+
- Real-time updates via Server-Sent Events (SSE)
280
+
- Add tasks to an existing group while it is running
Copy file name to clipboardExpand all lines: src/parallel/resources/task_run.py
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,13 @@ class TaskRunResource(SyncAPIResource):
41
41
42
42
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.
43
43
- Output metadata: citations, excerpts, reasoning, and confidence per field
44
+
45
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
46
+
- Submit hundreds or thousands of Tasks as a single group
47
+
- Observe group progress and receive results as they complete
48
+
- Real-time updates via Server-Sent Events (SSE)
49
+
- Add tasks to an existing group while it is running
50
+
- Group-level retry and error aggregation
44
51
"""
45
52
46
53
@cached_property
@@ -340,6 +347,13 @@ class AsyncTaskRunResource(AsyncAPIResource):
340
347
341
348
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.
342
349
- Output metadata: citations, excerpts, reasoning, and confidence per field
350
+
351
+
Task Groups enable batch execution of many independent Task runs with group-level monitoring and failure handling.
352
+
- Submit hundreds or thousands of Tasks as a single group
353
+
- Observe group progress and receive results as they complete
354
+
- Real-time updates via Server-Sent Events (SSE)
355
+
- Add tasks to an existing group while it is running
0 commit comments