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 0459b42
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(scrape): enable highlights with zero data retention (#1246)
Copy file name to clipboardExpand all lines: src/context/dev/types/web_scrape_response.py
+6-20Lines changed: 6 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -69,9 +69,7 @@ class CacheMetadata(BaseModel):
69
69
70
70
71
71
classHighlights(BaseModel):
72
-
"""
73
-
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.
74
-
"""
72
+
"""Relevant passages for your question or topic."""
75
73
76
74
data: Optional[List[str]] =None
77
75
@@ -117,10 +115,7 @@ class Images(BaseModel):
117
115
118
116
119
117
classJson(BaseModel):
120
-
"""Page data extracted into jsonParams.schema, after shared content filters.
121
-
122
-
Values are grounded in the page; optional fields the page does not state are omitted, or null when their type allows null. An empty object when the filters leave no text.
123
-
"""
118
+
"""Page data extracted using your schema."""
124
119
125
120
data: Optional[Dict[str, object]] =None
126
121
@@ -311,7 +306,7 @@ class ProductData(BaseModel):
311
306
312
307
313
308
classProduct(BaseModel):
314
-
"""Product detail page classification and the extracted product."""
309
+
"""Product details found on the page."""
315
310
316
311
data: Optional[ProductData] =None
317
312
@@ -351,11 +346,7 @@ class WebScrapeResponse(BaseModel):
351
346
"""
352
347
353
348
highlights: Highlights
354
-
"""
355
-
Plain-text passages relevant to highlightsParams.query, in page order, each
356
-
prefixed with its section heading in square brackets. Empty when the page has no
357
-
text.
358
-
"""
349
+
"""Relevant passages for your question or topic."""
359
350
360
351
html: HTML
361
352
"""Rendered HTML after content filters."""
@@ -364,12 +355,7 @@ class WebScrapeResponse(BaseModel):
364
355
"""Images after content filters. Empty when none are found."""
365
356
366
357
json_: Json=FieldInfo(alias="json")
367
-
"""Page data extracted into jsonParams.schema, after shared content filters.
368
-
369
-
Values are grounded in the page; optional fields the page does not state are
370
-
omitted, or null when their type allows null. An empty object when the filters
371
-
leave no text.
372
-
"""
358
+
"""Page data extracted using your schema."""
373
359
374
360
markdown: Markdown
375
361
"""Markdown after content filters."""
@@ -381,7 +367,7 @@ class WebScrapeResponse(BaseModel):
381
367
"""Fields produced by parseParams.rules, after shared content filters."""
382
368
383
369
product: Product
384
-
"""Product detail page classification and the extracted product."""
370
+
"""Product details found on the page."""
385
371
386
372
request_id: str
387
373
"""Unique id of this API call, also sent in the X-Request-Id response header.
0 commit comments