Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

remove url check

Dillon DuPont570da7f60dba
diff --git a/libs/python/agent/agent/agent.py b/libs/python/agent/agent/agent.py
index e47468780d..14bd92aade 100644
--- a/libs/python/agent/agent/agent.py
+++ b/libs/python/agent/agent/agent.py
@@ -468,12 +468,12 @@ class ComputerAgent:
},
}
- # Additional URL safety checks for browser environments
- if await computer.get_environment() == "browser":
- current_url = await computer.get_current_url()
- call_output["output"]["current_url"] = current_url
- # TODO: implement a callback for URL safety checks
- # check_blocklisted_url(current_url)
+ # # Additional URL safety checks for browser environments
+ # if await computer.get_environment() == "browser":
+ # current_url = await computer.get_current_url()
+ # call_output["output"]["current_url"] = current_url
+ # # TODO: implement a callback for URL safety checks
+ # # check_blocklisted_url(current_url)
result = [call_output]
await self._on_computer_call_end(item, result)