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.

Renamed action from mouse_move to mouse

Dillon DuPont6e28da721365
diff --git a/libs/python/agent/agent/loops/anthropic.py b/libs/python/agent/agent/loops/anthropic.py
index 7c7ed3cebc..02ac1c2984 100644
--- a/libs/python/agent/agent/loops/anthropic.py
+++ b/libs/python/agent/agent/loops/anthropic.py
@@ -326,13 +326,13 @@ def _convert_responses_items_to_completion_messages(messages: Messages) -> List[
"text": "+".join(action.get("keys", []))
}
})
- elif action_type == "mouse_move":
+ elif action_type in ["mouse_move", "move"]:
# Input:
# {
# "type": "computer_call",
# "call_id": "call_1",
# "action": {
- # "type": "mouse_move",
+ # "type": "move",
# "x": 150,
# "y": 250
# }