AS AgentScopeAPI 手册 / API Reference

DaytonaSandboxState

public class DaytonaSandboxState extends SandboxState
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:21–70

Daytona 沙箱状态,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.daytona 包,继承自 SandboxState。核心成员包括 getSandboxId、setSandboxId、getWorkspaceRoot、setWorkspaceRoot、isSandboxOwned、setSandboxOwned。

Serializable state for a Daytona-backed sandbox.

字段摘要Field Summary

字段Field类型Type说明Description
DEFAULT_WORKSPACE_ROOT
staticfinal
String
默认工作区根字段。
The DEFAULT WORKSPACE ROOT field.

方法摘要Method Summary

方法Method说明Description
public String getSandboxId()
获取沙箱标识。
Returns the sandbox id.
public void setSandboxId(String sandboxId)
设置沙箱标识。
Sets the sandbox id.
public String getWorkspaceRoot()
获取工作区根。
Returns the workspace root.
public void setWorkspaceRoot(String workspaceRoot)
设置工作区根。
Sets the workspace root.
public boolean isSandboxOwned()
判断是否 `isSandboxOwned`。
Returns whether the sandbox owned.
public void setSandboxOwned(boolean sandboxOwned)
设置 `setSandboxOwned`。
Sets the sandbox owned.
public String getImage()
获取图像。
Returns the image.
public void setImage(String image)
设置图像。
Sets the image.
public String getSnapshotId()
获取快照标识。
Returns the snapshot id.
public void setSnapshotId(String snapshotId)
设置快照标识。
Sets the snapshot id.

字段详情Field Detail

DEFAULT_WORKSPACE_ROOT

public static final String DEFAULT_WORKSPACE_ROOT
staticfinal

默认工作区根字段。声明为 public static final String DEFAULT_WORKSPACE_ROOT。

The DEFAULT WORKSPACE ROOT field.

源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:23

方法详情Method Detail

getSandboxId

public String getSandboxId()

获取沙箱标识。

Returns the sandbox id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:31–33

setSandboxId

public void setSandboxId(String sandboxId)

设置沙箱标识。

Sets the sandbox id.

参数Parameters
名称Name类型Type说明Description
sandboxIdString沙箱标识(类型 `String`)。The sandbox id.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:35–37

getWorkspaceRoot

public String getWorkspaceRoot()

获取工作区根。

Returns the workspace root.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:39–41

setWorkspaceRoot

public void setWorkspaceRoot(String workspaceRoot)

设置工作区根。

Sets the workspace root.

参数Parameters
名称Name类型Type说明Description
workspaceRootString工作区根(类型 `String`)。The workspace root.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:43–45

isSandboxOwned

public boolean isSandboxOwned()

判断是否 isSandboxOwned。

Returns whether the sandbox owned.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:47–49

setSandboxOwned

public void setSandboxOwned(boolean sandboxOwned)

设置 setSandboxOwned。

Sets the sandbox owned.

参数Parameters
名称Name类型Type说明Description
sandboxOwnedboolean沙箱 Owned(类型 `boolean`)。The sandbox owned.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:51–53

getImage

public String getImage()

获取图像。

Returns the image.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:55–57

setImage

public void setImage(String image)

设置图像。

Sets the image.

参数Parameters
名称Name类型Type说明Description
imageString图像(类型 `String`)。The image.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:59–61

getSnapshotId

public String getSnapshotId()

获取快照标识。

Returns the snapshot id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:63–65

setSnapshotId

public void setSnapshotId(String snapshotId)

设置快照标识。

Sets the snapshot id.

参数Parameters
名称Name类型Type说明Description
snapshotIdString快照标识(类型 `String`)。The snapshot id.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxState.java:67–69

继承成员Inherited Members

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.