Enforce navigation_goal in NavigationBlock and data_extraction_goal in ExtractionBlock (#1257)

This commit is contained in:
Shuchang Zheng 2024-11-25 11:19:35 -08:00 committed by GitHub
parent d52025472f
commit f28a3bc497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -253,9 +253,9 @@ class NavigationBlockYAML(BlockYAML):
class ExtractionBlockYAML(BlockYAML):
block_type: Literal[BlockType.EXTRACTION] = BlockType.EXTRACTION # type: ignore
data_extraction_goal: str
url: str | None = None
title: str = ""
data_extraction_goal: str | None = None
data_schema: dict[str, Any] | list | None = None
max_retries: int = 0
max_steps_per_run: int | None = None