# MentorModelCall record

> The MentorModelCall record of Novior.MentorAgent.Abstractions.Models: One call to a model, as IMentorActionObserver.OnModelCallAsync receives it: the tokens…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent.Abstractions

One call to a model, as [`IMentorActionObserver.OnModelCallAsync`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-interfaces/imentoractionobserver#onmodelcallasync) receives it: the tokens it used, the agent it is attributed to, and for whom. One for each call — each round trip of an agent, each check of a classifier — so a turn has several. Never the text of the request or of the answer. More properties may be added.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Models`. Package: `Novior.MentorAgent.Abstractions`.

`public sealed record MentorModelCall : IEquatable<MentorModelCall>`

```shell
dotnet add package Novior.MentorAgent.Abstractions
```

## Remarks

The calls and the decisions ([`MentorActionDecision`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractiondecision)) reach an observer on two queues of their own, so the order between a call and a decision is not kept. Both carry [`MentorModelCall.SessionId`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#sessionid), [`MentorModelCall.TurnId`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#turnid) and [`MentorModelCall.Timestamp`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#timestamp): sort by them to put a turn back together. The totals per model of the dashboard are [`MentorModelUsage`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelusage).

## Constructors

`public MentorModelCall()`

## Properties

### `AgentKind`

`public MentorAgentKind? AgentKind { get; init; }`

The kind of agent the call is attributed to, or `null` for a check MentorAgent makes on its own ([`MentorModelCall.Purpose`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#purpose) says which).

### `AgentName`

`public string? AgentName { get; init; }`

The name of the agent the call is attributed to, when it has one.

### `CachedInputTokens`

`public long? CachedInputTokens { get; init; }`

Of [`MentorModelCall.InputTokens`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#inputtokens), those the provider read from its cache, when it says so.

### `Duration`

`public TimeSpan Duration { get; init; }`

How long the call took.

### `InputTokens`

`public long InputTokens { get; init; }`

The tokens of the request; 0 when [`MentorModelCall.UsageMeasured`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#usagemeasured) is false.

### `ModelId`

`public string? ModelId { get; init; }`

The model that answered, as the provider named it, else the deployment the client points at.

### `Outcome`

`public required MentorModelCallOutcome Outcome { get; init; }`

How the call ended.

### `OutputTokens`

`public long OutputTokens { get; init; }`

The tokens of the answer; 0 when [`MentorModelCall.UsageMeasured`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#usagemeasured) is false.

### `Purpose`

`public required MentorModelCallPurpose Purpose { get; init; }`

What the call was for: the agent's reply, or one of MentorAgent's own checks.

### `ReasoningTokens`

`public long? ReasoningTokens { get; init; }`

Of [`MentorModelCall.OutputTokens`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcall#outputtokens), those spent on reasoning, when the provider says so.

### `SessionId`

`public string? SessionId { get; init; }`

An opaque id of the session, the same as [`MentorActionDecision.SessionId`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractiondecision#sessionid).

### `Surface`

`public required MentorActionSurface Surface { get; init; }`

Where the turn came from.

### `TenantId`

`public string? TenantId { get; init; }`

The tenant of the turn, as [`MentorActionDecision.TenantId`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractiondecision#tenantid).

### `Timestamp`

`public required DateTimeOffset Timestamp { get; init; }`

When the call ended.

### `TurnId`

`public string? TurnId { get; init; }`

An opaque id of the turn, the same as [`MentorActionDecision.TurnId`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractiondecision#turnid); none outside a turn.

### `UsageMeasured`

`public bool UsageMeasured { get; init; }`

Whether the provider said how many tokens the call used. A stream without a usage part, a call that failed or was stopped: the counts are unknown, not zero.

### `User`

`public ClaimsPrincipal? User { get; init; }`

The signed-in user who asked, as [`MentorActionDecision.User`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentoractiondecision#user); `null` when nobody is.

---

- Previous: [MentorMetricsSnapshot record](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormetricssnapshot.md)
- Next: [MentorModelCallOutcome enum](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentormodelcalloutcome.md)
