Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptRequest

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

Overview

Request message for AugmentPrompt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1AugmentPromptRequest

Returns a new instance of GoogleCloudAiplatformV1AugmentPromptRequest.



1206
1207
1208
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1206

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

Instance Attribute Details

#contentsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>

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



1194
1195
1196
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1194

def contents
  @contents
end

#modelGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptRequestModel

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



1199
1200
1201
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1199

def model
  @model
end

#vertex_rag_storeGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore

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



1204
1205
1206
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1204

def vertex_rag_store
  @vertex_rag_store
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1211
1212
1213
1214
1215
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1211

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