generative-ai-python

google.generativeai.protos.TextCompletion

Output text returned from a model.

`output` `str` Output only. The generated text returned from the model.
`safety_ratings` `MutableSequence[google.ai.generativelanguage.SafetyRating]` Ratings for the safety of a response. There is at most one rating per category.
`citation_metadata` `google.ai.generativelanguage.CitationMetadata` Output only. Citation information for model-generated ``output`` in this ``TextCompletion``. This field may be populated with attribution information for any text included in the ``output``.