System

constructor(parts: List<MessagePart.Text>, metaInfo: RequestMetaInfo, id: String? = null)(source)


constructor(part: MessagePart.Text, metaInfo: RequestMetaInfo, id: String? = null)(source)

Convenience constructor that wraps a single MessagePart.Text 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 system message.

cache

Optional cache-control directive for the message part.