AS AgentScopeAPI 手册 / API Reference

Inventory

public record Inventory( List<SubagentInfo> subagents, List<WorkspaceInfo> workspaces, InstanceHealth health)
源码Source io/agentscope/extensions/aistio/model/Inventory.java:27–126

承载清单数据的记录类型。位于 io.agentscope.extensions.aistio.model 包。核心成员包括 subagents、workspaces、health、healthOnly、toProto。

Instance-level runtime inventory: subagents, workspaces and health, reported right after connect and then at the Level-1 cadence.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
subagentsList<SubagentInfo>
执行 `subagents` 方法。
Performs the subagents operation.
workspacesList<WorkspaceInfo>
执行 `workspaces` 方法。
Performs the workspaces operation.
healthInstanceHealth
执行健康状态相关操作。
Performs the health operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
SubagentInfo记录record
承载子智能体信息数据的记录类型。
A subagent reachable from this instance.
WorkspaceInfo记录record
承载工作区信息数据的记录类型。
A workspace mounted by this instance.
InstanceHealth记录record
承载实例健康状态数据的记录类型。
Liveness of this data plane instance.

方法摘要Method Summary

方法Method说明Description
public static Inventory healthOnly(int activeSessions)
static
设置该参数。
Performs the health only operation.
public InventoryReport toProto()
返回到协议。
Returns the to proto.

记录组件详情Record Component Detail

subagents

List<SubagentInfo> subagents

执行 subagents 方法。

Performs the subagents operation.

源码Source io/agentscope/extensions/aistio/model/Inventory.java:27–126

workspaces

List<WorkspaceInfo> workspaces

执行 workspaces 方法。

Performs the workspaces operation.

源码Source io/agentscope/extensions/aistio/model/Inventory.java:27–126

health

InstanceHealth health

执行健康状态相关操作。

Performs the health operation.

源码Source io/agentscope/extensions/aistio/model/Inventory.java:27–126

方法详情Method Detail

healthOnly

public static Inventory healthOnly(int activeSessions)
static

设置该参数。

Performs the health only operation.

参数Parameters
名称Name类型Type说明Description
activeSessionsintactive 会话(类型 `int`)。The active sessions.
返回Returns Inventory
返回清单。Returns inventory.
源码Source io/agentscope/extensions/aistio/model/Inventory.java:30–32

toProto

public InventoryReport toProto()

返回到协议。

Returns the to proto.

返回Returns InventoryReport
返回InventoryReport。Returns inventory report.
源码Source io/agentscope/extensions/aistio/model/Inventory.java:34–66

嵌套类详情Nested Class Detail

SubagentInfo

public record SubagentInfo( String name, String description, List<String> tools, String workspaceMode, String url, long invokeCount, long lastInvokedAt)

承载子智能体信息数据的记录类型。位于 io.agentscope.extensions.aistio.model 包。核心成员包括 name、description、tools、workspaceMode、url、invokeCount。

A subagent reachable from this instance.

WorkspaceInfo

public record WorkspaceInfo(String path, String mode, long sizeBytes, String ownerRef)

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

A workspace mounted by this instance.

InstanceHealth

public record InstanceHealth(boolean healthy, String reason, int activeSessions)

承载实例健康状态数据的记录类型。位于 io.agentscope.extensions.aistio.model 包。核心成员包括 healthy、reason、activeSessions。

Liveness of this data plane instance.

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