mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
add download block (#1266)
This commit is contained in:
parent
fcc83f6fe4
commit
7bc6ec8e46
3 changed files with 48 additions and 0 deletions
|
@ -77,6 +77,7 @@ class BlockType(StrEnum):
|
|||
EXTRACTION = "extraction"
|
||||
LOGIN = "login"
|
||||
WAIT = "wait"
|
||||
FILE_DOWNLOAD = "file_download"
|
||||
|
||||
|
||||
class BlockStatus(StrEnum):
|
||||
|
@ -1348,6 +1349,10 @@ class LoginBlock(BaseTaskBlock):
|
|||
block_type: Literal[BlockType.LOGIN] = BlockType.LOGIN
|
||||
|
||||
|
||||
class FileDownloadBlock(BaseTaskBlock):
|
||||
block_type: Literal[BlockType.FILE_DOWNLOAD] = BlockType.FILE_DOWNLOAD
|
||||
|
||||
|
||||
BlockSubclasses = Union[
|
||||
ForLoopBlock,
|
||||
TaskBlock,
|
||||
|
@ -1363,5 +1368,6 @@ BlockSubclasses = Union[
|
|||
ExtractionBlock,
|
||||
LoginBlock,
|
||||
WaitBlock,
|
||||
FileDownloadBlock,
|
||||
]
|
||||
BlockTypeVar = Annotated[BlockSubclasses, Field(discriminator="block_type")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue