Table of Contents

Class TurnRecord

Namespace
JD.AI.Core.Sessions
Assembly
JD.AI.Core.dll

A single conversation turn (user message or assistant response).

public sealed class TurnRecord
Inheritance
TurnRecord
Inherited Members

Properties

Content

public string? Content { get; set; }

Property Value

string

ContextWindowTokens

Model context window size at the time of this turn (0 = unknown).

public int ContextWindowTokens { get; set; }

Property Value

int

CreatedAt

public DateTime CreatedAt { get; init; }

Property Value

DateTime

CumulativeContextTokens

Estimated cumulative tokens in the context window after this turn completed.

public long CumulativeContextTokens { get; set; }

Property Value

long

DurationMs

public long DurationMs { get; set; }

Property Value

long

FilesTouched

[SuppressMessage("Design", "MA0016:Prefer using collection abstraction instead of implementation", Justification = "POCO for serialization")]
public Collection<FileTouchRecord> FilesTouched { get; init; }

Property Value

Collection<FileTouchRecord>

Id

public string Id { get; init; }

Property Value

string

ModelId

public string? ModelId { get; set; }

Property Value

string

ProviderName

public string? ProviderName { get; set; }

Property Value

string

Role

public string Role { get; init; }

Property Value

string

SessionId

public string SessionId { get; init; }

Property Value

string

ThinkingText

public string? ThinkingText { get; set; }

Property Value

string

TokensIn

public long TokensIn { get; set; }

Property Value

long

TokensOut

public long TokensOut { get; set; }

Property Value

long

ToolCalls

[SuppressMessage("Design", "MA0016:Prefer using collection abstraction instead of implementation", Justification = "POCO for serialization")]
public Collection<ToolCallRecord> ToolCalls { get; init; }

Property Value

Collection<ToolCallRecord>

TurnIndex

public int TurnIndex { get; init; }

Property Value

int