Content

class Content


Represents a single "turn" or message in a conversation. It contains a list of Part objects.

Summary

Nested types

Builder for Content.

@IntDef(value = [0, 1])
annotation Content.Role

Role associated with Content

Public companion functions

Content.Builder

Public properties

List<Part>
Int

Public companion functions

builder

fun builder(): Content.Builder

Public properties

parts

val parts: List<Part>

role

val role: Int