Class TurnUsageRecord
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
DurationMs
public long DurationMs { get; init; }
Property Value
ModelId
public required string ModelId { get; init; }
Property Value
ProjectPath
public string? ProjectPath { get; init; }
Property Value
PromptTokens
public required long PromptTokens { get; init; }
Property Value
ProviderId
public required string ProviderId { get; init; }
Property Value
SessionId
public required string SessionId { get; init; }
Property Value
Timestamp
public DateTimeOffset Timestamp { get; init; }
Property Value
ToolCalls
public int ToolCalls { get; init; }
Property Value
TotalTokens
public long TotalTokens { get; }
Property Value
TraceId
public string? TraceId { get; init; }