Table of Contents

Class TurnUsageRecord

Namespace
JD.AI.Core.Usage
Assembly
JD.AI.Core.dll

Record of token usage for a single agent turn.

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

Properties

CompletionTokens

public required long CompletionTokens { get; init; }

Property Value

long

DurationMs

public long DurationMs { get; init; }

Property Value

long

ModelId

public required string ModelId { get; init; }

Property Value

string

ProjectPath

public string? ProjectPath { get; init; }

Property Value

string

PromptTokens

public required long PromptTokens { get; init; }

Property Value

long

ProviderId

public required string ProviderId { get; init; }

Property Value

string

SessionId

public required string SessionId { get; init; }

Property Value

string

Timestamp

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

ToolCalls

public int ToolCalls { get; init; }

Property Value

int

TotalTokens

public long TotalTokens { get; }

Property Value

long

TraceId

public string? TraceId { get; init; }

Property Value

string