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.

fix(agent): accept 'computer_use' as valid function name for Fara model (#865)

Sarina Li371931bf59f8
diff --git a/libs/python/agent/agent/responses.py b/libs/python/agent/agent/responses.py
index f8640c7985..a6cde5d562 100644
--- a/libs/python/agent/agent/responses.py
+++ b/libs/python/agent/agent/responses.py
@@ -717,7 +717,7 @@ def convert_completion_messages_to_responses_items(
function = tool_call.get("function", {})
function_name = function.get("name")
- if function_name == "computer":
+ if function_name in ("computer", "computer_use"):
# Parse computer action
try:
action = json.loads(function.get("arguments", "{}"))