Content

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

Represents the content composed of multiple parts, optionally associated with a specific role.

Constructors

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

Properties

Link copied to clipboard
val parts: List<Part>

A list of io.github.ugaikit.gemini4kt.Part objects, representing the individual components or sections of the content.

Link copied to clipboard
val role: String? = null

An optional string indicating the role or function of this content within a larger context. It can be null if the role is not specified or not applicable.