From aea254a8ac116833fdddeed5c03fd5555b2be2d9 Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Thu, 13 Aug 2026 10:34:12 -0700 Subject: [PATCH] fix: Stop logging the "experimental" warning when creating a computer-use sandbox in the Vertex AI GenAI Python SDK. PiperOrigin-RevId: 964166165 --- agentplatform/_genai/sandboxes.py | 11 ----------- vertexai/_genai/sandboxes.py | 11 ----------- 2 files changed, 22 deletions(-) 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,