System
data class System @JvmOverloads constructor(val parts: List<MessagePart.Text>, val metaInfo: RequestMetaInfo, val id: String? = null) : Message(source)
A system-role message used to set the behaviour or persona of the assistant. Only MessagePart.Text parts are supported.
Constructors
Link copied to clipboard
Convenience constructor that wraps a single MessagePart.Text in a list.
constructor(content: String, metaInfo: RequestMetaInfo, cache: CacheControl? = null, id: String? = null)
Convenience constructor that creates a MessagePart.Text from a raw string.