SandboxConfig
public class SandboxConfig
io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:22–167沙箱配置,保存相关配置项。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 getImageName、getSandboxType、getResourceLimits、getSecurityLevel、getTimeout、getDescription。
A class in io.agentscope.runtime.sandbox.manager.model.container that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.container.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | SandboxConfig的构建器。 Builder for SandboxConfig |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getImageName() | 获取图像名称。 Returns the image name. |
public SandboxType getSandboxType() | 获取沙箱类型。 Returns the sandbox type. |
public Map<String, Object> getResourceLimits() | 获取 `getResourceLimits`。 Returns the resource limits. |
public String getSecurityLevel() | 获取 `getSecurityLevel`。 Returns the security level. |
public int getTimeout() | 获取超时。 Returns the timeout. |
public String getDescription() | 获取 `getDescription`。 Returns the description. |
public Map<String, String> getEnvironment() | 获取环境。 Returns the environment. |
public Map<String, Object> getRuntimeConfig() | 获取运行时配置。 Returns the runtime config. |
public boolean equals(Object o) | 设置该参数。 Performs the equals operation. |
public int hashCode() | 返回 `hashCode` 结果。 Returns the hash code. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
方法详情Method Detail
getImageName
public String getImageName()
获取图像名称。
Returns the image name.
Stringio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:58–60getSandboxType
public SandboxType getSandboxType()
获取沙箱类型。
Returns the sandbox type.
SandboxTypeio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:62–64getResourceLimits
public Map<String, Object> getResourceLimits()
获取 getResourceLimits。
Returns the resource limits.
Map<String, Object>io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:66–68getSecurityLevel
public String getSecurityLevel()
获取 getSecurityLevel。
Returns the security level.
Stringio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:70–72getTimeout
public int getTimeout()
获取超时。
Returns the timeout.
intio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:74–76getDescription
public String getDescription()
获取 getDescription。
Returns the description.
Stringio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:78–80getEnvironment
public Map<String, String> getEnvironment()
获取环境。
Returns the environment.
Map<String, String>io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:82–84getRuntimeConfig
public Map<String, Object> getRuntimeConfig()
获取运行时配置。
Returns the runtime config.
Map<String, Object>io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:86–88equals
public boolean equals(Object o)
设置该参数。
Performs the equals operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
o | Object | o(类型 `Object`)。The o. |
booleanio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:90–96hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
intio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:98–101toString
public String toString()
返回 toString 结果。
Returns the to string.
Stringio/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:103–106嵌套类详情Nested Class Detail
Builder
public static class BuilderSandboxConfig的构建器。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 imageName、sandboxType、resourceLimits、securityLevel、timeout、description。
Builder for SandboxConfig