Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Request message for AugmentPrompt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AugmentPromptRequest

Returns a new instance of GoogleCloudAiplatformV1beta1AugmentPromptRequest.



9281
9282
9283
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9281

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>

Optional. Input content to augment, only text format is supported for now. Corresponds to the JSON property contents



9269
9270
9271
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9269

def contents
  @contents
end

#modelGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequestModel

Metadata of the backend deployed model. Corresponds to the JSON property model



9274
9275
9276
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9274

def model
  @model
end

#vertex_rag_storeGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore

Retrieve from Vertex RAG Store for grounding. Corresponds to the JSON property vertexRagStore



9279
9280
9281
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9279

def vertex_rag_store
  @vertex_rag_store
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9286
9287
9288
9289
9290
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9286

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @model = args[:model] if args.key?(:model)
  @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
end