Table of Contents

Class InteractiveInput

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

Interactive readline replacement with ghost-text completions, dropdown menu, command syntax highlighting, clipboard paste detection, and input history. Replaces Console.ReadLine() with a modern terminal editing experience.

[ExcludeFromCodeCoverage]
public sealed class InteractiveInput
Inheritance
InteractiveInput
Inherited Members

Constructors

InteractiveInput(CompletionProvider)

public InteractiveInput(CompletionProvider completions)

Parameters

completions CompletionProvider

Properties

VimModeEnabled

When true, use vim-style input editing modes and motions.

public bool VimModeEnabled { get; set; }

Property Value

bool

Methods

ReadLine()

Legacy wrapper that returns a plain string.

public string? ReadLine()

Returns

string

ReadLineWithAttachments()

Reads a line of input with interactive completions and paste support. Returns null on Ctrl+C or when input is cancelled. Falls back to Console.ReadLine() when stdin is redirected.

public InputResult? ReadLineWithAttachments()

Returns

InputResult

Events

OnCycleModel

Fires when the user presses Alt+P to cycle models.

public event EventHandler? OnCycleModel

Event Type

EventHandler

OnDoubleEscape

Fires when the user double-taps ESC at an empty prompt.

public event EventHandler? OnDoubleEscape

Event Type

EventHandler

OnToggleExtendedThinking

Fires when the user presses Alt+T to toggle extended thinking.

public event EventHandler? OnToggleExtendedThinking

Event Type

EventHandler

OnTogglePlanMode

Fires when the user presses Shift+Tab to toggle plan mode.

public event EventHandler? OnTogglePlanMode

Event Type

EventHandler