Content

constructor(role: String? = "user", parts: List<Part>)(source)

Parameters

role

The producer of the content. Must be either "user" or "model". By default, it's "user".

parts

An ordered list of Part that constitute this content.