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: Corrected f-string syntax error in agent.py

masterbatcoderman100d16571d401c
diff --git a/libs/python/agent/agent/agent.py b/libs/python/agent/agent/agent.py
index 9339e9a84f..fb119a68bf 100644
--- a/libs/python/agent/agent/agent.py
+++ b/libs/python/agent/agent/agent.py
@@ -533,7 +533,7 @@ class ComputerAgent:
# Perform function call
function = self._get_tool(item.get("name"))
if not function:
- raise ToolError(f"Function {item.get("name")} not found")
+ raise ToolError(f"Function {item.get('name')} not found")
args = json.loads(item.get("arguments"))