Skip to main content
All docs
V25.1
  • DxAIChatPromptSuggestion.Title Property

    Specifies the prompt suggestion title.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.1.dll

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    [Parameter]
    public string Title { get; set; }

    Property Value

    Type Description
    String

    The prompt suggestion title.

    Remarks

    Populate the component’s PromptSuggestions property with DxAIChatPromptSuggestion objects (hint bubbles). For each suggestion, you can specify Title, Text, and PromptMessage properties.

    Run Demo: AI Chat – Prompt Suggestions

    @using DevExpress.AIIntegration.Blazor.Chat
    
    <DxAIChat Initialized="ChatInitialized">
        <PromptSuggestions>
            @foreach (var suggestion in PromptSuggestions) {
                <DxAIChatPromptSuggestion Title="@suggestion.Title"
                                          Text="@suggestion.Text"
                                          PromptMessage="@suggestion.PromptMessage" />
            }
        </PromptSuggestions>
    </DxAIChat>
    
    @code {
        List<PromptSuggestion> PromptSuggestions { get; set; }
        void ChatInitialized() {
            PromptSuggestions = GetData();
        }
    }
    

    Implements

    See Also