API reference: @salmonui/chat/inline-assist
InlineAssistApiinterface
import type { InlineAssistApi } from '@salmonui/chat/inline-assist';interface InlineAssistApi {
open(): void;
close(): void;
send(text?: string): void;
stop(): void;
showCommands(): void;
hideCommands(): void;
focus(): void;
readonly element: HTMLElement | null;
}
Imperative API (ref).
| Name | Signature | Description |
|---|---|---|
open | open(): void; | |
close | close(): void; | |
send | send(text?: string): void; | Sends |
stop | stop(): void; | Aborts the running response. |
showCommands | showCommands(): void; | Shows the command menu (unfiltered). |
hideCommands | hideCommands(): void; | |
focus | focus(): void; | Focuses the prompt. |
element | readonly element: HTMLElement | null; | The dialog element while open. |