AS AgentScopeAPI 手册 / API Reference

WorkspaceInfo

public record WorkspaceInfo(String path, String mode, long sizeBytes, String ownerRef)
源码Source io/agentscope/extensions/controlplane/model/Inventory.java:108–122

承载工作区信息数据的记录类型。位于 io.agentscope.extensions.controlplane.model 包。核心成员包括 path、mode、sizeBytes、ownerRef、toJsonMap。

A workspace mounted by this instance.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
pathString
执行路径相关操作。
Performs the path operation.
modeString
执行模式相关操作。
Performs the mode operation.
sizeByteslong
执行大小字节相关操作。
Performs the size bytes operation.
ownerRefString
执行所有者引用相关操作。
Performs the owner ref operation.

方法摘要Method Summary

方法Method说明Description
public Map<String, Object> toJsonMap()
返回到 JSON 映射。
Returns the to json map.

记录组件详情Record Component Detail

path

String path

执行路径相关操作。

Performs the path operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:108–122

mode

String mode

执行模式相关操作。

Performs the mode operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:108–122

sizeBytes

long sizeBytes

执行大小字节相关操作。

Performs the size bytes operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:108–122

ownerRef

String ownerRef

执行所有者引用相关操作。

Performs the owner ref operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:108–122

方法详情Method Detail

toJsonMap

public Map<String, Object> toJsonMap()

返回到 JSON 映射。

Returns the to json map.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/extensions/controlplane/model/Inventory.java:110–121
基于官方固定版本源码静态生成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.