Skip to content

Commit 6d6ed05

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Remove experimental warning from sandboxes and add specific warning for non-code execution sandboxes.
PiperOrigin-RevId: 859716119
1 parent 0179aa5 commit 6d6ed05

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

vertexai/_genai/agent_engines.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,6 @@ def memories(self) -> Any:
718718
return self._memories.Memories(self._api_client)
719719

720720
@property
721-
@_common.experimental_warning(
722-
"The Vertex SDK GenAI agent_engines.sandboxes module is experimental, "
723-
"and may change in future versions."
724-
)
725721
def sandboxes(self) -> Any:
726722
if self._sandboxes is None:
727723
try:

vertexai/_genai/sandboxes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,17 @@ def create(
557557
Returns:
558558
AgentEngineSandboxOperation: The operation for creating the sandbox.
559559
"""
560+
if spec:
561+
computer_use = False
562+
if isinstance(spec, dict):
563+
computer_use = spec.get("computer_use_environment") is not None
564+
elif hasattr(spec, "computer_use_environment"):
565+
computer_use = True
566+
567+
if computer_use:
568+
logging.warning(
569+
"The computer_use_environment feature in the sandboxes module is experimental and may change in future versions."
570+
)
560571
operation = self._create(
561572
name=name,
562573
spec=spec,

0 commit comments

Comments
 (0)