Skip to content

Commit

Permalink
feat: add Candidate.grounding_metadata property
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 629500524
  • Loading branch information
holtskinner authored and Copybara-Service committed Apr 30, 2024
1 parent d7a89a0 commit b22a8b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vertexai/generative_models/_generative_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b22a8b8

Please sign in to comment.