New to KendoReactStart a free 30-day trial

Configuration options for the AI assistant mode.

The AI assistant supports three operational modes:

  • Auto mode: Set requestOptions (with url property) - SmartBox handles the request automatically
  • Controlled mode: Set requestUrl without requestOptions - SmartBox makes requests but you control loading state
  • Manual mode: Don't set requestUrl or requestOptions - Handle requests yourself via onAIPromptRequest

Definition

Package:@progress/kendo-react-grid

Properties

enabled?

boolean

Enables or disables the AI assistant mode.

Configures the AI assistant history settings. Can be a boolean to enable/disable or an object with detailed settings.

Optional custom HTTP client for the AI assistant. When provided, overrides the built-in fetch-based transport.

Sets the placeholder text for the AI assistant input.

List of suggested prompts to display in the popup.

Example:
tsx
<SmartBox aiAssistantConfig={{
  promptSuggestions: ['Sort by price', 'Filter active items', 'Group by category']
}} />

Defines the options for the HTTP request. Accepts both GridAIRequestConfig (recommended) and AxiosRequestConfig (legacy).

Example:
tsx
// Auto mode - SmartBox handles everything
<SmartBox aiAssistantConfig={{
  requestOptions: {
    url: 'https://api.example.com/ai/grid',
    timeout: 5000,
    headers: { 'Authorization': 'Bearer token' }
  }
}} />

Defines the URL to which the AI request will be sent. When set without requestOptions, enables controlled mode.

Example:
tsx
// Controlled mode
<SmartBox aiAssistantConfig={{ requestUrl: 'https://api.example.com/ai/grid' }} />

speechToTextButton?

boolean | SpeechToTextButtonProps

Enables the speech-to-text functionality. Can be a boolean to enable/disable or an object with SpeechToTextButton props.