Google Cloud Dialogflow V2 Client - Class GroundingChunk (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class 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.

Generated from protobuf message google.cloud.dialogflow.v2.GroundingChunk

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ web GroundingChunk\Web

Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

↳ retrieved_context GroundingChunk\RetrievedContext

Optional. A grounding chunk from a data source retrieved by a data store tool.

getWeb

Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

Returns
Type Description
GroundingChunk\Web|null

hasWeb

setWeb

Optional. A grounding chunk from a web page, typically from web search. See the Web message for details.

Parameter
Name Description
var GroundingChunk\Web
Returns
Type Description
$this

getRetrievedContext

Optional. A grounding chunk from a data source retrieved by a data store tool.

Returns
Type Description
GroundingChunk\RetrievedContext|null

hasRetrievedContext

setRetrievedContext

Optional. A grounding chunk from a data source retrieved by a data store tool.

Parameter
Name Description
var GroundingChunk\RetrievedContext
Returns
Type Description
$this

getChunkType

Returns
Type Description
string