diff --git a/vertexai/generative_models/_generative_models.py b/vertexai/generative_models/_generative_models.py index f3cda710a0..cd30e7a776 100644 --- a/vertexai/generative_models/_generative_models.py +++ b/vertexai/generative_models/_generative_models.py @@ -1739,6 +1739,10 @@ def safety_ratings(self) -> Sequence[gapic_content_types.SafetyRating]: def citation_metadata(self) -> gapic_content_types.CitationMetadata: return self._raw_candidate.citation_metadata + @property + def grounding_metadata(self) -> gapic_content_types.GroundingMetadata: + return self._raw_candidate.grounding_metadata + # GenerationPart properties @property def text(self) -> str: