Freigeben über


ChatHistoryMessage Class

Definition

Represents a single message in the chat history.

public class ChatHistoryMessage
type ChatHistoryMessage = class
Public Class ChatHistoryMessage
Inheritance
ChatHistoryMessage

Constructors

Name Description
ChatHistoryMessage(String, String, String, DateTimeOffset)

Initializes a new instance of the ChatHistoryMessage class.

Properties

Name Description
Content

Gets or sets the content of the chat message.

Id

Gets or sets the unique identifier for the chat message.

Role

Gets or sets the role of the message sender (e.g., "user", "system").

Timestamp

Gets or sets the timestamp of when the message was sent.

Applies to