ChatMessage Class

Represents a chat message in the RadzenAIChat component.

Inheritance

Object

ChatMessage

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class ChatMessage

Constructors

ChatMessagelink

Represents a chat message in the RadzenAIChat component.

Declaration
public ChatMessage()

Properties

Contentlink

Gets or sets the content of the message.

Declaration
public string Content { get; set; }
Property Value
Type Description
stringGets or sets the content of the message.

Idlink

Gets or sets the unique identifier for the message.

Declaration
public string Id { get; set; }
Property Value
Type Description
stringGets or sets the unique identifier for the message.

IsStreaminglink

Gets or sets whether this message is currently streaming.

Declaration
public bool IsStreaming { get; set; }
Property Value
Type Description
boolGets or sets whether this message is currently streaming.

IsUserlink

Gets or sets whether this message is from the user.

Declaration
public bool IsUser { get; set; }
Property Value
Type Description
boolGets or sets whether this message is from the user.

Rolelink

Gets or sets the role associated with the message (e.g., "user", "assistant").

Declaration
public string Role { get; set; }
Property Value
Type Description
stringGets or sets the role associated with the message (e.g., "user", "assistant").

Timestamplink

Gets or sets the timestamp when the message was created.

Declaration
public DateTime Timestamp { get; set; }
Property Value
Type Description
DateTimeGets or sets the timestamp when the message was created.

UserIdlink

Gets or sets the ID of the user who sent the message.

Declaration
public string UserId { get; set; }
Property Value
Type Description
stringGets or sets the ID of the user who sent the message.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙