Google Cloud Ai Platform V1 Client - Class GroundingChunk (1.9.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ web Google\Cloud\AIPlatform\V1\GroundingChunk\Web

Grounding chunk from the web.

↳ retrieved_context Google\Cloud\AIPlatform\V1\GroundingChunk\RetrievedContext

Grounding chunk from context retrieved by the retrieval tools.

getWeb

Grounding chunk from the web.

Returns
Type Description
Google\Cloud\AIPlatform\V1\GroundingChunk\Web|null

hasWeb

setWeb

Grounding chunk from the web.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\GroundingChunk\Web
Returns
Type Description
$this

getRetrievedContext

Grounding chunk from context retrieved by the retrieval tools.

Returns
Type Description
Google\Cloud\AIPlatform\V1\GroundingChunk\RetrievedContext|null

hasRetrievedContext

setRetrievedContext

Grounding chunk from context retrieved by the retrieval tools.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\GroundingChunk\RetrievedContext
Returns
Type Description
$this

getChunkType

Returns
Type Description
string