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.

Ignore extra computers when running evals

Dillon DuPontfc0f10aaf93c
diff --git a/libs/python/agent/agent/integrations/hud/agent.py b/libs/python/agent/agent/integrations/hud/agent.py
index 18a231c850..c1465ee61a 100644
--- a/libs/python/agent/agent/integrations/hud/agent.py
+++ b/libs/python/agent/agent/integrations/hud/agent.py
@@ -128,10 +128,11 @@ class MCPComputerAgent(MCPAgent):
}
agent_tools: list[Any] = [computer_shim]
if tools:
- for tool in tools:
- if is_agent_computer(tool):
- raise ValueError(f"Too many Computer tools: MCPComputerAgent already includes a Computer interface. Received a Computer tool in tools= (e.g., {tool!r}). Remove it and retry.")
- agent_tools.extend(tools)
+ agent_tools.extend([
+ tool
+ for tool in tools
+ if not is_agent_computer(tool)
+ ])
agent_kwargs = {
"model": self.model,