Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings

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

Overview

Settings for Generative Fallback.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings.



8141
8142
8143
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8141

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

Instance Attribute Details

#prompt_templatesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate>

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



8134
8135
8136
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8134

def prompt_templates
  @prompt_templates
end

#selected_promptString

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

Returns:

  • (String)


8139
8140
8141
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8139

def selected_prompt
  @selected_prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8146
8147
8148
8149
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8146

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