Skip to content

Commit b22a8b8

Browse files
holtskinnercopybara-github
authored andcommitted
feat: add Candidate.grounding_metadata property
PiperOrigin-RevId: 629500524
1 parent d7a89a0 commit b22a8b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vertexai/generative_models/_generative_models.py

+4
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,10 @@ def safety_ratings(self) -> Sequence[gapic_content_types.SafetyRating]:
17391739
def citation_metadata(self) -> gapic_content_types.CitationMetadata:
17401740
return self._raw_candidate.citation_metadata
17411741

1742+
@property
1743+
def grounding_metadata(self) -> gapic_content_types.GroundingMetadata:
1744+
return self._raw_candidate.grounding_metadata
1745+
17421746
# GenerationPart properties
17431747
@property
17441748
def text(self) -> str:

0 commit comments

Comments
 (0)