Table of Contents

Class SessionInfo

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

Top-level session metadata. Stored in SQLite and as the root of JSON exports.

public sealed class SessionInfo
Inheritance
SessionInfo
Inherited Members

Properties

CreatedAt

public DateTime CreatedAt { get; init; }

Property Value

DateTime

ForkPoints

[SuppressMessage("Design", "MA0016:Prefer using collection abstraction instead of implementation", Justification = "POCO for serialization")]
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "POCO for JSON serialization")]
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "POCO for JSON serialization")]
public List<ForkPoint> ForkPoints { get; set; }

Property Value

List<ForkPoint>

Id

public string Id { get; init; }

Property Value

string

IsActive

public bool IsActive { get; set; }

Property Value

bool

MessageCount

public int MessageCount { get; set; }

Property Value

int

ModelId

public string? ModelId { get; init; }

Property Value

string

ModelSwitchHistory

[SuppressMessage("Design", "MA0016:Prefer using collection abstraction instead of implementation", Justification = "POCO for serialization")]
[SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "POCO for JSON serialization")]
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "POCO for JSON serialization")]
public List<ModelSwitchRecord> ModelSwitchHistory { get; set; }

Property Value

List<ModelSwitchRecord>

Name

public string? Name { get; set; }

Property Value

string

ProjectHash

public string ProjectHash { get; init; }

Property Value

string

ProjectPath

public string ProjectPath { get; init; }

Property Value

string

ProviderName

public string? ProviderName { get; init; }

Property Value

string

TotalTokens

public long TotalTokens { get; set; }

Property Value

long

Turns

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

Property Value

Collection<TurnRecord>

UpdatedAt

public DateTime UpdatedAt { get; set; }

Property Value

DateTime