Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class RetrievedContext.
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.
Generated from protobuf message google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext
Namespace
Google \ Cloud \ Dialogflow \ V2 \ GroundingChunkMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ uri |
string
Output only. The URI of the retrieved data source. |
↳ title |
string
Output only. The title of the retrieved data source. |
↳ text |
string
Output only. The content of the retrieved data source. |
getUri
Output only. The URI of the retrieved data source.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUri
Output only. The URI of the retrieved data source.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTitle
Output only. The title of the retrieved data source.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTitle
Output only. The title of the retrieved data source.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getText
Output only. The content of the retrieved data source.
| Returns | |
|---|---|
| Type | Description |
string |
|
setText
Output only. The content of the retrieved data source.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|