Skip to main content
All docs
V24.2

BlazorChatMessage(ChatRole, String) Constructor

Initializes a new instance of the BlazorChatMessage class with specified settings.

Namespace: DevExpress.AIIntegration.Blazor.Chat

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

NuGet Package: DevExpress.AIIntegration.Blazor.Chat

Declaration

public BlazorChatMessage(
    ChatRole role,
    string text
)

Parameters

Name Type Description
role Microsoft.Extensions.AI.ChatRole

The owner role.

text String

The message content.

See Also