From 28d8acad8cc38901f51d2e525dd6010a0c305259 Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Tue, 28 Jul 2026 22:53:45 -0700 Subject: [PATCH] feat: Add sandbox templates and snapshots submodules to the Vertex AI GenAI SDK for Go. Adds the Agent Engine sandbox `templates` and `snapshots` submodules to the Go SDK, exposed as `AgentEngines.Sandboxes.Templates` and `AgentEngines.Sandboxes.Snapshots` (typed `SandboxTemplates`/`SandboxSnapshots`), each with exported `Create`, `Get`, `List`, and `Delete` methods, matching the Python SDK surface. Includes an e2e example and replay-based unit tests. PiperOrigin-RevId: 955672597 --- agentplatform/_genai/sandbox_snapshots.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/agentplatform/_genai/sandbox_snapshots.py b/agentplatform/_genai/sandbox_snapshots.py index aaeb01da1e..adc25c84de 100644 --- a/agentplatform/_genai/sandbox_snapshots.py +++ b/agentplatform/_genai/sandbox_snapshots.py @@ -66,12 +66,8 @@ def _CreateSandboxEnvironmentSnapshotRequestParameters_to_vertex( ) if getv(from_object, ["config"]) is not None: - setv( - to_object, - ["config"], - _CreateAgentEngineSandboxSnapshotConfig_to_vertex( - getv(from_object, ["config"]), to_object - ), + _CreateAgentEngineSandboxSnapshotConfig_to_vertex( + getv(from_object, ["config"]), to_object ) return to_object