Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate

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

Prompt template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate

Returns a new instance of GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate.



6739
6740
6741
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6739

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

Instance Attribute Details

#display_nameString

Prompt name. Corresponds to the JSON property displayName

Returns:

  • (String)


6724
6725
6726
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6724

def display_name
  @display_name
end

#frozenBoolean 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

Returns:

  • (Boolean)


6729
6730
6731
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6729

def frozen
  @frozen
end

#prompt_textString

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

Returns:

  • (String)


6737
6738
6739
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6737

def prompt_text
  @prompt_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6744
6745
6746
6747
6748
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6744

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