ChatMessage

Models & Types · AiDotNet.PromptEngineering.Templates

Represents a single message in a chat conversation.

Constructors

Constructor Summary
ChatMessage(string role, string content) Initializes a new instance of the ChatMessage class.

Properties

Property Summary
string Content { get; set; } Gets or sets the content of the message.
string Role { get; set; } Gets or sets the role of the message sender.