GridSmartBoxAiAssistantSettingsSettingsBuilder

Methods

PromptSuggestions(System.String[])

A list of prompts to be suggested to the user in AI Assistant mode.

Parameters

suggestions - System.String[]

Enabled(System.Boolean)

Enables or disables the AI Assistant mode in the SmartBox.

Parameters

value - System.Boolean

The value for Enabled

RETURNS

Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder instance.

Enabled()

Enables or disables the AI Assistant mode in the SmartBox.

RETURNS

Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder instance.

Placeholder(System.String)

The placeholder of the input in AI Assistant mode.

Parameters

value - System.String

The value for Placeholder

RETURNS

Returns the current GridSmartBoxAiAssistantSettingsSettingsBuilder instance.

History(System.Action)

Sets the settings for the history queries in AI Assistant mode. Overrides the global smartBox.history setting for this mode.

Parameters

configurator - System.Action<GridSmartBoxAiAssistantSettingsHistorySettingsBuilder>

The configurator for the history setting.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder .

History(System.Boolean)

Sets the settings for the history queries in AI Assistant mode. Overrides the global smartBox.history setting for this mode.

Parameters

enabled - System.Boolean

Enables or disables the history option.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsHistorySettingsBuilder .

Service(System.Action)

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.

Parameters

configurator - System.Action<GridSmartBoxAiAssistantSettingsServiceSettingsBuilder>

The configurator for the service setting.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder .

SpeechToTextButton(System.Action)

Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.

Parameters

configurator - System.Action<GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder>

The configurator for the speechtotextbutton setting.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder .

SpeechToTextButton()

Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsSettingsBuilder .

SpeechToTextButton(System.Boolean)

Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.

Parameters

enabled - System.Boolean

Enables or disables the speechtotextbutton option.

RETURNS

Returns the current instance of GridSmartBoxAiAssistantSettingsSpeechToTextButtonSettingsBuilder .