infer action type from instruction (#1231)

This commit is contained in:
LawyZheng 2024-11-21 17:38:42 +08:00 committed by GitHub
parent 9cd1f15763
commit bb6d3e6a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 7 deletions

View file

@ -6,7 +6,6 @@ from pydantic import BaseModel, Field
from skyvern.forge.sdk.schemas.tasks import ProxyLocation
from skyvern.forge.sdk.workflow.models.block import BlockType, FileType
from skyvern.forge.sdk.workflow.models.parameter import ParameterType, WorkflowParameterType
from skyvern.webeye.actions.actions import ActionType
class ParameterYAML(BaseModel, abc.ABC):
@ -219,7 +218,6 @@ class ValidationBlockYAML(BlockYAML):
class ActionBlockYAML(BlockYAML):
action_type: ActionType
block_type: Literal[BlockType.ACTION] = BlockType.ACTION # type: ignore
url: str | None = None