ChatHistoryMessage(String, String, String, DateTimeOffset) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.