Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
0.4.0b2
Dillon DuPont0971464c8d33
diff --git a/libs/python/agent2/agent/__init__.py b/libs/python/agent2/agent/__init__.pyindex 9515a9bb31..9fea2f1f4c 100644--- a/libs/python/agent2/agent/__init__.py+++ b/libs/python/agent2/agent/__init__.py@@ -16,4 +16,4 @@ __all__ = ["AgentResponse"]-__version__ = "0.1.0"+__version__ = "0.4.0b2"diff --git a/libs/python/agent2/agent/adapters/huggingfacelocal_adapter.py b/libs/python/agent2/agent/adapters/huggingfacelocal_adapter.pyindex 8335244777..f8706868a2 100644--- a/libs/python/agent2/agent/adapters/huggingfacelocal_adapter.py+++ b/libs/python/agent2/agent/adapters/huggingfacelocal_adapter.py@@ -1,10 +1,17 @@import asyncioimport warningsfrom typing import Iterator, AsyncIterator, Dict, List, Any, Optional-import torch-from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessorfrom litellm.types.utils import GenericStreamingChunk, ModelResponse-from litellm import CustomLLM, completion, acompletion+from litellm.llms.custom_llm import CustomLLM+from litellm import completion, acompletion++# Try to import HuggingFace dependencies+try:+ import torch+ from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor+ HF_AVAILABLE = True+except ImportError:+ HF_AVAILABLE = Falseclass HuggingFaceLocalAdapter(CustomLLM):@@ -102,6 +109,12 @@ class HuggingFaceLocalAdapter(CustomLLM):Returns:Generated text response"""+ if not HF_AVAILABLE:+ raise ImportError(+ "HuggingFace transformers dependencies not found. "+ "Please install with: pip install \"cua-agent[uitars-hf]\""+ )+# Extract messages and model from kwargsmessages = kwargs.get('messages', [])model_name = kwargs.get('model', 'ByteDance-Seed/UI-TARS-1.5-7B')diff --git a/libs/python/agent2/pyproject.toml b/libs/python/agent2/pyproject.tomlindex cd5530d31d..031b26e572 100644--- a/libs/python/agent2/pyproject.toml+++ b/libs/python/agent2/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "pdm.backend"[project]name = "cua-agent"-version = "0.4.0b1"+version = "0.4.0b2"description = "CUA (Computer Use) Agent for AI-driven computer interaction"readme = "README.md"authors = [