Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.32 KB

File metadata and controls

66 lines (41 loc) · 1.32 KB

google.generativeai.protos.Content

View source on GitHub

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.

Attributes

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.