cua-agent 0.4.0b1__py3-none-any.whl → 0.4.0b2__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.0b1"
19
+ __version__ = "0.4.0b2"
@@ -1,10 +1,17 @@
1
1
  import asyncio
2
2
  import warnings
3
3
  from typing import Iterator, AsyncIterator, Dict, List, Any, Optional
4
- import torch
5
- from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
6
4
  from litellm.types.utils import GenericStreamingChunk, ModelResponse
7
- from litellm import CustomLLM, completion, acompletion
5
+ from litellm.llms.custom_llm import CustomLLM
6
+ from litellm import completion, acompletion
7
+
8
+ # Try to import HuggingFace dependencies
9
+ try:
10
+ import torch
11
+ from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
12
+ HF_AVAILABLE = True
13
+ except ImportError:
14
+ HF_AVAILABLE = False
8
15
 
9
16
 
10
17
  class HuggingFaceLocalAdapter(CustomLLM):
@@ -102,6 +109,12 @@ class HuggingFaceLocalAdapter(CustomLLM):
102
109
  Returns:
103
110
  Generated text response
104
111
  """
112
+ if not HF_AVAILABLE:
113
+ raise ImportError(
114
+ "HuggingFace transformers dependencies not found. "
115
+ "Please install with: pip install \"cua-agent[uitars-hf]\""
116
+ )
117
+
105
118
  # Extract messages and model from kwargs
106
119
  messages = kwargs.get('messages', [])
107
120
  model_name = kwargs.get('model', 'ByteDance-Seed/UI-TARS-1.5-7B')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.0b1
3
+ Version: 0.4.0b2
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,7 +1,7 @@
1
- agent/__init__.py,sha256=uGYkMXYdujuYoSDdH-OLEIj5uP1oXhASE6M_sMplSV0,356
1
+ agent/__init__.py,sha256=rZk-enq3xJXRrl6LrpsQhJWfBtahjUP-0yY9raO72O0,356
2
2
  agent/__main__.py,sha256=lBUe8Niqa5XoCjwFfXyX7GtnUwjjZXC1-j4V9mvUYSc,538
3
3
  agent/adapters/__init__.py,sha256=szM2HMten2WkcqXeRnan__-sXjpyS4eyvIW0LXSfj4U,178
4
- agent/adapters/huggingfacelocal_adapter.py,sha256=C8Z9ecRJhNasFFCqYfPKleZtJI4gE_C0jm6I_AwJ37Q,7652
4
+ agent/adapters/huggingfacelocal_adapter.py,sha256=dnzzxYCvFiuDdNzsb_1uM-boWv1eS__dWMve_fAnlUc,8038
5
5
  agent/agent.py,sha256=tXVnqzwC721UUN57OWEatfoZXFAzaDfrZ0G-EuVK3Ug,24022
6
6
  agent/callbacks/__init__.py,sha256=SO9NKTrmk4sZ7ZwvWFhTtK9co1FgwubUe3bwkIXYwn0,472
7
7
  agent/callbacks/base.py,sha256=UnnnYlh6XCm6HKZZsAPaT_Eyo9LUYLyjyNwF-QRm6Ns,4691
@@ -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.0b1.dist-info/METADATA,sha256=YidBvaV6v4NFZr5qWafwNQ0HK6X5oD59p2wR2mZFJHQ,12062
28
- cua_agent-0.4.0b1.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
29
- cua_agent-0.4.0b1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
30
- cua_agent-0.4.0b1.dist-info/RECORD,,
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,,