New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Provides a base class for configuring Editor AI settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorAIBaseSettingsBuilder

Inheritance: objectEditorAIBaseSettingsBuilder

Derived Classes: EditorAIPromptSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public EditorAIBaseSettingsBuilder(EditorAIBaseSettings container)
Parameters:containerEditorAIBaseSettings

Properties

C#
protected EditorAIBaseSettings Container { get; }

Methods

Defines the commands for the AI tool. The commands are displayed in the AI tool dropdown.

C#
public EditorAIBaseSettingsBuilder Commands(Action<EditorAISettingsCommandFactory> configurator)
Parameters:configuratorAction<EditorAISettingsCommandFactory>

The configurator for the commands setting.

Returns:

EditorAIBaseSettingsBuilder

Defines the system prompt for the AI tool. The function accepts the following arguments: context - The selected text in the editor. or prompt - The user prompt..

C#
public EditorAIBaseSettingsBuilder SystemPrompt(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

EditorAIBaseSettingsBuilder

Defines the system prompt for the AI tool. The function accepts the following arguments: context - The selected text in the editor. or prompt - The user prompt..

C#
public EditorAIBaseSettingsBuilder SystemPrompt(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

EditorAIBaseSettingsBuilder