0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

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

Citation for the generated content.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `retrieval_metadata` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata]` Retrieval metadata to provide an understanding in the retrieval steps performed by the model. There can be multiple such messages which can correspond to different parts of the retrieval. This is a mechanism used to ensure transparency to our users. |
| `support_chunks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.FactChunk]` List of chunks to be attributed across all claims in the candidate. These are derived from the grounding sources supplied in the request. |
| `web_search_queries` | `MutableSequence[str]` Web search queries for the following-up web search. |
| `search_entry_point` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint` Google search entry for the following-up web searches. |
| `grounding_support` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport]` GroundingSupport across all claims in the answer candidate. An support to a fact indicates that the claim is supported by the fact. |
| `images` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata]` Images from the web search. |
| `videos` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata]` Videos from the web search. |

## Classes

### DynamicRetrievalMetadata

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

Describes the metadata about dynamic retrieval.

### DynamicRetrievalPredictorMetadata

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

Describes the metadata about the dynamic retrieval predictor.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### GroundingSupport

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

Grounding info for a claim in the candidate and its support.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### ImageMetadata

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

Metadata about an image from the web search.

### RetrievalMetadata

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

Describes the metadata associated with a retrieval step.

### SearchEntryPoint

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

Google search entry point.

### VideoMetadata

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

Metadata about a video from the web search.