User

fun User(content: String, name: String? = null): ChatMessage
fun User(content: List<ContentPart>, name: String? = null): ChatMessage

Create a system chat message.

Parameters

content

the contents of the message.

name

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