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