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
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def test_create_sandbox(client):

operation = client.agent_engines.sandboxes.create(
name=agent_engine.api_resource.name,
poll_interval_seconds=1,
spec={
"code_execution_environment": {
"machineConfig": "MACHINE_CONFIG_VCPU4_RAM4GIB"
Expand Down
3 changes: 2 additions & 1 deletion vertexai/_genai/sandboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ def create(
self,
*,
name: str,
poll_interval_seconds: float = 0.1,
spec: Optional[types.SandboxEnvironmentSpecOrDict] = None,
config: Optional[types.CreateAgentEngineSandboxConfigOrDict] = None,
) -> types.AgentEngineSandboxOperation:
Expand Down Expand Up @@ -582,7 +583,7 @@ def create(
operation = _agent_engines_utils._await_operation(
operation_name=operation.name,
get_operation_fn=self._get_sandbox_operation,
poll_interval_seconds=0.1,
poll_interval_seconds=poll_interval_seconds,
)
# We need to make a call to get the sandbox because the operation
# response might not contain the relevant fields.
Expand Down
Loading