Skip to content

Commit bbf788a

Browse files
BenjaminKazemicopybara-github
authored andcommitted
chore: GenAI SDK(Sandbox Env) - Support computer use
PiperOrigin-RevId: 821808280
1 parent 7ae013e commit bbf788a

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

vertexai/_genai/types.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7834,12 +7834,33 @@ class SandboxEnvironmentSpecCodeExecutionEnvironmentDict(TypedDict, total=False)
78347834
]
78357835

78367836

7837+
class SandboxEnvironmentSpecComputerUseEnvironment(_common.BaseModel):
7838+
"""The computer use environment with customized settings."""
7839+
7840+
pass
7841+
7842+
7843+
class SandboxEnvironmentSpecComputerUseEnvironmentDict(TypedDict, total=False):
7844+
"""The computer use environment with customized settings."""
7845+
7846+
pass
7847+
7848+
7849+
SandboxEnvironmentSpecComputerUseEnvironmentOrDict = Union[
7850+
SandboxEnvironmentSpecComputerUseEnvironment,
7851+
SandboxEnvironmentSpecComputerUseEnvironmentDict,
7852+
]
7853+
7854+
78377855
class SandboxEnvironmentSpec(_common.BaseModel):
78387856
"""The specification of a sandbox environment."""
78397857

78407858
code_execution_environment: Optional[
78417859
SandboxEnvironmentSpecCodeExecutionEnvironment
78427860
] = Field(default=None, description="""Optional. The code execution environment.""")
7861+
computer_use_environment: Optional[SandboxEnvironmentSpecComputerUseEnvironment] = (
7862+
Field(default=None, description="""Optional. The computer use environment.""")
7863+
)
78437864

78447865

78457866
class SandboxEnvironmentSpecDict(TypedDict, total=False):
@@ -7850,6 +7871,9 @@ class SandboxEnvironmentSpecDict(TypedDict, total=False):
78507871
]
78517872
"""Optional. The code execution environment."""
78527873

7874+
computer_use_environment: Optional[SandboxEnvironmentSpecComputerUseEnvironmentDict]
7875+
"""Optional. The computer use environment."""
7876+
78537877

78547878
SandboxEnvironmentSpecOrDict = Union[SandboxEnvironmentSpec, SandboxEnvironmentSpecDict]
78557879

@@ -7927,9 +7951,47 @@ class _CreateAgentEngineSandboxRequestParametersDict(TypedDict, total=False):
79277951
]
79287952

79297953

7954+
class SandboxEnvironmentConnectionInfo(_common.BaseModel):
7955+
"""The connection information of the SandboxEnvironment."""
7956+
7957+
load_balancer_hostname: Optional[str] = Field(
7958+
default=None, description="""Output only. The hostname of the load balancer."""
7959+
)
7960+
load_balancer_ip: Optional[str] = Field(
7961+
default=None,
7962+
description="""Output only. The IP address of the load balancer.""",
7963+
)
7964+
sandbox_internal_ip: Optional[str] = Field(
7965+
default=None,
7966+
description="""Output only. The internal IP address of the SandboxEnvironment.""",
7967+
)
7968+
7969+
7970+
class SandboxEnvironmentConnectionInfoDict(TypedDict, total=False):
7971+
"""The connection information of the SandboxEnvironment."""
7972+
7973+
load_balancer_hostname: Optional[str]
7974+
"""Output only. The hostname of the load balancer."""
7975+
7976+
load_balancer_ip: Optional[str]
7977+
"""Output only. The IP address of the load balancer."""
7978+
7979+
sandbox_internal_ip: Optional[str]
7980+
"""Output only. The internal IP address of the SandboxEnvironment."""
7981+
7982+
7983+
SandboxEnvironmentConnectionInfoOrDict = Union[
7984+
SandboxEnvironmentConnectionInfo, SandboxEnvironmentConnectionInfoDict
7985+
]
7986+
7987+
79307988
class SandboxEnvironment(_common.BaseModel):
79317989
"""A sandbox environment."""
79327990

7991+
connection_info: Optional[SandboxEnvironmentConnectionInfo] = Field(
7992+
default=None,
7993+
description="""Output only. The connection information of the SandboxEnvironment.""",
7994+
)
79337995
create_time: Optional[datetime.datetime] = Field(
79347996
default=None,
79357997
description="""Output only. The timestamp when this SandboxEnvironment was created.""",
@@ -7962,6 +8024,9 @@ class SandboxEnvironment(_common.BaseModel):
79628024
class SandboxEnvironmentDict(TypedDict, total=False):
79638025
"""A sandbox environment."""
79648026

8027+
connection_info: Optional[SandboxEnvironmentConnectionInfoDict]
8028+
"""Output only. The connection information of the SandboxEnvironment."""
8029+
79658030
create_time: Optional[datetime.datetime]
79668031
"""Output only. The timestamp when this SandboxEnvironment was created."""
79678032

0 commit comments

Comments
 (0)