Represents a chat message in the RadzenAIChat component.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class ChatMessageRepresents a chat message in the RadzenAIChat component.
public ChatMessage()Gets or sets the content of the message.
public string Content { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the content of the message. |
Gets or sets the unique identifier for the message.
public string Id { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the unique identifier for the message. |
Gets or sets whether this message is currently streaming.
public bool IsStreaming { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether this message is currently streaming. |
Gets or sets whether this message is from the user.
public bool IsUser { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether this message is from the user. |
Gets or sets the role associated with the message (e.g., "user", "assistant").
public string Role { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the role associated with the message (e.g., "user", "assistant"). |
Gets or sets the timestamp when the message was created.
public DateTime Timestamp { get; set; }
| Type | Description |
|---|---|
| DateTime | Gets or sets the timestamp when the message was created. |
Gets or sets the ID of the user who sent the message.
public string UserId { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the ID of the user who sent the message. |