Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AsyncRetrieveContextsRequest

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 VertexRagService.AsyncRetrieveContexts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1AsyncRetrieveContextsRequest

Returns a new instance of GoogleCloudAiplatformV1AsyncRetrieveContextsRequest.



2212
2213
2214
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2212

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

Instance Attribute Details

#queryGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagQuery

A query to retrieve relevant contexts. Corresponds to the JSON property query



2205
2206
2207
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2205

def query
  @query
end

#toolsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>

Optional. The tools to use for AskContexts. Corresponds to the JSON property tools



2210
2211
2212
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2210

def tools
  @tools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2217
2218
2219
2220
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2217

def update!(**args)
  @query = args[:query] if args.key?(:query)
  @tools = args[:tools] if args.key?(:tools)
end