New to Telerik ReportingStart a free 30-day trial

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: IMessage

Constructors

Initializes a new instance of the Message class.

C#
public Message(MessageRole role, IReadOnlyCollection<IContent> contents)
Parameters:roleMessageRole

The role of the message sender within the conversation.

contentsIReadOnlyCollection<IContent>

The collection of content items contained in this message.

Properties

Contents

IReadOnlyCollection<IContent>

Gets the collection of content items contained in this message.

C#
public IReadOnlyCollection<IContent> Contents { get; }

Implements: IMessage.Contents

Gets the role of the message sender within the conversation.

C#
public MessageRole Role { get; }

Implements: IMessage.Role