Table of Contents

Class TuningSessionModel

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

Local, structured A/B driving-session model used to compare baseline and candidate variants without an MCP server.

public sealed class TuningSessionModel
Inheritance
TuningSessionModel
Inherited Members

Properties

BaselineLabel

Gets the baseline variant label.

public string BaselineLabel { get; }

Property Value

string

CandidateLabel

Gets the candidate variant label.

public string CandidateLabel { get; }

Property Value

string

CompletedPromptCount

Gets the count of prompts that already have responses.

public int CompletedPromptCount { get; }

Property Value

int

CurrentPrompt

Gets the currently selected prompt.

public TuningSessionPrompt CurrentPrompt { get; }

Property Value

TuningSessionPrompt

CurrentPromptIndex

Gets the current prompt index.

public int CurrentPromptIndex { get; }

Property Value

int

PendingPromptCount

Gets the count of prompts still awaiting a recorded verdict.

public int PendingPromptCount { get; }

Property Value

int

Prompts

Gets the ordered list of structured prompts for the session.

public IReadOnlyList<TuningSessionPrompt> Prompts { get; }

Property Value

IReadOnlyList<TuningSessionPrompt>

Responses

Gets the recorded responses keyed by prompt identifier.

public IReadOnlyDictionary<string, TuningSessionResponse> Responses { get; }

Property Value

IReadOnlyDictionary<string, TuningSessionResponse>

StatusText

Gets the short status line describing the active comparison.

public string StatusText { get; }

Property Value

string

TelemetrySummary

Gets the troubleshooting or telemetry summary carried into the session.

public string TelemetrySummary { get; }

Property Value

string

VehicleName

Gets the vehicle name shown for the session.

public string VehicleName { get; }

Property Value

string

Methods

Create(string, string, string, string, string?)

Creates a structured A/B tuning session for local better-or-worse driving comparisons.

public static TuningSessionModel Create(string vehicleName, string statusText, string baselineLabel, string candidateLabel, string? telemetrySummary = null)

Parameters

vehicleName string

Display name of the active vehicle.

statusText string

Short status line shown in the session header.

baselineLabel string

Label for the baseline run or preset.

candidateLabel string

Label for the candidate run or preset.

telemetrySummary string

Optional short troubleshooting or telemetry summary shown alongside the prompts.

Returns

TuningSessionModel

A new TuningSessionModel.

CreateSessionSummary()

Builds a compact summary of the session responses for later review or persistence.

public string CreateSessionSummary()

Returns

string

Readable multi-line summary text.

MoveNextPrompt()

Advances to the next prompt when possible.

public bool MoveNextPrompt()

Returns

bool

true when the current prompt index changed; otherwise false.

MovePreviousPrompt()

Moves back to the previous prompt when possible.

public bool MovePreviousPrompt()

Returns

bool

true when the current prompt index changed to an earlier prompt; otherwise, false.

RecordCurrentPromptResponse(TuningSessionVerdict, string?)

Records or replaces the response for the current prompt.

public void RecordCurrentPromptResponse(TuningSessionVerdict verdict, string? note = null)

Parameters

verdict TuningSessionVerdict

Driver verdict for the current prompt.

note string

Optional short note from the driver.