# SuggestFunction (@salmonui/chat/text-suggest)

> The SuggestFunction type of @salmonui/chat/text-suggest.

Canonical: https://salmonui.dev/docs/reference/chat/text-suggest/SuggestFunction

```ts
import type { SuggestFunction } from '@salmonui/chat/text-suggest';
```

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

## Reference

Kind: type

```ts
type SuggestFunction = (context: SuggestContext, init: {
    readonly signal: AbortSignal;
}) => Promise<string | null>;
```
