Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
- 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
-
#prompt_templates ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate>
Stored prompts that can be selected, for example default templates like " conservative" or "chatty", or user defined ones.
-
#selected_prompt ⇒ String
Display name of the selected prompt.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
constructor
A new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings.
7814 7815 7816 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7814 def initialize(**args) update!(**args) end |
Instance Attribute Details
#prompt_templates ⇒ Array<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
7807 7808 7809 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7807 def prompt_templates @prompt_templates end |
#selected_prompt ⇒ String
Display name of the selected prompt.
Corresponds to the JSON property selectedPrompt
7812 7813 7814 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7812 def selected_prompt @selected_prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7819 7820 7821 7822 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7819 def update!(**args) @prompt_templates = args[:prompt_templates] if args.key?(:prompt_templates) @selected_prompt = args[:selected_prompt] if args.key?(:selected_prompt) end |