Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest

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 ExtensionExecutionService.QueryExtension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1QueryExtensionRequest

Returns a new instance of GoogleCloudAiplatformV1beta1QueryExtensionRequest.



21876
21877
21878
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21876

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

Instance Attribute Details

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

Required. The content of the current conversation with the model. For single- turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. Corresponds to the JSON property contents



21874
21875
21876
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21874

def contents
  @contents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21881
21882
21883
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21881

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