New to Kendo UI for VueStart a free 30-day trial

AIPromptProps

Interface

The props of the AIPrompt component.

Definition

Package:@progress/kendo-vue-conversational-ui

Properties

Name of the active view.

dir?

string

The direction of the Prompt.

loading?

boolean

If true, the prompt is in a loading state.

onActiveviewchange?

(name: string) => void

The onActiveViewChange event handler of the Kendo UI for Vue AIPrompt component. Fires when active view is changed. Exposes the name of the new active view as event data.

Parameters:namestring

onCancel?

() => void

Called when the prompt is cancelled.

The onCommandExecute event handler of the Kendo UI for Vue AIPrompt component. Fires each time the user clicks a command in the Command view. Exposes the selected command as event data.

Parameters:commandAIPromptCommandInterface

onPromptrequest?

(prompt: string, outputItem: AIPromptOutputInterface) => void

The onPromptRequest event handler of the Kendo UI for Vue AIPrompt component. Fires when user clicks the Generate button in the Prompt view.

Parameters:prompt?stringoutputItem?AIPromptOutputInterface

The collection of generated prompt outputs that will be rendered in the Output view.

The placeholder text for the Prompt view textarea.

streaming?

boolean

If true, the prompt is in a streaming state.

Optionally specifies the rendering for the suggestions displayed in the AI Prompt component. 'suggestionsView' can be either 'classic' or 'modern'.

  • 'classic': Uses a rectangular styling for suggestions.
  • 'modern': Uses a chip-like styling for suggestions.

Collection with items that will override the default Toolbar items.