AS AgentScopeAPI 手册 / API Reference

InstanceHealth

public record InstanceHealth(boolean healthy, String reason, int activeSessions)
源码Source io/agentscope/extensions/controlplane/model/Inventory.java:125

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

Liveness of this data plane instance.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
healthyboolean
执行 `healthy` 方法。
Performs the healthy operation.
reasonString
执行推理相关操作。
Performs the reason operation.
activeSessionsint
执行 `activeSessions` 方法。
Performs the active sessions operation.

记录组件详情Record Component Detail

healthy

boolean healthy

执行 healthy 方法。

Performs the healthy operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:125

reason

String reason

执行推理相关操作。

Performs the reason operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:125

activeSessions

int activeSessions

执行 activeSessions 方法。

Performs the active sessions operation.

源码Source io/agentscope/extensions/controlplane/model/Inventory.java:125
基于官方固定版本源码静态生成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.