# RichTextAiRequest (@salmonui/rich-text)

> The RichTextAiRequest interface of @salmonui/rich-text.

Canonical: https://salmonui.dev/docs/reference/rich-text/RichTextAiRequest

```ts
import type { RichTextAiRequest } from '@salmonui/rich-text';
```

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

## Reference

Kind: interface

```ts
interface RichTextAiRequest {
    readonly prompt: string;
    readonly selectionHtml: string;
    readonly signal: AbortSignal;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `prompt` | `readonly prompt: string;` |  |  |
| `selectionHtml` | `readonly selectionHtml: string;` |  | The selected content as HTML ('' when the selection is empty). |
| `signal` | `readonly signal: AbortSignal;` |  |  |
