User

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

Represents a message sent by the user as a request.

Constructors

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

Properties

Link copied to clipboard
open override val content: String

The main content of the user's message.

Link copied to clipboard

Optional media content attached to the 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.