Skip to content

Commit 7a4d651

Browse files
feat(api): Remove full_content from OpenAPI Spec
1 parent fae95f4 commit 7a4d651

5 files changed

Lines changed: 4 additions & 48 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-8870e80e4ae564fa22febb630c65e14d914b4f48fcf76a9953c99e860704764a.yml
3-
openapi_spec_hash: fddc70c809ae1d3101d4b805265abb5a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-728ba63c23bc2eb4fe37b429fb084ed7600ae50c8c652aeb0c787216c3ece07a.yml
3+
openapi_spec_hash: 3568175d488fc927f1710b3ebca87cfc
44
config_hash: a398d153133d8884bed4e5256a0ae818

src/parallel/resources/beta/beta.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def extract(
109109
urls: SequenceNotStr[str],
110110
excerpts: beta_extract_params.Excerpts | Omit = omit,
111111
fetch_policy: Optional[FetchPolicyParam] | Omit = omit,
112-
full_content: beta_extract_params.FullContent | Omit = omit,
113112
objective: Optional[str] | Omit = omit,
114113
search_queries: Optional[SequenceNotStr[str]] | Omit = omit,
115114
betas: List[ParallelBetaParam] | Omit = omit,
@@ -128,14 +127,9 @@ def extract(
128127
129128
Args:
130129
excerpts: Include excerpts from each URL relevant to the search objective and queries.
131-
Note that if neither objective nor search_queries is provided, excerpts are
132-
redundant with full content.
133130
134131
fetch_policy: Policy for live fetching web results.
135132
136-
full_content: Include full content from each URL. Note that if neither objective nor
137-
search_queries is provided, excerpts are redundant with full content.
138-
139133
objective: If provided, focuses extracted content on the specified search objective.
140134
141135
search_queries: If provided, focuses extracted content on the specified keyword search queries.
@@ -168,7 +162,6 @@ def extract(
168162
"urls": urls,
169163
"excerpts": excerpts,
170164
"fetch_policy": fetch_policy,
171-
"full_content": full_content,
172165
"objective": objective,
173166
"search_queries": search_queries,
174167
},
@@ -334,7 +327,6 @@ async def extract(
334327
urls: SequenceNotStr[str],
335328
excerpts: beta_extract_params.Excerpts | Omit = omit,
336329
fetch_policy: Optional[FetchPolicyParam] | Omit = omit,
337-
full_content: beta_extract_params.FullContent | Omit = omit,
338330
objective: Optional[str] | Omit = omit,
339331
search_queries: Optional[SequenceNotStr[str]] | Omit = omit,
340332
betas: List[ParallelBetaParam] | Omit = omit,
@@ -353,14 +345,9 @@ async def extract(
353345
354346
Args:
355347
excerpts: Include excerpts from each URL relevant to the search objective and queries.
356-
Note that if neither objective nor search_queries is provided, excerpts are
357-
redundant with full content.
358348
359349
fetch_policy: Policy for live fetching web results.
360350
361-
full_content: Include full content from each URL. Note that if neither objective nor
362-
search_queries is provided, excerpts are redundant with full content.
363-
364351
objective: If provided, focuses extracted content on the specified search objective.
365352
366353
search_queries: If provided, focuses extracted content on the specified keyword search queries.
@@ -393,7 +380,6 @@ async def extract(
393380
"urls": urls,
394381
"excerpts": excerpts,
395382
"fetch_policy": fetch_policy,
396-
"full_content": full_content,
397383
"objective": objective,
398384
"search_queries": search_queries,
399385
},

src/parallel/types/beta/beta_extract_params.py

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,18 @@
1111
from .parallel_beta_param import ParallelBetaParam
1212
from .excerpt_settings_param import ExcerptSettingsParam
1313

14-
__all__ = ["BetaExtractParams", "Excerpts", "FullContent", "FullContentFullContentSettings"]
14+
__all__ = ["BetaExtractParams", "Excerpts"]
1515

1616

1717
class BetaExtractParams(TypedDict, total=False):
1818
urls: Required[SequenceNotStr[str]]
1919

2020
excerpts: Excerpts
21-
"""Include excerpts from each URL relevant to the search objective and queries.
22-
23-
Note that if neither objective nor search_queries is provided, excerpts are
24-
redundant with full content.
25-
"""
21+
"""Include excerpts from each URL relevant to the search objective and queries."""
2622

2723
fetch_policy: Optional[FetchPolicyParam]
2824
"""Policy for live fetching web results."""
2925

30-
full_content: FullContent
31-
"""Include full content from each URL.
32-
33-
Note that if neither objective nor search_queries is provided, excerpts are
34-
redundant with full content.
35-
"""
36-
3726
objective: Optional[str]
3827
"""If provided, focuses extracted content on the specified search objective."""
3928

@@ -45,17 +34,3 @@ class BetaExtractParams(TypedDict, total=False):
4534

4635

4736
Excerpts: TypeAlias = Union[bool, ExcerptSettingsParam]
48-
49-
50-
class FullContentFullContentSettings(TypedDict, total=False):
51-
"""Optional settings for returning full content."""
52-
53-
max_chars_per_result: Optional[int]
54-
"""
55-
Optional limit on the number of characters to include in the full content for
56-
each url. Full content always starts at the beginning of the page and is
57-
truncated at the limit if necessary.
58-
"""
59-
60-
61-
FullContent: TypeAlias = Union[bool, FullContentFullContentSettings]

src/parallel/types/beta/extract_result.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class ExtractResult(BaseModel):
1616
excerpts: Optional[List[str]] = None
1717
"""Relevant excerpted content from the URL, formatted as markdown."""
1818

19-
full_content: Optional[str] = None
20-
"""Full content from the URL formatted as markdown, if requested."""
21-
2219
publish_date: Optional[str] = None
2320
"""Publish date of the webpage in YYYY-MM-DD format, if available."""
2421

tests/api_resources/test_beta.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def test_method_extract_with_all_params(self, client: Parallel) -> None:
3838
"max_age_seconds": 86400,
3939
"timeout_seconds": 60,
4040
},
41-
full_content=True,
4241
objective="objective",
4342
search_queries=["string"],
4443
betas=["mcp-server-2025-07-17"],
@@ -144,7 +143,6 @@ async def test_method_extract_with_all_params(self, async_client: AsyncParallel)
144143
"max_age_seconds": 86400,
145144
"timeout_seconds": 60,
146145
},
147-
full_content=True,
148146
objective="objective",
149147
search_queries=["string"],
150148
betas=["mcp-server-2025-07-17"],

0 commit comments

Comments
 (0)