Back to Devexpress

DxAIChatPromptSuggestion.SendOnClick Property

blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-dxaichatpromptsuggestion-31c3e705.md

latest2.5 KB
Original Source

DxAIChatPromptSuggestion.SendOnClick Property

Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.

Namespace : DevExpress.AIIntegration.Blazor.Chat

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

NuGet Package : DevExpress.AIIntegration.Blazor.Chat

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool SendOnClick { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

Specifies what happens when you click a search suggestion: instantly send it to chat or place it in the prompt box.

|

Remarks

Enable the SendOnClick property of the DxAIChatPromptSuggestion to instantly send the message from the corresponding suggestion bubble to the chat upon click.

Disable the property to insert the message to the chat prompt box. It allows the user to edit text and send it manually.

razor
@using DevExpress.AIIntegration.Blazor.Chat

<DxAIChat>
    <PromptSuggestions>
        <DxAIChatPromptSuggestion Title="Tell me a joke"
                                  Text="Take a break and enjoy a quick laugh"
                                  PromptMessage="Tell me a joke about AI."
                                  SendOnClick="true" />
        <DxAIChatPromptSuggestion Title="Summarize text"
                                  Text="Extract a quick summary (main ideas)"
                                  PromptMessage="Summarize the following text:"
                                  SendOnClick="false" />
    </PromptSuggestions>
</DxAIChat>

Implements

SendOnClick

See Also

DxAIChatPromptSuggestion Class

DxAIChatPromptSuggestion Members

DevExpress.AIIntegration.Blazor.Chat Namespace