Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::GroundingChunk (v1.18.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::GroundingChunk.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#retrieved_context

def retrieved_context() -> ::Google::Cloud::Dialogflow::V2::GroundingChunk::RetrievedContext
Returns

#retrieved_context=

def retrieved_context=(value) -> ::Google::Cloud::Dialogflow::V2::GroundingChunk::RetrievedContext
Parameter
  • value (::Google::Cloud::Dialogflow::V2::GroundingChunk::RetrievedContext) — Optional. A grounding chunk from a data source retrieved by a data store tool.

    Note: The following fields are mutually exclusive: retrieved_context, web. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns

#web

def web() -> ::Google::Cloud::Dialogflow::V2::GroundingChunk::Web
Returns
  • (::Google::Cloud::Dialogflow::V2::GroundingChunk::Web) — Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

    Note: The following fields are mutually exclusive: web, retrieved_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#web=

def web=(value) -> ::Google::Cloud::Dialogflow::V2::GroundingChunk::Web
Parameter
  • value (::Google::Cloud::Dialogflow::V2::GroundingChunk::Web) — Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

    Note: The following fields are mutually exclusive: web, retrieved_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::GroundingChunk::Web) — Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

    Note: The following fields are mutually exclusive: web, retrieved_context. If a field in that set is populated, all other fields in the set will automatically be cleared.