New to Telerik UI for Blazor? Start a free 30-day trial
AIPrompt Commands View
Updated on Oct 1, 2026
The Commands View displays a set of predefined commands, which the user can browse and execute. The commands are passed to the component through the Commands parameter, which expects a collection of type List<AIPromptCommandDescriptor>. You can also organize commands in a hierarchy, through parent-child relationships.
Parent commands cannot be directly executed, and only one level of nesting is supported.
AIPromptCommandDescriptor Parameters
The following properties enable you to customize each command:
| Parameter | Type | Description |
|---|---|---|
Id | string | The Id of the command. |
Title | string | The title of the command. Rendered as text within the Command view. |
Icon | object | The Telerik Font or SVG icon rendered before the title within the Command view. |
Prompt | string | The text to send as the prompt when this command is executed by the AIPrompt. |
Children | List<AIPromptCommandDescriptor> | The nested commands (if any) of the command. |
Using the
Commandsparameter to pass a collection of predefined commands to the AIPrompt for Blazor
Loading ...