Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions vertexai/_genai/agent_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions vertexai/_genai/sandboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading