Google Cloud Ai Platform V1 Client - Class AugmentPromptResponse (1.13.1)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class AugmentPromptResponse.

Response message for AugmentPrompt.

Generated from protobuf message google.cloud.aiplatform.v1.AugmentPromptResponse

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ augmented_prompt array<Content>

Augmented prompt, only text format is supported for now.

↳ facts array<Fact>

Retrieved facts from RAG data sources.

getAugmentedPrompt

Augmented prompt, only text format is supported for now.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAugmentedPrompt

Augmented prompt, only text format is supported for now.

Parameter
Name Description
var array<Content>
Returns
Type Description
$this

getFacts

Retrieved facts from RAG data sources.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFacts

Retrieved facts from RAG data sources.

Parameter
Name Description
var array<Fact>
Returns
Type Description
$this