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
Fix import omni types
f-trycua36fccfde8771
diff --git a/libs/agent/agent/core/agent.py b/libs/agent/agent/core/agent.pyindex 3d533f53a8..6f2c627817 100644--- a/libs/agent/agent/core/agent.py+++ b/libs/agent/agent/core/agent.py@@ -6,8 +6,7 @@ import osfrom typing import AsyncGenerator, Optionalfrom computer import Computer-from ..providers.omni.types import LLM-from ..core.types import AgentLoop+from .types import LLM, AgentLoopfrom .types import AgentResponsefrom .factory import LoopFactoryfrom .provider_config import DEFAULT_MODELS, ENV_VARSdiff --git a/libs/agent/agent/core/factory.py b/libs/agent/agent/core/factory.pyindex cf15158f3d..091f6c345f 100644--- a/libs/agent/agent/core/factory.py+++ b/libs/agent/agent/core/factory.py@@ -8,10 +8,6 @@ from computer import Computerfrom .types import AgentLoopfrom .base import BaseLoop-# For type checking only-if TYPE_CHECKING:- from ..providers.omni.types import LLMProvider-logger = logging.getLogger(__name__)@@ -78,7 +74,7 @@ class LoopFactory:try:from ..providers.omni.loop import OmniLoopfrom ..providers.omni.parser import OmniParser- from ..providers.omni.types import LLMProvider+ from .types import LLMProviderexcept ImportError:raise ImportError("The 'omni' provider is not installed. "@@ -91,9 +87,6 @@ class LoopFactory:# We know provider is the correct type at this point, so cast itprovider_instance = cast(LLMProvider, provider)- # Get provider_base_url from the LLM object if it exists- provider_base_url = getattr(provider, "provider_base_url", None)-return OmniLoop(provider=provider_instance,api_key=api_key,diff --git a/libs/agent/agent/core/provider_config.py b/libs/agent/agent/core/provider_config.pyindex a2b37c696e..7fae13d07b 100644--- a/libs/agent/agent/core/provider_config.py+++ b/libs/agent/agent/core/provider_config.py@@ -1,6 +1,6 @@"""Provider-specific configurations and constants."""-from ..providers.omni.types import LLMProvider+from .types import LLMProvider# Default models for different providersDEFAULT_MODELS = {diff --git a/libs/agent/agent/providers/omni/__init__.py b/libs/agent/agent/providers/omni/__init__.pyindex c09fb386e1..a93b85770c 100644--- a/libs/agent/agent/providers/omni/__init__.py+++ b/libs/agent/agent/providers/omni/__init__.py@@ -1,6 +1,6 @@"""Omni provider implementation."""-from .types import LLMProvider+from ...core.types import LLMProviderfrom .image_utils import (decode_base64_image,)diff --git a/libs/agent/agent/providers/omni/loop.py b/libs/agent/agent/providers/omni/loop.pyindex 948622a4b6..33124b25ad 100644--- a/libs/agent/agent/providers/omni/loop.py+++ b/libs/agent/agent/providers/omni/loop.py@@ -16,7 +16,7 @@ from ...core.messages import StandardMessageManager, ImageRetentionConfigfrom .utils import to_openai_agent_response_formatfrom ...core.types import AgentResponsefrom computer import Computer-from .types import LLMProvider+from ...core.types import LLMProviderfrom .clients.openai import OpenAIClientfrom .clients.anthropic import AnthropicClientfrom .clients.ollama import OllamaClientdiff --git a/libs/agent/agent/providers/omni/tools/manager.py b/libs/agent/agent/providers/omni/tools/manager.pyindex 9e8deafefd..bce3a4ad55 100644--- a/libs/agent/agent/providers/omni/tools/manager.py+++ b/libs/agent/agent/providers/omni/tools/manager.py@@ -7,7 +7,7 @@ from ....core.tools import BaseToolManager, ToolResultfrom ....core.tools.collection import ToolCollectionfrom .computer import ComputerToolfrom .bash import BashTool-from ..types import LLMProvider+from ....core.types import LLMProviderclass ToolManager(BaseToolManager):