Defines the fluent API for configuring GridSmartBoxAiAssistantSettingsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridSmartBoxAiAssistantSettingsSettingsBuilder<T> where T : class
Inheritance: objectGridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridSmartBoxAiAssistantSettingsSettingsBuilder<T> class.
public GridSmartBoxAiAssistantSettingsSettingsBuilder(GridSmartBoxAiAssistantSettingsSettings<T> container)
Properties
Gets the container settings.
protected GridSmartBoxAiAssistantSettingsSettings<T> Container { get; }
Methods
Enables or disables the AI Assistant mode in the SmartBox.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> Enabled()
GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder<T> instance.
Enables or disables the AI Assistant mode in the SmartBox.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> Enabled(bool value)
The value for Enabled
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder<T> instance.
Sets the settings for the history queries in AI Assistant mode. Overrides the global smartBox.history setting for this mode.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> History(Action<GridSmartBoxAiAssistantSettingsHistorySettingsBuilder<T>> configurator)
The GridSmartBoxAiAssistantSettingsHistorySettingsBuilder<T> for the history setting.
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder<T> .
Sets the settings for the history queries in AI Assistant mode. Overrides the global smartBox.history setting for this mode.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> History(bool enabled)
Enables or disables the history option.
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsHistorySettingsBuilder<T> .
The placeholder of the input in AI Assistant mode.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> Placeholder(string value)
The value for Placeholder
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder<T> instance.
A list of prompts to be suggested to the user in AI Assistant mode.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> PromptSuggestions(params string[] suggestions)
String value represents the URL to which the SmartBox tool sends the AI request. When you set this property, the SmartBox tool sends and handles an HTTP request to the provided URL. You can handle the smartBoxAIAssistantPromptRequest event to modify the request options before the tool sends it.The object configuration enables the user to set specific headers configuration and send additional data with the AI request.When service is not configured, the SmartBox tool does not send an HTTP request. You should handle the smartBoxAIAssistantPromptRequest event to send and handle a custom HTTP request.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> Service(Action<GridSmartBoxAiAssistantSettingsServiceSettingsBuilder<T>> configurator)
The GridSmartBoxAiAssistantSettingsServiceSettingsBuilder<T> for the service setting.
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder<T> .
Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> SpeechToTextButton()
GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder<T> .
Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> SpeechToTextButton(Action<GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder<T>> configurator)
The GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder<T> for the speechtotextbutton setting.
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder<T> .
Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.
public GridSmartBoxAiAssistantSettingsSettingsBuilder<T> SpeechToTextButton(bool enabled)
Enables or disables the speechtotextbutton option.
Returns:GridSmartBoxAiAssistantSettingsSettingsBuilder<T>
Returns the current instance of GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder<T> .