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,