GridSmartBoxAIAssistantConfigProps
Configuration options for the AI assistant mode.
The AI assistant supports three operational modes:
- Auto mode: Set
requestOptions(withurlproperty) - SmartBox handles the request automatically - Controlled mode: Set
requestUrlwithoutrequestOptions- SmartBox makes requests but you control loading state - Manual mode: Don't set
requestUrlorrequestOptions- Handle requests yourself viaonAIPromptRequest
| Name | Type | Default | Description |
|---|---|---|---|
enabled? |
|
Enables or disables the AI assistant mode. | |
history? |
|
Configures the AI assistant history settings. Can be a boolean to enable/disable or an object with detailed settings. | |
placeholder? |
|
Sets the placeholder text for the AI assistant input. | |
promptSuggestions? |
|
List of suggested prompts to display in the popup. tsx
| |
requestOptions? |
|
Defines the options for the axios request.
When set (with tsx
| |
requestUrl? |
|
Defines the URL to which the AI request will be sent.
When set without tsx
| |
speechToTextButton? |
|
Enables the speech-to-text functionality. Can be a boolean to enable/disable or an object with SpeechToTextButton props. |