cua-agent 0.4.20__tar.gz → 0.4.22__tar.gz

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.

Files changed (50) hide show
  1. {cua_agent-0.4.20 → cua_agent-0.4.22}/PKG-INFO +1 -1
  2. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/agent.py +5 -5
  3. {cua_agent-0.4.20 → cua_agent-0.4.22}/pyproject.toml +1 -1
  4. {cua_agent-0.4.20 → cua_agent-0.4.22}/README.md +0 -0
  5. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/__init__.py +0 -0
  6. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/__main__.py +0 -0
  7. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/adapters/__init__.py +0 -0
  8. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/adapters/huggingfacelocal_adapter.py +0 -0
  9. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/adapters/human_adapter.py +0 -0
  10. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/adapters/mlxvlm_adapter.py +0 -0
  11. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/__init__.py +0 -0
  12. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/base.py +0 -0
  13. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/budget_manager.py +0 -0
  14. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/image_retention.py +0 -0
  15. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/logging.py +0 -0
  16. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/operator_validator.py +0 -0
  17. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/pii_anonymization.py +0 -0
  18. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/telemetry.py +0 -0
  19. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/callbacks/trajectory_saver.py +0 -0
  20. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/cli.py +0 -0
  21. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/computers/__init__.py +0 -0
  22. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/computers/base.py +0 -0
  23. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/computers/cua.py +0 -0
  24. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/computers/custom.py +0 -0
  25. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/decorators.py +0 -0
  26. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/human_tool/__init__.py +0 -0
  27. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/human_tool/__main__.py +0 -0
  28. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/human_tool/server.py +0 -0
  29. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/human_tool/ui.py +0 -0
  30. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/integrations/hud/__init__.py +0 -0
  31. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/integrations/hud/proxy.py +0 -0
  32. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/__init__.py +0 -0
  33. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/anthropic.py +0 -0
  34. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/base.py +0 -0
  35. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/composed_grounded.py +0 -0
  36. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/glm45v.py +0 -0
  37. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/gta1.py +0 -0
  38. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/model_types.csv +0 -0
  39. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/omniparser.py +0 -0
  40. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/openai.py +0 -0
  41. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/loops/uitars.py +0 -0
  42. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/proxy/examples.py +0 -0
  43. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/proxy/handlers.py +0 -0
  44. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/responses.py +0 -0
  45. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/types.py +0 -0
  46. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/ui/__init__.py +0 -0
  47. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/ui/__main__.py +0 -0
  48. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/ui/gradio/__init__.py +0 -0
  49. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/ui/gradio/app.py +0 -0
  50. {cua_agent-0.4.20 → cua_agent-0.4.22}/agent/ui/gradio/ui_components.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cua-agent
3
- Version: 0.4.20
3
+ Version: 0.4.22
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
@@ -188,7 +188,11 @@ class ComputerAgent:
188
188
  max_trajectory_budget: If set, adds BudgetManagerCallback to track usage costs and stop when budget is exceeded
189
189
  telemetry_enabled: If set, adds TelemetryCallback to track anonymized usage data. Enabled by default.
190
190
  **kwargs: Additional arguments passed to the agent loop
191
- """
191
+ """
192
+ # If the loop is "human/human", we need to prefix a grounding model fallback
193
+ if model in ["human/human", "human"]:
194
+ model = "openai/computer-use-preview+human/human"
195
+
192
196
  self.model = model
193
197
  self.tools = tools or []
194
198
  self.custom_loop = custom_loop
@@ -253,10 +257,6 @@ class ComputerAgent:
253
257
 
254
258
  # == Initialize computer agent ==
255
259
 
256
- # If the loop is "human/human", we need to prefix a grounding model fallback
257
- if self.agent_loop in ["human/human", "human"]:
258
- self.agent_loop = "openai/computer-use-preview+human/human"
259
-
260
260
  # Find the appropriate agent loop
261
261
  if custom_loop:
262
262
  self.agent_loop = custom_loop
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "cua-agent"
9
- version = "0.4.20"
9
+ version = "0.4.22"
10
10
  description = "CUA (Computer Use) Agent for AI-driven computer interaction"
11
11
  readme = "README.md"
12
12
  authors = [
File without changes
File without changes
File without changes
File without changes
File without changes