google.ai.generativelanguage.Content

The base structured datatype containing multi-part content of a message.

A Content includes a role field designating the producer of the Content and a parts field containing multi-part data that contains the content of the message turn.

parts MutableSequence[google.ai.generativelanguage.Part]

Ordered Parts that constitute a single message. Parts may have different MIME types.

role str

Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.