< Summary

Information
Class: Intentum.AI.TokenCost.TokenCost
Assembly: Intentum.AI
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.AI/TokenCost/ITokenCostTracker.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 14
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.AI/TokenCost/ITokenCostTracker.cs

#LineLine coverage
 1namespace Intentum.AI.TokenCost;
 2
 123public sealed record TokenCost(
 44    string Model,
 135    int PromptTokens,
 106    int CompletionTokens,
 227    decimal Cost);
 8
 9public interface ITokenCostTracker
 10{
 11    void Track(TokenCost cost);
 12    TokenCost GetTotal(string? model = null);
 13    void Reset();
 14}