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
Merge branch 'main' into jagjeevan/299
Jagjeevan Kashidc3d2ff530c21
diff --cc libs/python/computer/computer/computer.pyindex a6c17100ca,7f5f9dfbaf..bf530abe64--- a/libs/python/computer/computer/computer.py+++ b/libs/python/computer/computer/computer.py@@@ -1,21 -1,22 +1,28 @@@- from typing import Optional, List, Literal, Dict, Any, Union, TYPE_CHECKING, castimport asyncio+from .models import Computer as ComputerConfig, Display+from .interface.factory import InterfaceFactory+from .tracing import ComputerTracing+from .tracing_wrapper import TracingInterfaceWrapper+import time+from PIL import Imageimport io- import re- from .logger import Logger, LogLevelimport jsonimport logging- from core.telemetry import is_telemetry_enabled, record_eventimport os- from . import helpers-import platform+ import re+ import time+ import traceback+ from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Union, cast++ from core.telemetry import is_telemetry_enabled, record_event+ from PIL import Image++ from . import helpers+ from .interface.factory import InterfaceFactory+ from .logger import Logger, LogLevel+ from .models import Computer as ComputerConfig+ from .models import DisplaySYSTEM_INFO = {"os": platform.system().lower(),@@@ -473,26 -493,22 +506,25 @@@ class Computer# Pass authentication credentials if using cloud providerif self.provider_type == VMProviderType.CLOUD and self.api_key and self.config.name:- self._interface = cast(+ interface = cast(BaseComputerInterface,InterfaceFactory.create_interface_for_os(- os=self.os_type,+ os=self.os_type,ip_address=ip_address,api_key=self.api_key,- vm_name=self.config.name+ vm_name=self.config.name,),)else:- self._interface = cast(+ interface = cast(BaseComputerInterface,InterfaceFactory.create_interface_for_os(- os=self.os_type,- ip_address=ip_address+ os=self.os_type, ip_address=ip_address),)++ self._interface = interface+ self._original_interface = interface# Wait for the WebSocket interface to be readyself.logger.info("Connecting to WebSocket interface...")