Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
- 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
Prompt template.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Prompt name.
-
#frozen ⇒ Boolean
(also: #frozen?)
If the flag is true, the prompt is frozen and cannot be modified by users.
-
#prompt_text ⇒ String
Prompt text that is sent to a LLM on no-match default, placeholders are filled downstream.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
constructor
A new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate.
7847 7848 7849 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Prompt name.
Corresponds to the JSON property displayName
7832 7833 7834 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7832 def display_name @display_name end |
#frozen ⇒ Boolean Also known as: frozen?
If the flag is true, the prompt is frozen and cannot be modified by users.
Corresponds to the JSON property frozen
7837 7838 7839 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7837 def frozen @frozen end |
#prompt_text ⇒ String
Prompt text that is sent to a LLM on no-match default, placeholders are filled
downstream. For example: "Here is a conversation $conversation, a response is:
"
Corresponds to the JSON property promptText
7845 7846 7847 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7845 def prompt_text @prompt_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7852 7853 7854 7855 7856 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7852 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @frozen = args[:frozen] if args.key?(:frozen) @prompt_text = args[:prompt_text] if args.key?(:prompt_text) end |