Skip to main content
All docs
V24.2

MessageSentEventArgs.Chat Property

Returns an object that allows you to send messages to the chat.

Namespace: DevExpress.AIIntegration.Blazor.Chat

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

NuGet Package: DevExpress.AIIntegration.Blazor.Chat

Declaration

public IAIChat Chat { get; }

Property Value

Type Description
IAIChat

An object that implements the IAIChat interface.

Remarks

Use the Chat property to access methods available for the DxAIChat component. Call the Chat.SendMessage method to send a message to the chat.

<DxAIChat MessageSent="MessageSent" />

@code {
    async Task MessageSent(MessageSentEventArgs args) {
        await args.Chat.SendMessage($"Processed: {args.Content}", ChatRole.Assistant);
    }
}

Run Demo: AI Chat - Manual Message Processing

See Also