Message
Class
Represents a message in an AI conversation with a specific role and content.
Definition
Namespace:Telerik.Reporting.AI
Assembly:Telerik.Reporting.dll
Syntax:
C#
public sealed class Message : IMessage
Inheritance: objectMessage
Implements:
Constructors
Initializes a new instance of the Message class.
C#
public Message(MessageRole role, IReadOnlyCollection<IContent> contents)
The role of the message sender within the conversation.
contentsIReadOnlyCollection<IContent>The collection of content items contained in this message.
Properties
Gets the collection of content items contained in this message.
C#
public IReadOnlyCollection<IContent> Contents { get; }
Implements:
Gets the role of the message sender within the conversation.
C#
public MessageRole Role { get; }
Implements: