System Message
@Serializable
@SerialName(value = "system" )
System-role message — sets the assistant's behavior for the rest of the conversation.
Example:
val messages = listOf(
SystemMessage("You are a concise Kotlin expert."),
UserMessage("Explain extension functions."),
)Content copied to clipboard