Skip to content

Commit 70af317

Browse files
author
stlc-bot
committed
fix(search): shorter default page-read budget and blocked-page codes for search results (#1573)
Stainless-Generated-From: e5b1cbe
1 parent faa57a0 commit 70af317

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class CacheMetadata(BaseModel):
2626
class ResultHighlights(BaseModel):
2727
"""Highlights status and passages for this result."""
2828

29-
code: Literal["SUCCESS", "NOT_REQUESTED", "TIMEOUT", "CONTENT_TOO_LARGE", "WEBSITE_ACCESS_ERROR", "ERROR"]
29+
code: Literal[
30+
"SUCCESS", "NOT_REQUESTED", "TIMEOUT", "CONTENT_TOO_LARGE", "WEBSITE_ACCESS_ERROR", "WEBSITE_BLOCKED", "ERROR"
31+
]
3032
"""Per-result highlights outcome. Inspect this before reading `highlights`."""
3133

3234
highlights: Optional[List[str]] = None
@@ -39,7 +41,9 @@ class ResultHighlights(BaseModel):
3941
class ResultMarkdown(BaseModel):
4042
"""Markdown scrape status and content for this result."""
4143

42-
code: Literal["SUCCESS", "NOT_REQUESTED", "TIMEOUT", "CONTENT_TOO_LARGE", "WEBSITE_ACCESS_ERROR", "ERROR"]
44+
code: Literal[
45+
"SUCCESS", "NOT_REQUESTED", "TIMEOUT", "CONTENT_TOO_LARGE", "WEBSITE_ACCESS_ERROR", "WEBSITE_BLOCKED", "ERROR"
46+
]
4347
"""Per-result scrape outcome. Inspect this before reading `markdown`."""
4448

4549
markdown: Optional[str] = None

0 commit comments

Comments
 (0)