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