IMentorMetrics interface
The IMentorMetrics interface of Novior.MentorAgent.Abstractions.Interfaces: Process-wide sink for operational usage metrics powering the admin token & cost…
On this page
Process-wide sink for operational usage metrics powering the admin token & cost dashboard (roadmap #9). Recording methods are called by the engine; IMentorMetrics.GetSnapshot is read by the dashboard component and the admin endpoint. This is an operator/admin instrument and must never be surfaced in the end-user widget.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Interfaces. Package: Novior.MentorAgent.Abstractions.
public interface IMentorMetrics
dotnet add package Novior.MentorAgent.AbstractionsMethods
Section titled “Methods”GetSnapshot
Section titled “GetSnapshot”MentorMetricsSnapshot GetSnapshot()
Builds a point-in-time snapshot (cost included only if pricing is configured).
RecordError
Section titled “RecordError”void RecordError()
A turn ended in an error.
RecordGuardrailBlock
Section titled “RecordGuardrailBlock”void RecordGuardrailBlock()
A message was blocked by the input guardrail.
RecordServed
Section titled “RecordServed”void RecordServed()
A turn completed without an error or guardrail block (deflection).
RecordToolCall
Section titled “RecordToolCall”void RecordToolCall(string toolName)
A tool/action was invoked (feeds the "top actions" list).
RecordTurn
Section titled “RecordTurn”void RecordTurn()
A user message (turn) was received.
void Reset()
Resets all counters (e.g. to start a fresh measurement window).
