Content

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

Represents a part of the content in a request or response.

Constructors

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

Properties

Link copied to clipboard

The parts that make up this content.

Link copied to clipboard
val role: String?

The role of the content (e.g., "user" or "model").