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.

added kwarg filter

Dillon DuPonte8210389a52c
diff --git a/libs/python/agent/agent/callbacks/operator_validator.py b/libs/python/agent/agent/callbacks/operator_validator.py
index 9f2bc67164..eaf3a7dec4 100644
--- a/libs/python/agent/agent/callbacks/operator_validator.py
+++ b/libs/python/agent/agent/callbacks/operator_validator.py
@@ -68,7 +68,6 @@ class OperatorNormalizerCallback(AsyncCallbackHandler):
keys = action.get("keys")
if isinstance(keys, str):
action["keys"] = keys.replace("-", "+").split("+") if len(keys) > 1 else [keys]
- # put here for: "please replace _remove_keys with _keep_keys and only keep the keys that are required"
required_keys_by_type = {
# OpenAI actions
"click": ["type", "button", "x", "y"],