Skip to main content

Module metrics

Module metrics 

Source
Expand description

Runtime metrics accumulated by sessions. Session-level metrics — lightweight counters updated by the runtime.

SessionMetrics is embedded in AgentSession and accumulates counters across all turns. Callers can snapshot it via AgentSession::metrics to feed their own monitoring stack (Prometheus, CloudWatch, etc.).

Structs§

SessionMetrics
Accumulated metrics for an agent session, updated internally by the runtime.