From 2b9be8d2fe835141332f0989fe0ee2474123c963 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Wed, 26 Mar 2025 20:59:32 -0700 Subject: [PATCH] Disable complete verification for returend complete_action when complete_verification flag is set to False (#2026) --- skyvern/forge/agent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index d4de8a08..4a651b77 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -989,6 +989,10 @@ class ForgeAgent: self.async_operation_pool.run_operation(task.task_id, AgentPhase.action) current_page = await browser_state.must_get_working_page() + if isinstance(action, CompleteAction) and not complete_verification: + # Do not verify the complete action when complete_verification is False + # set verified to True will skip the completion verification + action.verified = True results = await ActionHandler.handle_action(scraped_page, task, step, current_page, action) detailed_agent_step_output.actions_and_results[action_idx] = ( action,