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:

ParameterTypeDescription
IdstringThe Id of the command.
TitlestringThe title of the command. Rendered as text within the Command view.
IconobjectThe Telerik Font or SVG icon rendered before the title within the Command view.
PromptstringThe text to send as the prompt when this command is executed by the AIPrompt.
ChildrenList<AIPromptCommandDescriptor>The nested commands (if any) of the command.

Using the Commands parameter to pass a collection of predefined commands to the AIPrompt for Blazor

Example
View Source
Loading ...

See Also