From a1affc5ed9716907195d9c3fecec6d8422bbec7e Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Thu, 22 Jan 2026 12:08:04 -0800 Subject: [PATCH] feat: Remove experimental warning from sandboxes and add specific warning for non-code execution sandboxes. PiperOrigin-RevId: 859716119 --- vertexai/_genai/agent_engines.py | 4 ---- vertexai/_genai/sandboxes.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/vertexai/_genai/agent_engines.py b/vertexai/_genai/agent_engines.py index 77c7701606..d7864967c8 100644 --- a/vertexai/_genai/agent_engines.py +++ b/vertexai/_genai/agent_engines.py @@ -718,10 +718,6 @@ def memories(self) -> Any: return self._memories.Memories(self._api_client) @property - @_common.experimental_warning( - "The Vertex SDK GenAI agent_engines.sandboxes module is experimental, " - "and may change in future versions." - ) def sandboxes(self) -> Any: if self._sandboxes is None: try: diff --git a/vertexai/_genai/sandboxes.py b/vertexai/_genai/sandboxes.py index c0032c033e..5a8c3f8fea 100644 --- a/vertexai/_genai/sandboxes.py +++ b/vertexai/_genai/sandboxes.py @@ -557,6 +557,17 @@ 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,