Skip to content

Commit 63cca7b

Browse files
fix: Changed element_prompts type from List[str] to Union[List[str], Dict[str, str]] in AIScrapeParams
1 parent 44d6ec6 commit 63cca7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jigsawstack/web.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ class BaseAIScrapeParams(TypedDict):
128128

129129

130130
class AIScrapeParams(BaseAIScrapeParams):
131-
element_prompts: NotRequired[List[str]]
131+
element_prompts: NotRequired[Union[List[str], Dict[str, str]]]
132+
"""
133+
List of prompts or a dictionary of key-value prompts for element extraction.
134+
Max 5 items. If dict, max 50 chars per key and max 500 chars per prompt value.
135+
"""
132136
root_element_selector: NotRequired[str]
133137
page_position: NotRequired[int]
134138

0 commit comments

Comments
 (0)