add CUA MoveAction (#2144)

This commit is contained in:
Shuchang Zheng
2025-04-13 00:22:46 -07:00
committed by GitHub
parent 0a6d366f82
commit 3cbfda57bd
3 changed files with 27 additions and 0 deletions

View File

@@ -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