Class GroundedGenerationContent (0.13.4)

GroundedGenerationContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Base structured datatype containing multi-part content of a message.

Attributes

Name Description
role str
Producer of the content. Must be either user or model. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
parts MutableSequence[google.cloud.discoveryengine_v1.types.GroundedGenerationContent.Part]
Ordered Parts that constitute a single message.

Classes

Part

Part(mapping=None, *, ignore_unknown_fields=False, **kwargs)