Inventory
public record Inventory( List<SubagentInfo> subagents, List<WorkspaceInfo> workspaces, InstanceHealth health)
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 |
|---|---|---|
subagents | List<SubagentInfo> | 执行 `subagents` 方法。 Performs the subagents operation. |
workspaces | List<WorkspaceInfo> | 执行 `workspaces` 方法。 Performs the workspaces operation. |
health | InstanceHealth | 执行健康状态相关操作。 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.
io/agentscope/extensions/aistio/model/Inventory.java:27–126workspaces
List<WorkspaceInfo> workspaces执行 workspaces 方法。
Performs the workspaces operation.
io/agentscope/extensions/aistio/model/Inventory.java:27–126health
InstanceHealth health执行健康状态相关操作。
Performs the health operation.
io/agentscope/extensions/aistio/model/Inventory.java:27–126方法详情Method Detail
healthOnly
public static Inventory healthOnly(int activeSessions)
设置该参数。
Performs the health only operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
activeSessions | int | active 会话(类型 `int`)。The active sessions. |
Inventoryio/agentscope/extensions/aistio/model/Inventory.java:30–32toProto
public InventoryReport toProto()
返回到协议。
Returns the to proto.
InventoryReportio/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.