Skip to content

Commit 76d7bb4

Browse files
authored
Merge pull request #33 from context-dot-dev/release-please--branches--main--changes--next
release: 0.28.0
2 parents defdf84 + c7203a3 commit 76d7bb4

7 files changed

Lines changed: 40 additions & 34 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.27.0"
2+
".": "0.28.0"
33
}

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 24
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-cc8ca2c80e73bdcff491c96d9289c9e88d831215375ef83632cc51f8e8e06183.yml
3-
openapi_spec_hash: bf55dce481efcf2f24bc9ff59c2e3f61
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-1785aa93e6fb2784640a4c32eb0221f0b31aa06644d090f72f8533524aeef7c6.yml
3+
openapi_spec_hash: 7dc1fadcec32637e795f641a0e97c63e
44
config_hash: cf2c7f48b329e0a61612b30cd2755ad1

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.28.0 (2026-06-01)
4+
5+
Full Changelog: [v0.27.0...v0.28.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.27.0...v0.28.0)
6+
7+
### Features
8+
9+
* **api:** api update ([cd90e97](https://github.com/context-dot-dev/context-python-sdk/commit/cd90e97f36bc6adcf790522df90edb2640f3f510))
10+
* **api:** api update ([edeabb0](https://github.com/context-dot-dev/context-python-sdk/commit/edeabb036e0a5f8730fd0175fcd2fd42d4156b05))
11+
* **api:** api update ([5b94819](https://github.com/context-dot-dev/context-python-sdk/commit/5b9481966d0e279462f6cdea930cd738871239ee))
12+
313
## 0.27.0 (2026-05-31)
414

515
Full Changelog: [v0.26.0...v0.27.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.26.0...v0.27.0)

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "context.dev"
3-
version = "0.27.0"
3+
version = "0.28.0"
44
description = "The official Python library for the context.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎src/context/dev/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "context.dev"
4-
__version__ = "0.27.0" # x-release-please-version
4+
__version__ = "0.28.0" # x-release-please-version

‎src/context/dev/resources/web.py‎

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ def extract(
8686
timeout: float | httpx.Timeout | None | NotGiven = not_given,
8787
) -> WebExtractResponse:
8888
"""
89-
Crawl a website, convert pages to Markdown using the scrape cache, and extract
90-
structured data into the provided JSON Schema. The schema must describe the
91-
response data object. This endpoint does not accept targeted page-type
92-
selection.
89+
Crawl a website, use the provided JSON Schema and instructions to prioritize
90+
relevant internal links, and extract structured data from the selected pages.
9391
9492
Args:
9593
schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
@@ -99,12 +97,12 @@ def extract(
9997
url: The starting website URL to crawl and extract from. Must include http:// or
10098
https://.
10199
102-
fact_check: When true (default), every returned value must be grounded in facts stated on
103-
the page; fields that cannot be supported by the page are returned as
104-
null/empty. When false, the model may make reasonable inferences and derivations
105-
from the page content (e.g. ideal customer, competitor analysis,
106-
recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
107-
metrics) faithful to the source.
100+
fact_check: When true, every returned value must be grounded in facts stated on the page;
101+
fields that cannot be supported by the page are returned as null/empty. When
102+
false (default), the model may make reasonable inferences and derivations from
103+
the page content (e.g. ideal customer, competitor analysis, recommendations)
104+
while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
105+
faithful to the source.
108106
109107
follow_subdomains: When true, follow links on subdomains of the starting URL's domain.
110108
@@ -114,7 +112,7 @@ def extract(
114112
interpret fields in the schema.
115113
116114
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
117-
younger than this many milliseconds.
115+
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
118116
119117
stop_after_ms: Soft time budget for the crawl in milliseconds.
120118
@@ -876,10 +874,8 @@ async def extract(
876874
timeout: float | httpx.Timeout | None | NotGiven = not_given,
877875
) -> WebExtractResponse:
878876
"""
879-
Crawl a website, convert pages to Markdown using the scrape cache, and extract
880-
structured data into the provided JSON Schema. The schema must describe the
881-
response data object. This endpoint does not accept targeted page-type
882-
selection.
877+
Crawl a website, use the provided JSON Schema and instructions to prioritize
878+
relevant internal links, and extract structured data from the selected pages.
883879
884880
Args:
885881
schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
@@ -889,12 +885,12 @@ async def extract(
889885
url: The starting website URL to crawl and extract from. Must include http:// or
890886
https://.
891887
892-
fact_check: When true (default), every returned value must be grounded in facts stated on
893-
the page; fields that cannot be supported by the page are returned as
894-
null/empty. When false, the model may make reasonable inferences and derivations
895-
from the page content (e.g. ideal customer, competitor analysis,
896-
recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
897-
metrics) faithful to the source.
888+
fact_check: When true, every returned value must be grounded in facts stated on the page;
889+
fields that cannot be supported by the page are returned as null/empty. When
890+
false (default), the model may make reasonable inferences and derivations from
891+
the page content (e.g. ideal customer, competitor analysis, recommendations)
892+
while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
893+
faithful to the source.
898894
899895
follow_subdomains: When true, follow links on subdomains of the starting URL's domain.
900896
@@ -904,7 +900,7 @@ async def extract(
904900
interpret fields in the schema.
905901
906902
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
907-
younger than this many milliseconds.
903+
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
908904
909905
stop_after_ms: Soft time budget for the crawl in milliseconds.
910906

‎src/context/dev/types/web_extract_params.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class WebExtractParams(TypedDict, total=False):
2626

2727
fact_check: Annotated[bool, PropertyInfo(alias="factCheck")]
2828
"""
29-
When true (default), every returned value must be grounded in facts stated on
30-
the page; fields that cannot be supported by the page are returned as
31-
null/empty. When false, the model may make reasonable inferences and derivations
32-
from the page content (e.g. ideal customer, competitor analysis,
33-
recommendations) while keeping verifiable specifics (names, quotes, URLs, dates,
34-
metrics) faithful to the source.
29+
When true, every returned value must be grounded in facts stated on the page;
30+
fields that cannot be supported by the page are returned as null/empty. When
31+
false (default), the model may make reasonable inferences and derivations from
32+
the page content (e.g. ideal customer, competitor analysis, recommendations)
33+
while keeping verifiable specifics (names, quotes, URLs, dates, metrics)
34+
faithful to the source.
3535
"""
3636

3737
follow_subdomains: Annotated[bool, PropertyInfo(alias="followSubdomains")]
@@ -49,7 +49,7 @@ class WebExtractParams(TypedDict, total=False):
4949
max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")]
5050
"""
5151
Return cached scrape results if a prior scrape for the same parameters is
52-
younger than this many milliseconds.
52+
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
5353
"""
5454

5555
pdf: Pdf

0 commit comments

Comments
 (0)