EditorAIBaseSettingsBuilder
Methods
SystemPrompt(System.String)
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..
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
RETURNS
The current EditorAIBaseSettingsBuilder instance.
SystemPrompt(System.Func)
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..
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
The current EditorAIBaseSettingsBuilder instance.
Commands(System.Action)
Defines the commands for the AI tool. The commands are displayed in the AI tool dropdown.
Parameters
configurator - System.Action<EditorAISettingsCommandFactory>
The configurator for the commands setting.
RETURNS
The current EditorAIBaseSettingsBuilder instance.