Defines the fluent API for configuring EditorAIBaseSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorAIBaseSettingsBuilder
Inheritance: objectEditorAIBaseSettingsBuilder
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the EditorAIBaseSettingsBuilder class.
public EditorAIBaseSettingsBuilder(EditorAIBaseSettings container)
Properties
Gets the settings being configured.
protected EditorAIBaseSettings Container { get; }
Methods
Defines the commands for the AI tool. The commands are displayed in the AI tool dropdown.
public EditorAIBaseSettingsBuilder Commands(Action<EditorAISettingsCommandFactory> configurator)
The configurator for the commands setting.
Returns:The current EditorAIBaseSettingsBuilder instance.
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..
public EditorAIBaseSettingsBuilder SystemPrompt(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:The current EditorAIBaseSettingsBuilder instance.
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..
public EditorAIBaseSettingsBuilder SystemPrompt(string handler)
The name of the JavaScript function that will be evaluated.
Returns:The current EditorAIBaseSettingsBuilder instance.