Class: Google::Apis::CesV1::TriggerActionGenerativeAnswer

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

Overview

The agent will immediately respond with a generative answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriggerActionGenerativeAnswer

Returns a new instance of TriggerActionGenerativeAnswer.



6870
6871
6872
# File 'lib/google/apis/ces_v1/classes.rb', line 6870

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

Instance Attribute Details

#promptString

Required. The prompt to use for the generative answer. Corresponds to the JSON property prompt

Returns:

  • (String)


6868
6869
6870
# File 'lib/google/apis/ces_v1/classes.rb', line 6868

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6875
6876
6877
# File 'lib/google/apis/ces_v1/classes.rb', line 6875

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