AS AgentScopeAPI 手册 / API Reference

AgentRunNasMountConfig

public class AgentRunNasMountConfig
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:25–91

智能体运行 Nas Mount 配置,保存相关配置项。位于 io.agentscope.extensions.sandbox.agentrun 包。核心成员包括 getServerAddr、setServerAddr、getMountDir、setMountDir、getRemotePath、setRemotePath。

NAS mount configuration for an AgentRun sandbox.

NAS mounts are configured at sandbox creation time and provide instance-level persistent storage that survives sandbox restarts. Use a NAS mount as the workspaceRoot backing store to get "free" persistence without managing tar snapshots.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AgentRunNasMountConfig()
初始化 `AgentRunNasMountConfig` 实例。
Default constructor.

方法摘要Method Summary

方法Method说明Description
public String getServerAddr()
获取 `getServerAddr`。
Returns the NAS server address (e.g.
public AgentRunNasMountConfig setServerAddr(String serverAddr)
设置 `setServerAddr`。
Sets the server addr.
public String getMountDir()
获取 `getMountDir`。
Returns the in-sandbox mount directory (must start with `/home`, `/mnt` or `/data`).
public AgentRunNasMountConfig setMountDir(String mountDir)
设置 `setMountDir`。
Sets the mount dir.
public String getRemotePath()
获取远程路径。
Returns the remote path on the NAS filesystem to mount.
public AgentRunNasMountConfig setRemotePath(String remotePath)
设置远程路径。
Sets the remote path.
public boolean isEnableTLS()
判断是否启用 TLS。
Returns whether TLS is enabled for the NAS connection.
public AgentRunNasMountConfig setEnableTLS(boolean enableTLS)
设置启用 TLS。
Sets the enable TLS.

构造器详情Constructor Detail

AgentRunNasMountConfig

public AgentRunNasMountConfig()

初始化 AgentRunNasMountConfig 实例。

Default constructor.

源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:33

方法详情Method Detail

getServerAddr

public String getServerAddr()

获取 getServerAddr。

Returns the NAS server address (e.g.

返回Returns String
返回字符串结果。NAS server address
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:40–42

setServerAddr

public AgentRunNasMountConfig setServerAddr(String serverAddr)

设置 setServerAddr。

Sets the server addr.

参数Parameters
名称Name类型Type说明Description
serverAddrString服务端 Addr(类型 `String`)。The server addr.
返回Returns AgentRunNasMountConfig
返回AgentRunNasMountConfig。Returns agent run nas mount config.
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:44–47

getMountDir

public String getMountDir()

获取 getMountDir。

Returns the in-sandbox mount directory (must start with /home, /mnt or /data).

返回Returns String
返回字符串结果。absolute mount path
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:55–57

setMountDir

public AgentRunNasMountConfig setMountDir(String mountDir)

设置 setMountDir。

Sets the mount dir.

参数Parameters
名称Name类型Type说明Description
mountDirStringmount 目录(类型 `String`)。The mount dir.
返回Returns AgentRunNasMountConfig
返回AgentRunNasMountConfig。Returns agent run nas mount config.
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:59–62

getRemotePath

public String getRemotePath()

获取远程路径。

Returns the remote path on the NAS filesystem to mount.

返回Returns String
返回字符串结果。remote path, defaults to `"/"`
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:69–71

setRemotePath

public AgentRunNasMountConfig setRemotePath(String remotePath)

设置远程路径。

Sets the remote path.

参数Parameters
名称Name类型Type说明Description
remotePathString远程路径(类型 `String`)。The remote path.
返回Returns AgentRunNasMountConfig
返回AgentRunNasMountConfig。Returns agent run nas mount config.
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:73–76

isEnableTLS

public boolean isEnableTLS()

判断是否启用 TLS。

Returns whether TLS is enabled for the NAS connection.

返回Returns boolean
返回布尔值,表示判断结果。true when TLS is enabled
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:83–85

setEnableTLS

public AgentRunNasMountConfig setEnableTLS(boolean enableTLS)

设置启用 TLS。

Sets the enable TLS.

参数Parameters
名称Name类型Type说明Description
enableTLSboolean启用 TLS(类型 `boolean`)。The enable TLS.
返回Returns AgentRunNasMountConfig
返回AgentRunNasMountConfig。Returns agent run nas mount config.
源码Source io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:87–90
基于官方固定版本源码静态生成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.