Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class ChatMessage

    Represents a chat message in the conversation history.

    Inheritance
    object
    ChatMessage
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen
    Assembly: Radzen.Blazor.dll
    Syntax
    public class ChatMessage

    Constructors

    ChatMessage()

    Represents a chat message in the conversation history.

    Declaration
    public ChatMessage()

    Properties

    Content

    Gets or sets the content of the message.

    Declaration
    public string Content { get; set; }
    Property Value
    Type Description
    string

    Role

    Gets or sets the role of the message sender (system, user, or assistant).

    Declaration
    public string Role { get; set; }
    Property Value
    Type Description
    string

    Timestamp

    Gets or sets the timestamp when the message was created.

    Declaration
    public DateTime Timestamp { get; set; }
    Property Value
    Type Description
    DateTime

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT