Provides a fluent interface for configuring Grid AI settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the data model.
Syntax:
public class GridAiSettingsBuilder<T> where T : class
Inheritance: objectGridAiSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridAiSettingsBuilder<T> class.
public GridAiSettingsBuilder(GridAiSettings<T> container, ViewContext viewContext)
Properties
protected GridAiSettings<T> Container { get; }
ViewContext
ViewContext
protected ViewContext ViewContext { get; set; }
Methods
The URL or the configuration of the AI service to use for generating outputs.
public GridAiSettingsBuilder<T> AIAssistant(Action<AIPromptBuilder> configurator)
The AIPromptBuilder for the AI Assistant setting.
Returns:Returns the current instance of GridAiSettingsBuilder<T> .
Defines the configuration options for the AI AssistantWindow in the Grid. If set to false, the AI AssistantWindow is disabled.
public GridAiSettingsBuilder<T> AIAssistantWindow(Action<WindowBuilder> configurator)
The WindowBuilder for the AI AssistantWindow setting.
Returns:Returns the current instance of GridAiSettingsBuilder<T> .
Configures if the AI Assistant Window should remain visible after the response.
public GridAiSettingsBuilder<T> AutoClose(bool value)
The value for AutoClose
Returns:Returns the current GridAiSettingsBuilder<T> instance.
Configures if the AI Assistant output should be cleared after closing.
public GridAiSettingsBuilder<T> KeepOutputHistory()
Returns the current GridAiSettingsBuilder<T> instance.
Configures if the AI Assistant output should be cleared after closing.
public GridAiSettingsBuilder<T> KeepOutputHistory(bool value)
The value for KeepOutputHistory
Returns:Returns the current GridAiSettingsBuilder<T> instance.
The URL or the configuration of the AI service to use for generating outputs.
public GridAiSettingsBuilder<T> Service(Action<GridAiServiceSettingsBuilder<T>> configurator)
The GridAiServiceSettingsBuilder<T> for the service setting.
Returns:Returns the current instance of GridAiSettingsBuilder<T> .
The URL or the configuration of the AI service to use for generating outputs.
public GridAiSettingsBuilder<T> Service(string url)
The url for the service.
Returns:Returns the current instance of GridAiSettingsBuilder<T> .