MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

IMentorMetrics interface

The IMentorMetrics interface of Novior.MentorAgent.Abstractions.Interfaces: Process-wide sink for operational usage metrics powering the admin token & cost…

View as Markdown
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.

Namespace: Novior.MentorAgent.Abstractions.Interfaces. Package: Novior.MentorAgent.Abstractions.

public interface IMentorMetrics

Terminal
dotnet add package Novior.MentorAgent.Abstractions

MentorMetricsSnapshot GetSnapshot()

Builds a point-in-time snapshot (cost included only if pricing is configured).

void RecordError()

A turn ended in an error.

void RecordGuardrailBlock()

A message was blocked by the input guardrail.

void RecordServed()

A turn completed without an error or guardrail block (deflection).

void RecordToolCall(string toolName)

A tool/action was invoked (feeds the "top actions" list).

void RecordTurn()

A user message (turn) was received.

void Reset()

Resets all counters (e.g. to start a fresh measurement window).