System

@SerialName(value = "system")
class System(val content: Content, val name: String? = null) : OpenAIMessage(source)

Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, use developer messages for this purpose instead.

Constructors

Link copied to clipboard
constructor(content: Content, name: String? = null)

Properties

Link copied to clipboard
open override val content: Content

The contents of the system message. For system messages, only type text is supported.

Link copied to clipboard
val name: String? = null

An optional name for the participant. Provides the model information to differentiate between participants of the same role.