diff --git a/agentplatform/_genai/sandboxes.py b/agentplatform/_genai/sandboxes.py index d25746864e..e19f93a2bd 100644 --- a/agentplatform/_genai/sandboxes.py +++ b/agentplatform/_genai/sandboxes.py @@ -706,17 +706,6 @@ def create( Returns: AgentEngineSandboxOperation: The operation for creating the sandbox. """ - if spec: - computer_use = False - if isinstance(spec, dict): - computer_use = spec.get("computer_use_environment") is not None - elif hasattr(spec, "computer_use_environment"): - computer_use = True - - if computer_use: - logging.warning( - "The computer_use_environment feature in the sandboxes module is experimental and may change in future versions." - ) operation = self._create( name=name, spec=spec, diff --git a/vertexai/_genai/sandboxes.py b/vertexai/_genai/sandboxes.py index 7284303960..0209d23078 100644 --- a/vertexai/_genai/sandboxes.py +++ b/vertexai/_genai/sandboxes.py @@ -705,17 +705,6 @@ def create( Returns: AgentEngineSandboxOperation: The operation for creating the sandbox. """ - if spec: - computer_use = False - if isinstance(spec, dict): - computer_use = spec.get("computer_use_environment") is not None - elif hasattr(spec, "computer_use_environment"): - computer_use = True - - if computer_use: - logging.warning( - "The computer_use_environment feature in the sandboxes module is experimental and may change in future versions." - ) operation = self._create( name=name, spec=spec,