AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.spring.boot.admin.metrics

io.agentscope.spring.boot.admin.metrics

package io.agentscope.spring.boot.admin.metrics

io.agentscope.spring.boot.admin.metrics 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 3 个公开类型。

io.agentscope.spring.boot.admin.metrics belongs to the Runtime & deployment layer and contains 3 public types.

类Classes

类型Type种类Kind说明Description
MetricsHook类class
指标钩子,承载智能体的部署、调度与服务化运行。
Legacy `Hook` that observes `PostCallEvent` and forwards the per-call token usage to a `MetricsRecorder`.
MetricsRecorder类class
指标记录器,承载智能体的部署、调度与服务化运行。
Thread-safe accumulator for token usage counters, sliced by agent name and by model name.

记录Records

类型Type种类Kind说明Description
UsageStats记录record
承载用量 Stats数据的记录类型。
Immutable snapshot of accumulated usage counters for a single bucket (agent or model).
基于官方固定版本源码静态生成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.