AS AgentScopeAPI 手册 / API Reference

DaytonaSandboxClientOptions

public class DaytonaSandboxClientOptions extends SandboxClientOptions
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:23–153

用于DaytonaSandboxClient的选项。位于 io.agentscope.extensions.sandbox.daytona 包,继承自 SandboxClientOptions。核心成员包括 getType、createClient、getHttpClient、setHttpClient、getApiKey、setApiKey。

Options for DaytonaSandboxClient.

方法摘要Method Summary

方法Method说明Description
public String getType()
获取类型。
Returns the type.
public SandboxClient<? extends SandboxClientOptions> createClient()
创建客户端。
Creates the client.
public OkHttpClient getHttpClient()
获取HTTP 客户端。
Returns the http client.
public void setHttpClient(OkHttpClient httpClient)
设置HTTP 客户端。
Sets the http client.
public String getApiKey()
获取API 键。
Returns the api key.
public void setApiKey(String apiKey)
设置API 键。
Sets the api key.
public String getControlPlaneBaseUrl()
获取控制面基类 URL。
Returns the control plane base url.
public void setControlPlaneBaseUrl(String controlPlaneBaseUrl)
设置控制面基类 URL。
Sets the control plane base url.
public String getToolboxBaseUrl()
获取工具箱基类 URL。
Returns the toolbox base url.
public void setToolboxBaseUrl(String toolboxBaseUrl)
设置工具箱基类 URL。
Sets the toolbox base url.
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.
public Integer getCpu()
获取 `getCpu`。
Returns the cpu.
public void setCpu(Integer cpu)
设置 `setCpu`。
Sets the cpu.
public Integer getMemory()
获取记忆。
Returns the memory.
public void setMemory(Integer memory)
设置记忆。
Sets the memory.
public Integer getDisk()
获取 `getDisk`。
Returns the disk.
public void setDisk(Integer disk)
设置 `setDisk`。
Sets the disk.
public String getWorkspaceRoot()
获取工作区根。
Returns the workspace root.
public void setWorkspaceRoot(String workspaceRoot)
设置工作区根。
Sets the workspace root.
public int getConnectTimeoutSeconds()
获取连接超时秒。
Returns the connect timeout seconds.
public void setConnectTimeoutSeconds(int connectTimeoutSeconds)
设置连接超时秒。
Sets the connect timeout seconds.
public int getReadTimeoutSeconds()
获取读取超时秒。
Returns the read timeout seconds.
public void setReadTimeoutSeconds(int readTimeoutSeconds)
设置读取超时秒。
Sets the read timeout seconds.
public int getMaxRetries()
获取最大重试。
Returns the max retries.
public void setMaxRetries(int maxRetries)
设置最大重试。
Sets the max retries.

方法详情Method Detail

getType

public String getType()

获取类型。

Returns the type.

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

createClient

public SandboxClient<? extends SandboxClientOptions> createClient()

创建客户端。

Creates the client.

返回Returns SandboxClient<? extends SandboxClientOptions>
返回SandboxClient。Returns sandbox client.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:44–47

getHttpClient

public OkHttpClient getHttpClient()

获取HTTP 客户端。

Returns the http client.

返回Returns OkHttpClient
返回OkHttpClient。Returns ok http client.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:49–51

setHttpClient

public void setHttpClient(OkHttpClient httpClient)

设置HTTP 客户端。

Sets the http client.

参数Parameters
名称Name类型Type说明Description
httpClientOkHttpClientHTTP 客户端(类型 `OkHttpClient`)。The http client.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:53–55

getApiKey

public String getApiKey()

获取API 键。

Returns the api key.

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

setApiKey

public void setApiKey(String apiKey)

设置API 键。

Sets the api key.

参数Parameters
名称Name类型Type说明Description
apiKeyStringAPI 键(类型 `String`)。The api key.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:61–63

getControlPlaneBaseUrl

public String getControlPlaneBaseUrl()

获取控制面基类 URL。

Returns the control plane base url.

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

setControlPlaneBaseUrl

public void setControlPlaneBaseUrl(String controlPlaneBaseUrl)

设置控制面基类 URL。

Sets the control plane base url.

参数Parameters
名称Name类型Type说明Description
controlPlaneBaseUrlString控制面基类 URL(类型 `String`)。The control plane base url.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:69–71

getToolboxBaseUrl

public String getToolboxBaseUrl()

获取工具箱基类 URL。

Returns the toolbox base url.

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

setToolboxBaseUrl

public void setToolboxBaseUrl(String toolboxBaseUrl)

设置工具箱基类 URL。

Sets the toolbox base url.

参数Parameters
名称Name类型Type说明Description
toolboxBaseUrlString工具箱基类 URL(类型 `String`)。The toolbox base url.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:77–79

getImage

public String getImage()

获取图像。

Returns the image.

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

setImage

public void setImage(String image)

设置图像。

Sets the image.

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

getSnapshotId

public String getSnapshotId()

获取快照标识。

Returns the snapshot id.

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

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/DaytonaSandboxClientOptions.java:93–95

getCpu

public Integer getCpu()

获取 getCpu。

Returns the cpu.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:97–99

setCpu

public void setCpu(Integer cpu)

设置 setCpu。

Sets the cpu.

参数Parameters
名称Name类型Type说明Description
cpuIntegercpu(类型 `Integer`)。The cpu.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:101–103

getMemory

public Integer getMemory()

获取记忆。

Returns the memory.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:105–107

setMemory

public void setMemory(Integer memory)

设置记忆。

Sets the memory.

参数Parameters
名称Name类型Type说明Description
memoryInteger记忆(类型 `Integer`)。The memory.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:109–111

getDisk

public Integer getDisk()

获取 getDisk。

Returns the disk.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:113–115

setDisk

public void setDisk(Integer disk)

设置 setDisk。

Sets the disk.

参数Parameters
名称Name类型Type说明Description
diskIntegerdisk(类型 `Integer`)。The disk.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:117–119

getWorkspaceRoot

public String getWorkspaceRoot()

获取工作区根。

Returns the workspace root.

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

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/DaytonaSandboxClientOptions.java:125–128

getConnectTimeoutSeconds

public int getConnectTimeoutSeconds()

获取连接超时秒。

Returns the connect timeout seconds.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:130–132

setConnectTimeoutSeconds

public void setConnectTimeoutSeconds(int connectTimeoutSeconds)

设置连接超时秒。

Sets the connect timeout seconds.

参数Parameters
名称Name类型Type说明Description
connectTimeoutSecondsint连接超时秒(类型 `int`)。The connect timeout seconds.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:134–136

getReadTimeoutSeconds

public int getReadTimeoutSeconds()

获取读取超时秒。

Returns the read timeout seconds.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:138–140

setReadTimeoutSeconds

public void setReadTimeoutSeconds(int readTimeoutSeconds)

设置读取超时秒。

Sets the read timeout seconds.

参数Parameters
名称Name类型Type说明Description
readTimeoutSecondsint读取超时秒(类型 `int`)。The read timeout seconds.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:142–144

getMaxRetries

public int getMaxRetries()

获取最大重试。

Returns the max retries.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:146–148

setMaxRetries

public void setMaxRetries(int maxRetries)

设置最大重试。

Sets the max retries.

参数Parameters
名称Name类型Type说明Description
maxRetriesint最大重试(类型 `int`)。The max retries.
源码Source io/agentscope/extensions/sandbox/daytona/DaytonaSandboxClientOptions.java:150–152
基于官方固定版本源码静态生成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.