AS AgentScopeAPI 手册 / API Reference

CreateSandboxOptions

public final class CreateSandboxOptions
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:26–162

用于SandboxClient#createSandbox(CreateSandboxOptions)的选项。位于 io.agentscope.extensions.sandbox.kubernetes.client 包。核心成员包括 builder、warmPool、namespace、claimName、sandboxReadyTimeoutSeconds、shutdownAfterSeconds。

Options for SandboxClient#createSandbox(CreateSandboxOptions).

Corresponds to the keyword arguments of the Python SDK's create_sandbox.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
`CreateSandboxOptions`的构建器。
Builder for `CreateSandboxOptions`.

方法摘要Method Summary

方法Method说明Description
public static Builder builder(String warmPool)
static
返回构建器实例。
Performs the builder operation.
public String warmPool()
返回 `warmPool` 结果。
Returns the warm pool.
public String namespace()
返回命名空间。
Returns the namespace.
public String claimName()
返回 `claimName` 结果。
Optional explicit claim name.
public long sandboxReadyTimeoutSeconds()
返回沙箱就绪超时秒。
Returns the sandbox ready timeout seconds.
public Long shutdownAfterSeconds()
返回 `shutdownAfterSeconds` 结果。
Returns the shutdown after seconds.
public Map<String, String> labels()
返回 `labels` 结果。
Returns the labels.
public Map<String, String> podLabels()
返回 `podLabels` 结果。
Returns the pod labels.
public Map<String, String> podAnnotations()
返回 `podAnnotations` 结果。
Returns the pod annotations.

方法详情Method Detail

builder

public static Builder builder(String warmPool)
static

返回构建器实例。

Performs the builder operation.

参数Parameters
名称Name类型Type说明Description
warmPoolStringwarm 连接池(类型 `String`)。The warm pool.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:61–63

warmPool

public String warmPool()

返回 warmPool 结果。

Returns the warm pool.

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

namespace

public String namespace()

返回命名空间。

Returns the namespace.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:69–71

claimName

public String claimName()

返回 claimName 结果。

Optional explicit claim name.

返回Returns String
返回字符串结果。claim name or null
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:78–80

sandboxReadyTimeoutSeconds

public long sandboxReadyTimeoutSeconds()

返回沙箱就绪超时秒。

Returns the sandbox ready timeout seconds.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:82–84

shutdownAfterSeconds

public Long shutdownAfterSeconds()

返回 shutdownAfterSeconds 结果。

Returns the shutdown after seconds.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:86–88

labels

public Map<String, String> labels()

返回 labels 结果。

Returns the labels.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:90–92

podLabels

public Map<String, String> podLabels()

返回 podLabels 结果。

Returns the pod labels.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:94–96

podAnnotations

public Map<String, String> podAnnotations()

返回 podAnnotations 结果。

Returns the pod annotations.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/CreateSandboxOptions.java:98–100

嵌套类详情Nested Class Detail

Builder

public static final class Builder

CreateSandboxOptions的构建器。位于 io.agentscope.extensions.sandbox.kubernetes.client 包。核心成员包括 namespace、claimName、sandboxReadyTimeoutSeconds、shutdownAfterSeconds、labels、podLabels。

Builder for CreateSandboxOptions.

基于官方固定版本源码静态生成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.