content

fun content(role: String? = "user", init: Content.Builder.() -> Unit): Content(source)

Function to build a new Content instances in a DSL-like manner.

Contains a collection of text, image, and binary parts.

Example usage:

content("user") {
text("Example string")
)