cua-agent 0.4.0b2__py3-none-any.whl → 0.4.0b4__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/__init__.py CHANGED
@@ -16,4 +16,4 @@ __all__ = [
16
16
  "AgentResponse"
17
17
  ]
18
18
 
19
- __version__ = "0.4.0b2"
19
+ __version__ = "0.4.0b3"
agent/cli.py CHANGED
@@ -10,14 +10,21 @@ Examples:
10
10
  python -m agent.cli omniparser+anthropic/claude-3-5-sonnet-20241022
11
11
  """
12
12
 
13
- import asyncio
14
- import argparse
15
- import os
16
- import sys
17
- import json
18
- from typing import List, Dict, Any
19
- import dotenv
20
- from yaspin import yaspin
13
+ try:
14
+ import asyncio
15
+ import argparse
16
+ import os
17
+ import sys
18
+ import json
19
+ from typing import List, Dict, Any
20
+ import dotenv
21
+ from yaspin import yaspin
22
+ except ImportError:
23
+ if __name__ == "__main__":
24
+ raise ImportError(
25
+ "CLI dependencies not found. "
26
+ "Please install with: pip install \"cua-agent[cli]\""
27
+ )
21
28
 
22
29
  # Load environment variables
23
30
  dotenv.load_dotenv()
agent/loops/omniparser.py CHANGED
@@ -84,7 +84,7 @@ except ImportError:
84
84
  pass
85
85
  OMNIPARSER_SINGLETON = None
86
86
 
87
- def get_parser() -> OmniParser:
87
+ def get_parser():
88
88
  global OMNIPARSER_SINGLETON
89
89
  if OMNIPARSER_SINGLETON is None:
90
90
  OMNIPARSER_SINGLETON = OmniParser()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.0b2
3
+ Version: 0.4.0b4
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.11
@@ -1,4 +1,4 @@
1
- agent/__init__.py,sha256=rZk-enq3xJXRrl6LrpsQhJWfBtahjUP-0yY9raO72O0,356
1
+ agent/__init__.py,sha256=aRumS6zu5IoVToS-fasvIJ7msjE-gufNsMUY-LPAf0Q,356
2
2
  agent/__main__.py,sha256=lBUe8Niqa5XoCjwFfXyX7GtnUwjjZXC1-j4V9mvUYSc,538
3
3
  agent/adapters/__init__.py,sha256=szM2HMten2WkcqXeRnan__-sXjpyS4eyvIW0LXSfj4U,178
4
4
  agent/adapters/huggingfacelocal_adapter.py,sha256=dnzzxYCvFiuDdNzsb_1uM-boWv1eS__dWMve_fAnlUc,8038
@@ -10,12 +10,12 @@ agent/callbacks/image_retention.py,sha256=tiuRT5ke9xXTb2eP8Gz-2ITyAMY29LURUH6Abj
10
10
  agent/callbacks/logging.py,sha256=OOxU97EzrxlnUAtiEnvy9FB7SwCUK90-rdpDFA2Ae4E,10921
11
11
  agent/callbacks/pii_anonymization.py,sha256=UKAqNacHG3z92_6uocVzOIl8gJoqyofldCoCmB4UVIE,10268
12
12
  agent/callbacks/trajectory_saver.py,sha256=POE8aPT-MBzfW873wr6C7iiVUHtp483KwvLPxC1S3EY,11626
13
- agent/cli.py,sha256=QqIgDYjBkXf_0-bxugafxQr-Otp4avoA1SI5ZbtFhBc,9768
13
+ agent/cli.py,sha256=WZFyhmTbFnA7QgZmqKO5tGoWsKeO12-GVlBab314o9Q,10002
14
14
  agent/computer_handler.py,sha256=2gfFBeDk9Vd54x9mOqnswMo8BdjUduLo5I0RbBPLovY,3964
15
15
  agent/decorators.py,sha256=bCmcCjP31WEjWg1D91OE2jo7AZTfGa9cNgCnYUvjiyw,2832
16
16
  agent/loops/__init__.py,sha256=_qpP_--3ePdFkTZP8qmUEFlBsy6m4h8fj0gGLDKA7zw,217
17
17
  agent/loops/anthropic.py,sha256=w5s_zvkXdcHt0DgBMYjDQGDMBXK4bPu-SyeIMhA1Rrs,32243
18
- agent/loops/omniparser.py,sha256=qfQk9GsuSd4MAJL7mRSWv_fZBOn2dfp3HMhDuMGHKxk,11436
18
+ agent/loops/omniparser.py,sha256=m3bDNQ0Igc_HHVoAbjVNj599uRoC9Eap3DCALg6RZ54,11422
19
19
  agent/loops/openai.py,sha256=ArTqadeJY8F9N8ZLKfswlzgHV_54HbWJgLd4l6ele9w,3010
20
20
  agent/loops/uitars.py,sha256=L0NYxKoIiMfIHbyomnaiK3ZGLmLv3QMx9nX57GruAk0,26323
21
21
  agent/responses.py,sha256=8vnCqi21x3gzo59yDmcsA_E_-CyYxIuCwgfQF0PIomg,6867
@@ -24,7 +24,7 @@ agent/ui/__init__.py,sha256=o7NIpZGFiCTUhgj6eB7gWRRpVhrUAsrOdWnPgbfDgVM,124
24
24
  agent/ui/gradio/__init__.py,sha256=j3dc1i14daVIDEo-3K1w_v5EyDsHeB3TdgKkuteDivM,143
25
25
  agent/ui/gradio/app.py,sha256=9i4YzLZRkvPrYKnrl6eDx1mR2QaSSsWgG-YQVlhedX8,8788
26
26
  agent/ui/gradio/ui_components.py,sha256=IZsYOwn3dwQN8E5-3cFVlLhGlu77I35YhdPY8QxB0Uk,33513
27
- cua_agent-0.4.0b2.dist-info/METADATA,sha256=1DV8S2V-FjsRcyszafS1cQDBuNy_M1R-MVZBoo14-aY,12062
28
- cua_agent-0.4.0b2.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
29
- cua_agent-0.4.0b2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
30
- cua_agent-0.4.0b2.dist-info/RECORD,,
27
+ cua_agent-0.4.0b4.dist-info/METADATA,sha256=w5UZTqIVKO8KcaR5FePe9z-iog9a4WWDIwpYDJi4xIQ,12062
28
+ cua_agent-0.4.0b4.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
29
+ cua_agent-0.4.0b4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
30
+ cua_agent-0.4.0b4.dist-info/RECORD,,