Content

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

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

Constructors

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

Properties

Link copied to clipboard
val parts: Array<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?

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.