User
data class User @JvmOverloads constructor(val parts: List<ContentPart>, val metaInfo: RequestMetaInfo, val cacheControl: CacheControl? = null) : Message.Request(source)
Represents a message sent by the user as a request.
Constructors
Link copied to clipboard
constructor(parts: List<ContentPart>, metaInfo: RequestMetaInfo, cacheControl: CacheControl? = null)
Single content part user message constructor
Text content user message constructor
Properties
Link copied to clipboard
The cache strategy for this message.
Link copied to clipboard
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Link copied to clipboard
Metadata associated with the request, including timestamp information. Defaults to a new RequestMetaInfo.
Link copied to clipboard
The parts of the user's message.
Link copied to clipboard
The role of the message, which is fixed as Role.User for this implementation.