EditorAIPromptSettingsBuilder

Methods

PromptSuggestions(System.String[])

Defines the suggestions for the inline AI tool.

Parameters

promptSuggestions - System.String[]

The suggestions are displayed in the inline AIPrompt tool

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.

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.

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.