AS AgentScopeAPI 手册 / API Reference

SandboxConfig

public class SandboxConfig
源码Source 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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:58–60

getSandboxType

public SandboxType getSandboxType()

获取沙箱类型。

Returns the sandbox type.

返回Returns SandboxType
返回SandboxType。Returns sandbox type.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:62–64

getResourceLimits

public Map<String, Object> getResourceLimits()

获取 getResourceLimits。

Returns the resource limits.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:66–68

getSecurityLevel

public String getSecurityLevel()

获取 getSecurityLevel。

Returns the security level.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:70–72

getTimeout

public int getTimeout()

获取超时。

Returns the timeout.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:74–76

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:78–80

getEnvironment

public Map<String, String> getEnvironment()

获取环境。

Returns the environment.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:82–84

getRuntimeConfig

public Map<String, Object> getRuntimeConfig()

获取运行时配置。

Returns the runtime config.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:86–88

equals

public boolean equals(Object o)

设置该参数。

Performs the equals operation.

参数Parameters
名称Name类型Type说明Description
oObjecto(类型 `Object`)。The o.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:90–96

hashCode

public int hashCode()

返回 hashCode 结果。

Returns the hash code.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:98–101

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/SandboxConfig.java:103–106

嵌套类详情Nested Class Detail

Builder

public static class Builder

SandboxConfig的构建器。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 imageName、sandboxType、resourceLimits、securityLevel、timeout、description。

Builder for SandboxConfig

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