Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
A conversational prompt to trigger agents like Shopping Agent.
Instance Attribute Summary collapse
-
#prompt ⇒ String
The conversational prompt string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt
constructor
A new instance of GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt
Returns a new instance of GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.
2463 2464 2465 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#prompt ⇒ String
The conversational prompt string.
Corresponds to the JSON property prompt
2461 2462 2463 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2461 def prompt @prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2468 2469 2470 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2468 def update!(**args) @prompt = args[:prompt] if args.key?(:prompt) end |