cua-agent 0.1.23__py3-none-any.whl → 0.1.24__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/core/types.py CHANGED
@@ -54,23 +54,6 @@ LLMModel = LLM
54
54
  Model = LLM
55
55
 
56
56
 
57
- # Default models for each provider
58
- PROVIDER_TO_DEFAULT_MODEL: Dict[LLMProvider, str] = {
59
- LLMProvider.ANTHROPIC: "claude-3-7-sonnet-20250219",
60
- LLMProvider.OPENAI: "gpt-4o",
61
- LLMProvider.OLLAMA: "gemma3:4b-it-q4_K_M",
62
- LLMProvider.OAICOMPAT: "Qwen2.5-VL-7B-Instruct",
63
- }
64
-
65
- # Environment variable names for each provider
66
- PROVIDER_TO_ENV_VAR: Dict[LLMProvider, str] = {
67
- LLMProvider.ANTHROPIC: "ANTHROPIC_API_KEY",
68
- LLMProvider.OPENAI: "OPENAI_API_KEY",
69
- LLMProvider.OLLAMA: "none",
70
- LLMProvider.OAICOMPAT: "none",
71
- }
72
-
73
-
74
57
  class AgentResponse(TypedDict, total=False):
75
58
  """Agent response format."""
76
59
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.1.23
3
+ Version: 0.1.24
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.13,>=3.10
@@ -151,12 +151,34 @@ pip install "cua-agent[ui]"
151
151
 
152
152
  # Create a simple launcher script
153
153
  ```python
154
+ # launch_ui.py
154
155
  from agent.ui.gradio.app import create_gradio_ui
155
156
 
156
157
  app = create_gradio_ui()
157
158
  app.launch(share=False)
158
159
  ```
159
160
 
161
+ # Run the launcher
162
+ python launch_ui.py
163
+ ```
164
+
165
+ ### Setting up API Keys
166
+
167
+ For the Gradio UI to show available models, you need to set API keys as environment variables:
168
+
169
+ ```bash
170
+ # For OpenAI models
171
+ export OPENAI_API_KEY=your_openai_key_here
172
+
173
+ # For Anthropic models
174
+ export ANTHROPIC_API_KEY=your_anthropic_key_here
175
+
176
+ # Launch with both keys set
177
+ OPENAI_API_KEY=your_key ANTHROPIC_API_KEY=your_key python launch_ui.py
178
+ ```
179
+
180
+ Without these environment variables, the UI will show "No models available" for the corresponding providers, but you can still use local models with the OMNI loop provider.
181
+
160
182
  The Gradio UI provides:
161
183
  - Selection of different agent loops (OpenAI, Anthropic, OMNI)
162
184
  - Model selection for each provider
@@ -16,7 +16,7 @@ agent/core/tools/collection.py,sha256=NuwTn6dXSyznxWodfmFDQwUlxxaGb4oBPym4AEJABS
16
16
  agent/core/tools/computer.py,sha256=lT_aW3huoYpcM8kffuokELupSz_WZG_qkaW1gITRC58,3892
17
17
  agent/core/tools/edit.py,sha256=kv4jTKCM0VXrnoNErf7mT-xlr81-7T8v49_VA9y_L4Y,2005
18
18
  agent/core/tools/manager.py,sha256=IRsCXjGc076nncQuyIjODoafnHTDhrf9sP5B4q5Pcdo,1742
19
- agent/core/types.py,sha256=4XnjuCkZAeyOidqixHp3pWVVf3pxc2l-0hNoYlB3Mrk,2914
19
+ agent/core/types.py,sha256=2RKDVzBd6O6woeH7A0oisbdpD_nx67B8ITnkMGu-g2E,2375
20
20
  agent/core/visualization.py,sha256=1DuFF5sSeSf5BRSevBMDxml9-ajl7BQLFm5KBUwMbI8,6573
21
21
  agent/providers/__init__.py,sha256=b4tIBAaIB1V7p8V0BWipHVnMhfHH_OuVgP4OWGSHdD8,194
22
22
  agent/providers/anthropic/__init__.py,sha256=Mj11IZnVshZ2iHkvg4Z5-jrQIaD1WvzDz2Zk_pMwqIA,149
@@ -70,7 +70,7 @@ agent/telemetry.py,sha256=pVGxbj0ewnvq4EGj28CydN4a1iOfvZR_XKL3vIOqhOM,390
70
70
  agent/ui/__init__.py,sha256=ohhxJLBin6k1hl5sKcmBST8mgh23WXgAXz3pN4f470E,45
71
71
  agent/ui/gradio/__init__.py,sha256=ANKZhv1HqsLheWbLVBlyRQ7Q5qGeXuPi5jDs8vu-ZMo,579
72
72
  agent/ui/gradio/app.py,sha256=6n0c_3HBb6ZeN213izyurL8oML1peet1cI8fx82DLZg,33980
73
- cua_agent-0.1.23.dist-info/METADATA,sha256=88aLbVo6etPVlHUPYmxmOpCTRfmeIJ1axKfsrznGG10,9238
74
- cua_agent-0.1.23.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
75
- cua_agent-0.1.23.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
76
- cua_agent-0.1.23.dist-info/RECORD,,
73
+ cua_agent-0.1.24.dist-info/METADATA,sha256=QMXWyaIbPsTaBvKIbHgknaT2nx9I32zqva7fvGa1BhM,9841
74
+ cua_agent-0.1.24.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
75
+ cua_agent-0.1.24.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
76
+ cua_agent-0.1.24.dist-info/RECORD,,