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 |
|---|---|---|---|
sandboxType | String | "base" | 返回沙箱类型。 Returns the sandbox type. |
customType | String | "" | 返回自定义类型。 Returns the custom type. |
securityLevel | String | "medium" | 返回 `securityLevel` 结果。 Returns the security level. |
timeout | int | 300 | 返回超时。 Returns the timeout. |
description | String | "" | 返回 `description` 结果。 Returns the description. |
environment | String[] | {} | 返回环境。 Returns the environment. |
resourceLimits | String[] | {} | 返回 `resourceLimits` 结果。 Returns the resource limits. |
runtimeConfig | String[] | {} | 返回运行时配置。 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:29customType
public String customType()
返回自定义类型。
Returns the custom type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:31securityLevel
public String securityLevel()
返回 securityLevel 结果。
Returns the security level.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:33timeout
public int timeout()
返回超时。
Returns the timeout.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:35description
public String description()
返回 description 结果。
Returns the description.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:37environment
public String[] environment()
返回环境。
Returns the environment.
String[]返回String[]。Returns string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:39resourceLimits
public String[] resourceLimits()
返回 resourceLimits 结果。
Returns the resource limits.
String[]返回String[]。Returns string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:41runtimeConfig
public String[] runtimeConfig()
返回运行时配置。
Returns the runtime config.
String[]返回String[]。Returns string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:43方法详情Method Detail
imageName
public String imageName()
返回图像名称。
Returns the image name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/registry/RegisterSandbox.java:27