add CUA MoveAction (#2144)
This commit is contained in:
@@ -18,6 +18,7 @@ from skyvern.webeye.actions.actions import (
|
||||
DownloadFileAction,
|
||||
InputTextAction,
|
||||
KeypressAction,
|
||||
MoveAction,
|
||||
NullAction,
|
||||
ScrollAction,
|
||||
SelectOption,
|
||||
@@ -281,6 +282,13 @@ async def parse_cua_actions(
|
||||
reasoning=reasoning,
|
||||
intention=reasoning,
|
||||
)
|
||||
case "move":
|
||||
action = MoveAction(
|
||||
x=cua_action.x,
|
||||
y=cua_action.y,
|
||||
reasoning=reasoning,
|
||||
intention=reasoning,
|
||||
)
|
||||
case _:
|
||||
raise ValueError(f"Unsupported action type: {action_type}")
|
||||
action.organization_id = task.organization_id
|
||||
|
||||
Reference in New Issue
Block a user