Skip to content

Automate browser based workflows with AI

fix CUA pending checks schema (#2189)

Shuchang Zheng2e5e11a239e2
diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py
index 850506c2a..ae7a28f9e 100644
--- a/skyvern/forge/agent.py
+++ b/skyvern/forge/agent.py
@@ -1334,7 +1334,8 @@ class ForgeAgent:
},
}
if last_computer_call.pending_safety_checks:
- computer_call_input["acknowledge_safety_checks"] = last_computer_call.pending_safety_checks
+ pending_checks = [check.model_dump() for check in last_computer_call.pending_safety_checks]
+ computer_call_input["acknowledge_safety_checks"] = pending_checks
current_response = await app.OPENAI_CLIENT.responses.create(
model="computer-use-preview",