Table of Contents

Class FooterState

Namespace
JD.AI.Rendering
Assembly
JD.AI.dll

Immutable snapshot of all data required to render the TUI footer.

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

Constructors

FooterState(string, string?, string?, long, long, string, string, int, PermissionMode, double, IReadOnlyList<PluginSegment>)

Immutable snapshot of all data required to render the TUI footer.

public FooterState(string WorkingDirectory, string? GitBranch, string? PrLink, long ContextTokensUsed, long ContextWindowSize, string Provider, string Model, int TurnCount, PermissionMode Mode, double WarnThresholdPercent, IReadOnlyList<PluginSegment> PluginSegments)

Parameters

WorkingDirectory string
GitBranch string
PrLink string
ContextTokensUsed long
ContextWindowSize long
Provider string
Model string
TurnCount int
Mode PermissionMode
WarnThresholdPercent double
PluginSegments IReadOnlyList<PluginSegment>

Properties

ContextTokensUsed

public long ContextTokensUsed { get; init; }

Property Value

long

ContextWindowSize

public long ContextWindowSize { get; init; }

Property Value

long

GitBranch

public string? GitBranch { get; init; }

Property Value

string

Mode

public PermissionMode Mode { get; init; }

Property Value

PermissionMode

Model

public string Model { get; init; }

Property Value

string

PluginSegments

public IReadOnlyList<PluginSegment> PluginSegments { get; init; }

Property Value

IReadOnlyList<PluginSegment>
public string? PrLink { get; init; }

Property Value

string

Provider

public string Provider { get; init; }

Property Value

string

TurnCount

public int TurnCount { get; init; }

Property Value

int

WarnThresholdPercent

public double WarnThresholdPercent { get; init; }

Property Value

double

WorkingDirectory

public string WorkingDirectory { get; init; }

Property Value

string

Methods

ToSegments()

Resolves this state into a flat dictionary of named segments. Keys whose value is null should be hidden by the renderer.

public IDictionary<string, string?> ToSegments()

Returns

IDictionary<string, string>