SystemAnthropicMessage

data class SystemAnthropicMessage(val text: String, val type: String = "text", val cacheControl: AnthropicCacheControl? = null)(source)

Represents a system message with designated text and type properties that can be utilized in anthropic system communication.

Constructors

Link copied to clipboard
constructor(text: String, type: String = "text", cacheControl: AnthropicCacheControl? = null)

Properties

Link copied to clipboard

Optional cache control directive for prompt caching. When set, everything up to and including this system message is eligible for caching.

Link copied to clipboard

The content of the message.

Link copied to clipboard

The type of message, defaulted to "text".