You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f0f7af
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(scrape): add highlights format to POST /web/scrape (#1210)
Copy file name to clipboardExpand all lines: src/context/dev/types/web_scrape_response.py
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
"Bytes",
13
13
"BytesData",
14
14
"CacheMetadata",
15
+
"Highlights",
15
16
"HTML",
16
17
"Images",
17
18
"ImagesData",
@@ -63,6 +64,16 @@ class CacheMetadata(BaseModel):
63
64
"""
64
65
65
66
67
+
classHighlights(BaseModel):
68
+
"""
69
+
Plain-text passages relevant to highlightsParams.query, in page order, each prefixed with its section heading in square brackets. Empty when the page has no text.
70
+
"""
71
+
72
+
data: Optional[List[str]] =None
73
+
74
+
requested: bool
75
+
76
+
66
77
classHTML(BaseModel):
67
78
"""Rendered HTML after content filters."""
68
79
@@ -243,6 +254,13 @@ class WebScrapeResponse(BaseModel):
243
254
to the output was a hit; age_ms is the oldest contributing hit.
244
255
"""
245
256
257
+
highlights: Highlights
258
+
"""
259
+
Plain-text passages relevant to highlightsParams.query, in page order, each
260
+
prefixed with its section heading in square brackets. Empty when the page has no
0 commit comments