Skip to content

Commit cd90e97

Browse files
feat(api): api update
1 parent f44a6b9 commit cd90e97

3 files changed

Lines changed: 9 additions & 7 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: 24
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-aacd4fe671f95f7229d8045bbfd51523a5135ff99b52206c1ec73ef350ef4a87.yml
3-
openapi_spec_hash: 0b62bc35fdab1cf4cecfacc733b4940f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-72a5e799aeb35d66c3a93b613eb57e559b9f05fff9bafe977ef312260666192d.yml
3+
openapi_spec_hash: b679f0ba091667a2f6f3054373121d98
44
config_hash: cf2c7f48b329e0a61612b30cd2755ad1

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def extract(
8686
timeout: float | httpx.Timeout | None | NotGiven = not_given,
8787
) -> WebExtractResponse:
8888
"""
89-
Crawl a website and extract structured data using the provided JSON Schema.
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.
9091
9192
Args:
9293
schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
@@ -111,7 +112,7 @@ def extract(
111112
interpret fields in the schema.
112113
113114
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
114-
younger than this many milliseconds.
115+
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
115116
116117
stop_after_ms: Soft time budget for the crawl in milliseconds.
117118
@@ -873,7 +874,8 @@ async def extract(
873874
timeout: float | httpx.Timeout | None | NotGiven = not_given,
874875
) -> WebExtractResponse:
875876
"""
876-
Crawl a website and extract structured data using the provided JSON Schema.
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.
877879
878880
Args:
879881
schema: JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
@@ -898,7 +900,7 @@ async def extract(
898900
interpret fields in the schema.
899901
900902
max_age_ms: Return cached scrape results if a prior scrape for the same parameters is
901-
younger than this many milliseconds.
903+
younger than this many milliseconds. Defaults to 7 days (604800000 ms).
902904
903905
stop_after_ms: Soft time budget for the crawl in milliseconds.
904906

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)