Skip to main content

HostAdapter

Trait HostAdapter 

Source
pub trait HostAdapter:
    WorkspaceInfoProvider
    + NotificationProvider
    + ThemeProvider {
    // Provided methods
    fn session_defaults(&self) -> HostSessionDefaults { ... }
    fn slash_commands(&self) -> Vec<SlashCommandItem> { ... }
    fn app_name(&self) -> String { ... }
    fn non_interactive_hint(&self) -> Option<String> { ... }
}
Expand description

Full host adapter contract for embedding vtcode-tui in other apps.

Provided Methods§

Source

fn session_defaults(&self) -> HostSessionDefaults

Provide host-specific defaults for TUI session startup.

Source

fn slash_commands(&self) -> Vec<SlashCommandItem>

Provide slash command metadata to render in the command palette.

Source

fn app_name(&self) -> String

Display name used in terminal title and lightweight UI copy.

Source

fn non_interactive_hint(&self) -> Option<String>

Optional hint shown when interactive TTY requirements are not met.

Implementors§