Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#promptString

The conversational prompt string. Corresponds to the JSON property prompt

Returns:

  • (String)


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