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

> The InlineAssistRequest interface of @salmonui/chat/inline-assist.

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

```ts
import type { InlineAssistRequest } 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 InlineAssistRequest {
    readonly prompt: string;
    readonly command: InlineAssistCommand | undefined;
    readonly selection: string;
    readonly messages: readonly InlineAssistMessage[];
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `prompt` | `readonly prompt: string;` |  | The prompt text (a command's `prompt` when a command was chosen). |
| `command` | `readonly command: InlineAssistCommand \| undefined;` |  | The chosen command, if any. |
| `selection` | `readonly selection: string;` |  | The selected text: `selection`, else the text of a `Range` anchor, else `''`. |
| `messages` | `readonly messages: readonly InlineAssistMessage[];` |  | Earlier prompts and responses (without the new one). |
