Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class GroundingChunk.
Grounding chunk.
Generated from protobuf message google.cloud.aiplatform.v1.GroundingChunk
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ web |
GroundingChunk\Web
Grounding chunk from the web. |
↳ retrieved_context |
GroundingChunk\RetrievedContext
Grounding chunk from context retrieved by the retrieval tools. |
getWeb
Grounding chunk from the web.
Returns | |
---|---|
Type | Description |
GroundingChunk\Web|null |
hasWeb
setWeb
Grounding chunk from the web.
Parameter | |
---|---|
Name | Description |
var |
GroundingChunk\Web
|
Returns | |
---|---|
Type | Description |
$this |
getRetrievedContext
Grounding chunk from context retrieved by the retrieval tools.
Returns | |
---|---|
Type | Description |
GroundingChunk\RetrievedContext|null |
hasRetrievedContext
setRetrievedContext
Grounding chunk from context retrieved by the retrieval tools.
Parameter | |
---|---|
Name | Description |
var |
GroundingChunk\RetrievedContext
|
Returns | |
---|---|
Type | Description |
$this |
getChunkType
Returns | |
---|---|
Type | Description |
string |