API reference: @salmonui/chat/text-suggest
SuggestContextinterface
import type { SuggestContext } from '@salmonui/chat/text-suggest';interface SuggestContext {
readonly value: string;
readonly textBeforeCaret: string;
readonly textAfterCaret: string;
}
What the application's suggest function receives.
| Name | Signature | Description |
|---|---|---|
value | readonly value: string; | |
textBeforeCaret | readonly textBeforeCaret: string; | |
textAfterCaret | readonly textAfterCaret: string; |