Content

class Content


Represents content sent to and received from the model.

See also
content

Summary

Nested types

Builder class to facilitate constructing complex Content objects.

Public constructors

Content(role: String?, parts: List<Part>)

Public properties

List<Part>

ordered list of Part that constitute a single message.

String?

the producer of the content.

Public constructors

Content

Content(role: String? = "user", parts: List<Part>)
Parameters
role: String? = "user"

the producer of the content. By default, it's "user".

parts: List<Part>

ordered list of Part that constitute a single message.

Public properties

parts

val partsList<Part>

ordered list of Part that constitute a single message.

role

val roleString?

the producer of the content. By default, it's "user".