Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
script generation bug: single completion action (#3748)
Shuchang Zhengde74b688a60e
diff --git a/skyvern/core/script_generations/generate_script.py b/skyvern/core/script_generations/generate_script.pyindex 7b3575769..425b0c668 100644--- a/skyvern/core/script_generations/generate_script.py+++ b/skyvern/core/script_generations/generate_script.py@@ -481,7 +481,7 @@ def _build_block_fn(block: dict[str, Any], actions: list[dict[str, Any]]) -> Funblock_type = block.get("block_type")if block_type in SCRIPT_TASK_BLOCKS_WITH_COMPLETE_ACTION:complete_action = {"action_type": "complete"}- body_stmts.append(_action_to_stmt(complete_action, block, assign_to_output=assign_to_output))+ body_stmts.append(_action_to_stmt(complete_action, block))# For extraction blocks, add return output statement if we have actionsif is_extraction_block and any(