Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

Settings for Generative Fallback.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings

Returns a new instance of GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings.



3654
3655
3656
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3654

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

Instance Attribute Details

#prompt_templatesArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate>

Stored prompts that can be selected, for example default templates like " conservative" or "chatty", or user defined ones. Corresponds to the JSON property promptTemplates



3647
3648
3649
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3647

def prompt_templates
  @prompt_templates
end

#selected_promptString

Display name of the selected prompt. Corresponds to the JSON property selectedPrompt

Returns:

  • (String)


3652
3653
3654
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3652

def selected_prompt
  @selected_prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3659
3660
3661
3662
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3659

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