Table of Contents

Class SupportAssistantUsage

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

The tokens a model reported for one of the assistant's answers, every round of its tool loop added up.

public sealed record SupportAssistantUsage : IEquatable<SupportAssistantUsage>
Inheritance
SupportAssistantUsage
Implements
Inherited Members

Remarks

As the provider counted them, so they mean what that provider's tokens mean. Kept with the answer as AssistantUsage; absent when the provider reported nothing.

Properties

CachedInputTokens

Of InputTokens, those the provider read from its cache, which most providers charge less for; 0 when it said none.

public long CachedInputTokens { get; init; }

Property Value

long

InputTokens

The tokens the model read: the instructions, the conversation and every tool result it was sent.

public long InputTokens { get; init; }

Property Value

long

Model

The model that answered, as the provider named it; null when neither the provider nor the client says.

public string Model { get; init; }

Property Value

string

OutputTokens

The tokens the model wrote, its calls for tools included.

public long OutputTokens { get; init; }

Property Value

long

Provider

Who served the answer, as the chat client names its provider, such as "openai" or "ollama"; null when it does not say.

public string Provider { get; init; }

Property Value

string

TotalTokens

All of them, as the provider totalled them; input and output added up when it gave no total.

public long TotalTokens { get; init; }

Property Value

long