Class GroundingChunk (2.52.0)

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

A piece of evidence that supports a claim made by the model.

This is used to show a citation for a claim made by the model. It contains a reference to the source of the information.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

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

Attributes

Name Description
web google.cloud.dialogflow_v2.types.GroundingChunk.Web
Optional. A grounding chunk from a web page, typically from web search. See the Web message for details. This field is a member of oneof_ chunk_type.
retrieved_context google.cloud.dialogflow_v2.types.GroundingChunk.RetrievedContext
Optional. A grounding chunk from a data source retrieved by a data store tool. This field is a member of oneof_ chunk_type.

Classes

RetrievedContext

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

Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset.

Web

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

A Web chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information.