API reference: @salmonui/chat/smart-paste
SmartPasteFieldinterface
import type { SmartPasteField } from '@salmonui/chat/smart-paste';interface SmartPasteField {
readonly name: string;
readonly label?: string;
readonly description?: string;
readonly type: string;
readonly options?: readonly string[];
readonly multiple?: boolean;
}
What the adapter learns about one field.
| Name | Signature | Description |
|---|---|---|
name | readonly name: string; | The field's |
labeloptional | readonly label?: string; | Text of the associated |
descriptionoptional | readonly description?: string; |
|
type | readonly type: string; | Input |
optionsoptional | readonly options?: readonly string[]; | Allowed values: |
multipleoptional | readonly multiple?: boolean; | A multiple |