# InlineAssistApi (@salmonui/chat/inline-assist)

> The InlineAssistApi interface of @salmonui/chat/inline-assist: Imperative API (ref).

Canonical: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistApi

```ts
import type { InlineAssistApi } from '@salmonui/chat/inline-assist';
```

Entry index: https://salmonui.dev/docs/reference/chat/inline-assist (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/inline-assist.md).

## Reference

Kind: interface

```ts
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`).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `open` | `open(): void;` |  |  |
| `close` | `close(): void;` |  |  |
| `send` | `send(text?: string): void;` |  | Sends `text` (default: the current prompt) as a new request. |
| `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. |
