Freigeben über


ChatHistoryMessage(String, String, String, DateTimeOffset) Constructor

Definition

Initializes a new instance of the ChatHistoryMessage class.

public ChatHistoryMessage(string id, string role, string content, DateTimeOffset timestamp);
new Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage : string * string * string * DateTimeOffset -> Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage
Public Sub New (id As String, role As String, content As String, timestamp As DateTimeOffset)

Parameters

id
String

The unique identifier for the chat message.

role
String

The role of the message sender (e.g., "user", "system").

content
String

The content of the chat message.

timestamp
DateTimeOffset

The timestamp of when the message was sent.

Applies to