AS AgentScopeAPI 手册 / API Reference

RegisterSandbox

@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface RegisterSandbox
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:24–44

用于标记注册沙箱相关元数据的注解。位于 io.agentscope.runtime.sandbox.manager.registry 包。核心成员包括 imageName、sandboxType、customType、securityLevel、timeout、description。

A annotation in io.agentscope.runtime.sandbox.manager.registry that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.registry.

注解元素摘要Annotation Element Summary

元素Element类型Type默认值Default说明Description
sandboxTypeString"base"
返回沙箱类型。
Returns the sandbox type.
customTypeString""
返回自定义类型。
Returns the custom type.
securityLevelString"medium"
返回 `securityLevel` 结果。
Returns the security level.
timeoutint300
返回超时。
Returns the timeout.
descriptionString""
返回 `description` 结果。
Returns the description.
environmentString[]{}
返回环境。
Returns the environment.
resourceLimitsString[]{}
返回 `resourceLimits` 结果。
Returns the resource limits.
runtimeConfigString[]{}
返回运行时配置。
Returns the runtime config.

方法摘要Method Summary

方法Method说明Description
public String imageName()
返回图像名称。
Returns the image name.

注解元素详情Annotation Element Detail

sandboxType

public String sandboxType()

返回沙箱类型。

Returns the sandbox type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:29

customType

public String customType()

返回自定义类型。

Returns the custom type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:31

securityLevel

public String securityLevel()

返回 securityLevel 结果。

Returns the security level.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:33

timeout

public int timeout()

返回超时。

Returns the timeout.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:35

description

public String description()

返回 description 结果。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:37

environment

public String[] environment()

返回环境。

Returns the environment.

返回Returns String[]
返回String[]。Returns string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:39

resourceLimits

public String[] resourceLimits()

返回 resourceLimits 结果。

Returns the resource limits.

返回Returns String[]
返回String[]。Returns string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:41

runtimeConfig

public String[] runtimeConfig()

返回运行时配置。

Returns the runtime config.

返回Returns String[]
返回String[]。Returns string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:43

方法详情Method Detail

imageName

public String imageName()

返回图像名称。

Returns the image name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:27
基于官方固定版本源码静态生成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.