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.



7410
7411
7412
# File 'lib/google/apis/ces_v1/classes.rb', line 7410

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)


7408
7409
7410
# File 'lib/google/apis/ces_v1/classes.rb', line 7408

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7415
7416
7417
# File 'lib/google/apis/ces_v1/classes.rb', line 7415

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