User
constructor(parts: List<MessagePart.RequestPart>, metaInfo: RequestMetaInfo, id: String? = null)(source)
Convenience constructor that wraps a single MessagePart.RequestPart in a list.
constructor(content: String, metaInfo: RequestMetaInfo, cache: CacheControl? = null, id: String? = null)(source)
Convenience constructor that creates a MessagePart.Text from a raw string.
Parameters
content
The plain-text content of the user message.
cache
Optional cache-control directive for the message part.