Skip to content

Commit f6c62fe

Browse files
author
stlc-bot
committed
chore: sync sdk-openapi.json from shapleyai/code@d8feeba4be
Stainless-Generated-From: e73ddf288a90d6021e6ddbaa9b412f9129436a1c
1 parent 46a7b64 commit f6c62fe

8 files changed

Lines changed: 93 additions & 30 deletions

File tree

‎scripts/mock‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎src/parallel/_client.py‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,6 @@ def extract(
291291
"""
292292
Extracts relevant content from specific web URLs.
293293
294-
The legacy Extract API reference (`/v1beta/extract` endpoint) is available
295-
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and
296-
migration guide is
297-
[here](https://docs.parallel.ai/extract/extract-migration-guide).
298-
299294
Args:
300295
urls: URLs to extract content from. Up to 20 URLs.
301296
@@ -368,11 +363,6 @@ def search(
368363
"""
369364
Searches the web.
370365
371-
The legacy Search API reference (`/v1beta/search` endpoint) is available
372-
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
373-
migration guide is
374-
[here](https://docs.parallel.ai/search/search-migration-guide).
375-
376366
Args:
377367
search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,
378368
provide 2-3 for best results. Used together with objective to focus results on
@@ -685,11 +675,6 @@ async def extract(
685675
"""
686676
Extracts relevant content from specific web URLs.
687677
688-
The legacy Extract API reference (`/v1beta/extract` endpoint) is available
689-
[here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and
690-
migration guide is
691-
[here](https://docs.parallel.ai/extract/extract-migration-guide).
692-
693678
Args:
694679
urls: URLs to extract content from. Up to 20 URLs.
695680
@@ -762,11 +747,6 @@ async def search(
762747
"""
763748
Searches the web.
764749
765-
The legacy Search API reference (`/v1beta/search` endpoint) is available
766-
[here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and
767-
migration guide is
768-
[here](https://docs.parallel.ai/search/search-migration-guide).
769-
770750
Args:
771751
search_queries: Concise keyword search queries, 3-6 words each. At least one query is required,
772752
provide 2-3 for best results. Used together with objective to focus results on

‎src/parallel/resources/monitor.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def update(
201201
rejects `null`, so omit it to leave it unchanged. Pass `type` and `settings` to
202202
update type-specific settings on an `event_stream` monitor. Pass `processor` to
203203
change the processor used by subsequent monitor runs. At least one field must be
204-
provided. Cancelled monitors cannot be updated.
204+
provided. On a cancelled monitor only `metadata` can be updated.
205205
206206
Args:
207207
frequency: Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
@@ -628,7 +628,7 @@ async def update(
628628
rejects `null`, so omit it to leave it unchanged. Pass `type` and `settings` to
629629
update type-specific settings on an `event_stream` monitor. Pass `processor` to
630630
change the processor used by subsequent monitor runs. At least one field must be
631-
provided. Cancelled monitors cannot be updated.
631+
provided. On a cancelled monitor only `metadata` can be updated.
632632
633633
Args:
634634
frequency: Frequency of the monitor. Format: '<number><unit>' where unit is 'h' (hours),
Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44

55
from .._models import BaseModel
66

7-
__all__ = ["TaskAdvancedSettings"]
7+
__all__ = ["TaskAdvancedSettings", "DataSources"]
8+
9+
10+
class DataSources(BaseModel):
11+
"""Optional partner data sources to enable for this task run.
12+
13+
Supported on standard processors only; a selected partner name must not collide with an `mcp_servers` entry.
14+
"""
15+
16+
free: Optional[List[str]] = None
17+
"""
18+
Free data partners to enable for this task, in addition to sources included with
19+
the processor. Never billed. See the Data Sources documentation for the
20+
available names.
21+
"""
22+
23+
pay_per_use: Optional[List[str]] = None
24+
"""
25+
Pay-per-use data partners to enable for this task, in addition to sources
26+
included with the processor. See the Data Sources documentation for the
27+
available names.
28+
"""
829

930

1031
class TaskAdvancedSettings(BaseModel):
1132
"""Advanced search configuration for a task run."""
1233

34+
data_sources: Optional[DataSources] = None
35+
"""Optional partner data sources to enable for this task run.
36+
37+
Supported on standard processors only; a selected partner name must not collide
38+
with an `mcp_servers` entry.
39+
"""
40+
1341
location: Optional[str] = None
1442
"""ISO 3166-1 alpha-2 country code for geo-targeted search results."""

‎src/parallel/types/task_advanced_settings_param.py‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,41 @@
55
from typing import Optional
66
from typing_extensions import TypedDict
77

8-
__all__ = ["TaskAdvancedSettingsParam"]
8+
from .._types import SequenceNotStr
9+
10+
__all__ = ["TaskAdvancedSettingsParam", "DataSources"]
11+
12+
13+
class DataSources(TypedDict, total=False):
14+
"""Optional partner data sources to enable for this task run.
15+
16+
Supported on standard processors only; a selected partner name must not collide with an `mcp_servers` entry.
17+
"""
18+
19+
free: SequenceNotStr[str]
20+
"""
21+
Free data partners to enable for this task, in addition to sources included with
22+
the processor. Never billed. See the Data Sources documentation for the
23+
available names.
24+
"""
25+
26+
pay_per_use: SequenceNotStr[str]
27+
"""
28+
Pay-per-use data partners to enable for this task, in addition to sources
29+
included with the processor. See the Data Sources documentation for the
30+
available names.
31+
"""
932

1033

1134
class TaskAdvancedSettingsParam(TypedDict, total=False):
1235
"""Advanced search configuration for a task run."""
1336

37+
data_sources: Optional[DataSources]
38+
"""Optional partner data sources to enable for this task run.
39+
40+
Supported on standard processors only; a selected partner name must not collide
41+
with an `mcp_servers` entry.
42+
"""
43+
1444
location: Optional[str]
1545
"""ISO 3166-1 alpha-2 country code for geo-targeted search results."""

‎src/parallel/types/task_run_progress_message_event.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ class TaskRunProgressMessageEvent(BaseModel):
2323
"task_run.progress_msg.result",
2424
"task_run.progress_msg.tool_call",
2525
"task_run.progress_msg.exec_status",
26+
"task_run.progress_msg.extract",
2627
]
2728
"""Event type; always starts with 'task_run.progress_msg'."""

‎tests/api_resources/test_task_group.py‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ def test_method_add_runs_with_all_params(self, client: Parallel) -> None:
113113
{
114114
"input": "What was the GDP of France in 2023?",
115115
"processor": "base",
116-
"advanced_settings": {"location": "us"},
116+
"advanced_settings": {
117+
"data_sources": {
118+
"free": ["string"],
119+
"pay_per_use": ["string"],
120+
},
121+
"location": "us",
122+
},
117123
"enable_events": True,
118124
"mcp_servers": [
119125
{
@@ -455,7 +461,13 @@ async def test_method_add_runs_with_all_params(self, async_client: AsyncParallel
455461
{
456462
"input": "What was the GDP of France in 2023?",
457463
"processor": "base",
458-
"advanced_settings": {"location": "us"},
464+
"advanced_settings": {
465+
"data_sources": {
466+
"free": ["string"],
467+
"pay_per_use": ["string"],
468+
},
469+
"location": "us",
470+
},
459471
"enable_events": True,
460472
"mcp_servers": [
461473
{

‎tests/api_resources/test_task_run.py‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ def test_method_create_with_all_params(self, client: Parallel) -> None:
3535
task_run = client.task_run.create(
3636
input="What was the GDP of France in 2023?",
3737
processor="base",
38-
advanced_settings={"location": "us"},
38+
advanced_settings={
39+
"data_sources": {
40+
"free": ["string"],
41+
"pay_per_use": ["string"],
42+
},
43+
"location": "us",
44+
},
3945
enable_events=True,
4046
mcp_servers=[
4147
{
@@ -279,7 +285,13 @@ async def test_method_create_with_all_params(self, async_client: AsyncParallel)
279285
task_run = await async_client.task_run.create(
280286
input="What was the GDP of France in 2023?",
281287
processor="base",
282-
advanced_settings={"location": "us"},
288+
advanced_settings={
289+
"data_sources": {
290+
"free": ["string"],
291+
"pay_per_use": ["string"],
292+
},
293+
"location": "us",
294+
},
283295
enable_events=True,
284296
mcp_servers=[
285297
{

0 commit comments

Comments
 (0)