Skip to content

Commit 18c86ae

Browse files
author
stlc-bot
committed
fix(scrape): keep the relevant sections of long pages for JSON extraction (#1582)
Stainless-Generated-From: 2ec8f9e
1 parent 70af317 commit 18c86ae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ class Json(BaseModel):
157157
error_code: Optional[str] = None
158158
"""Why the output failed. Present only when `success` is `false`."""
159159

160+
is_truncated: Optional[Literal[True]] = FieldInfo(alias="isTruncated", default=None)
161+
"""
162+
True when the page was too long to read in full, so values found only in the
163+
unread parts may be missing.
164+
"""
165+
160166
message: Optional[str] = None
161167
"""Explanation of the failure and possible next steps."""
162168

0 commit comments

Comments
 (0)