# RichTextAiAssistant (@salmonui/rich-text)

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

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

```ts
import type { RichTextAiAssistant } 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 RichTextAiAssistant {
    readonly onRequest: (request: RichTextAiRequest) => Promise<string> | AsyncIterable<string>;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `onRequest` | `readonly onRequest: (request: RichTextAiRequest) => Promise<string> \| AsyncIterable<string>;` |  | Text (plain, inserted as paragraphs) as a whole or streamed in chunks. |
