Content

@Serializable
data class Content(val parts: List<Part>? = null, val role: String? = null)

Contains the multi-part content of a message.

Constructors

Link copied to clipboard
constructor(parts: List<Part>? = null, role: String? = null)

Properties

Link copied to clipboard
val parts: List<Part>? = null

List of parts that constitute a single message. Each part may have a different IANA MIME type.

Link copied to clipboard
val role: String? = null

Optional. The producer of the content. Must be either 'user' or 'model'. If not set, the service will default to 'user'.