Back to Devexpress

ResponseReceivedEventArgs.Chat Property

blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-responsereceivedeventargs-ee2a6d10.md

latest1.3 KB
Original Source

ResponseReceivedEventArgs.Chat Property

Returns an AI Chat object instance.

Namespace : DevExpress.AIIntegration.Blazor.Chat

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

NuGet Package : DevExpress.AIIntegration.Blazor.Chat

Declaration

csharp
public IAIChat Chat { get; }

Property Value

TypeDescription
IAIChat

An object that implements the IAIChat interface.

|

Remarks

Use the Chat property to access the DxAIChat component’s methods.

razor
<DxAIChat ResponseReceived="OnResponseReceived" />

@code {
    private void OnResponseReceived(ResponseReceivedEventArgs args) {
        var messageHistory = args.Chat.SaveMessages();
    }
}

See Also

ResponseReceivedEventArgs Class

ResponseReceivedEventArgs Members

DevExpress.AIIntegration.Blazor.Chat Namespace