fromText

fun fromText(role: String, text: String): Content

Creates a Content with the given role containing a single text Part of text.