Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest
- 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
-
#contents ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>
Required.
-
#query ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryRequestQuery
User provided query message.
-
#use_function_call ⇒ Boolean
(also: #use_function_call?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1QueryExtensionRequest
constructor
A new instance of GoogleCloudAiplatformV1beta1QueryExtensionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1QueryExtensionRequest
Returns a new instance of GoogleCloudAiplatformV1beta1QueryExtensionRequest.
19171 19172 19173 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ Array<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
19158 19159 19160 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19158 def contents @contents end |
#query ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryRequestQuery
User provided query message.
Corresponds to the JSON property query
19163 19164 19165 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19163 def query @query end |
#use_function_call ⇒ Boolean Also known as: use_function_call?
Optional. Experiment control on whether to use function call.
Corresponds to the JSON property useFunctionCall
19168 19169 19170 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19168 def use_function_call @use_function_call end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19176 19177 19178 19179 19180 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19176 def update!(**args) @contents = args[:contents] if args.key?(:contents) @query = args[:query] if args.key?(:query) @use_function_call = args[:use_function_call] if args.key?(:use_function_call) end |