cua-agent 0.4.16__py3-none-any.whl → 0.4.17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cua-agent might be problematic. Click here for more details.

agent/agent.py CHANGED
@@ -459,8 +459,7 @@ class ComputerAgent:
459
459
  assert_callable_with(computer_method, **action_args)
460
460
  await computer_method(**action_args)
461
461
  else:
462
- print(f"Unknown computer action: {action_type}")
463
- return []
462
+ raise ToolError(f"Unknown computer action: {action_type}")
464
463
 
465
464
  # Take screenshot after action
466
465
  if self.screenshot_delay and self.screenshot_delay > 0:
@@ -507,7 +506,7 @@ class ComputerAgent:
507
506
  # Perform function call
508
507
  function = self._get_tool(item.get("name"))
509
508
  if not function:
510
- raise ValueError(f"Function {item.get("name")} not found")
509
+ raise ToolError(f"Function {item.get("name")} not found")
511
510
 
512
511
  args = json.loads(item.get("arguments"))
513
512
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.16
3
+ Version: 0.4.17
4
4
  Summary: CUA (Computer Use) Agent for AI-driven computer interaction
5
5
  Author-Email: TryCua <gh@trycua.com>
6
6
  Requires-Python: >=3.12
@@ -3,7 +3,7 @@ agent/__main__.py,sha256=lBUe8Niqa5XoCjwFfXyX7GtnUwjjZXC1-j4V9mvUYSc,538
3
3
  agent/adapters/__init__.py,sha256=lNH6srgIMmZOI7dgicJs3LCk_1MeqLF0lou9n7b23Ts,238
4
4
  agent/adapters/huggingfacelocal_adapter.py,sha256=Uqjtcohhzd33VFh38Ra2y4Uv_lTghMswoqS1t-KKFkw,8480
5
5
  agent/adapters/human_adapter.py,sha256=xT4nnfNXb1z-vnGFlLmFEZN7TMcoMBGS40MtR1Zwv4o,13079
6
- agent/agent.py,sha256=Zo7K7FacdCwGUDW3cuMCpJ1h9tkULH3hrgx94tdjCsk,29123
6
+ agent/agent.py,sha256=XBZu_iNSWzyBk7Qf9Q-FkyHoqdikdldK6T1LAM3lLWY,29102
7
7
  agent/callbacks/__init__.py,sha256=yxxBXUqpXQ-jRi_ixJMtmQPxoNRy5Vz1PUBzNNa1Dwg,538
8
8
  agent/callbacks/base.py,sha256=UnnnYlh6XCm6HKZZsAPaT_Eyo9LUYLyjyNwF-QRm6Ns,4691
9
9
  agent/callbacks/budget_manager.py,sha256=RyKM-7iXQcDotYvrw3eURzeEHEXvQjID-NobtvQWE7k,1832
@@ -43,7 +43,7 @@ agent/ui/__main__.py,sha256=vudWXYvGM0aNT5aZ94HPtGW8YXOZ4cLXepHyhUM_k1g,73
43
43
  agent/ui/gradio/__init__.py,sha256=yv4Mrfo-Sj2U5sVn_UJHAuwYCezo-5O4ItR2C9jzNko,145
44
44
  agent/ui/gradio/app.py,sha256=Ol97YEbwREZZQ9_PMjVHlfOcu9BGsawxgAGAm79hT80,9117
45
45
  agent/ui/gradio/ui_components.py,sha256=dJUvKDmc1oSejtoR_gU_oWWYwxaOOQyPloSYRGMrUCQ,36068
46
- cua_agent-0.4.16.dist-info/METADATA,sha256=iKOsC1Me0Rq_jQrhfgLN-uY1KR5OtKIQXpRGXpnH_LE,12698
47
- cua_agent-0.4.16.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
48
- cua_agent-0.4.16.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
49
- cua_agent-0.4.16.dist-info/RECORD,,
46
+ cua_agent-0.4.17.dist-info/METADATA,sha256=ngs59u9_Ec6SfwAdvr8UytvNFLt9DV0pMIQAb3ElbA0,12698
47
+ cua_agent-0.4.17.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
48
+ cua_agent-0.4.17.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
49
+ cua_agent-0.4.17.dist-info/RECORD,,