API reference: @salmonui/chat/inline-assist
InlineAssistCommandinterface
import type { InlineAssistCommand } from '@salmonui/chat/inline-assist';interface InlineAssistCommand {
readonly id: string;
readonly label: string;
readonly prompt?: string;
readonly keywords?: readonly string[];
readonly icon?: ReactNode;
readonly disabled?: boolean;
}
A slash command of the command menu.
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | Stable id, reported in |
label | readonly label: string; | Menu text; also what typing after |
promptoptional | readonly prompt?: string; | Prompt sent when the command is chosen (default: |
keywordsoptional | readonly keywords?: readonly string[]; | More words that match the filter. |
iconoptional | readonly icon?: ReactNode; | Decorative leading icon. |
disabledoptional | readonly disabled?: boolean; |