Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AsyncRetrieveContextsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AsyncRetrieveContextsRequest

Returns a new instance of GoogleCloudAiplatformV1beta1AsyncRetrieveContextsRequest.



7118
7119
7120
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7118

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

Instance Attribute Details

#queryGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQuery

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



7111
7112
7113
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7111

def query
  @query
end

#toolsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>

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



7116
7117
7118
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7116

def tools
  @tools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7123
7124
7125
7126
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 7123

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