AS AgentScopeAPI 手册 / API Reference

VolumeBinding

public class VolumeBinding
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:19–66

Volume 绑定,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.sandbox.manager.model.fs 包。核心成员包括 getHostPath、setHostPath、getContainerPath、setContainerPath、getMode、setMode。

A class in io.agentscope.runtime.sandbox.manager.model.fs that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.fs.

构造器摘要Constructor Summary

构造器Constructor说明Description
public VolumeBinding(String hostPath, String containerPath, String mode)
初始化 `VolumeBinding` 实例。
Creates a new instance.
public VolumeBinding(String hostPath, String containerPath)
初始化 `VolumeBinding` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getHostPath()
获取 `getHostPath`。
Returns the host path.
public void setHostPath(String hostPath)
设置 `setHostPath`。
Sets the host path.
public String getContainerPath()
获取容器路径。
Returns the container path.
public void setContainerPath(String containerPath)
设置容器路径。
Sets the container path.
public String getMode()
获取模式。
Returns the mode.
public void setMode(String mode)
设置模式。
Sets the mode.
public String toString()
返回 `toString` 结果。
Returns the to string.

构造器详情Constructor Detail

VolumeBinding

public VolumeBinding(String hostPath, String containerPath, String mode)

初始化 VolumeBinding 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
hostPathStringhost 路径(类型 `String`)。The host path.
containerPathString容器路径(类型 `String`)。The container path.
modeString模式(类型 `String`)。The mode.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:24–28

VolumeBinding

public VolumeBinding(String hostPath, String containerPath)

初始化 VolumeBinding 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
hostPathStringhost 路径(类型 `String`)。The host path.
containerPathString容器路径(类型 `String`)。The container path.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:30–32

方法详情Method Detail

getHostPath

public String getHostPath()

获取 getHostPath。

Returns the host path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:34–36

setHostPath

public void setHostPath(String hostPath)

设置 setHostPath。

Sets the host path.

参数Parameters
名称Name类型Type说明Description
hostPathStringhost 路径(类型 `String`)。The host path.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:38–40

getContainerPath

public String getContainerPath()

获取容器路径。

Returns the container path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:42–44

setContainerPath

public void setContainerPath(String containerPath)

设置容器路径。

Sets the container path.

参数Parameters
名称Name类型Type说明Description
containerPathString容器路径(类型 `String`)。The container path.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:46–48

getMode

public String getMode()

获取模式。

Returns the mode.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:50–52

setMode

public void setMode(String mode)

设置模式。

Sets the mode.

参数Parameters
名称Name类型Type说明Description
modeString模式(类型 `String`)。The mode.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:54–56

toString

public String toString()

返回 toString 结果。

Returns the to string.

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