Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate

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

Prompt template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate

Returns a new instance of GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate.



3687
3688
3689
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3687

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

Instance Attribute Details

#display_nameString

Prompt name. Corresponds to the JSON property displayName

Returns:

  • (String)


3672
3673
3674
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3672

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)


3677
3678
3679
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3677

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)


3685
3686
3687
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3685

def prompt_text
  @prompt_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3692
3693
3694
3695
3696
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3692

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