User

data class User(val content: String, val metaInfo: RequestMetaInfo, val attachments: List<Attachment> = emptyList()) : Message.Request, Message.WithAttachments(source)

Represents a message sent by the user as a request.

Constructors

Link copied to clipboard
constructor(content: String, metaInfo: RequestMetaInfo, attachments: List<Attachment> = emptyList())

Properties

Link copied to clipboard
open override val attachments: List<Attachment>

Optional media content attached to the message.

Link copied to clipboard
open override val content: String

The main content of the user's message.

Link copied to clipboard
open override val metaInfo: RequestMetaInfo

Metadata associated with the request, including timestamp information. Defaults to a new RequestMetaInfo.

Link copied to clipboard
open override val role: Message.Role

The role of the message, which is fixed as Role.User for this implementation.