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.



8405
8406
8407
# File 'lib/google/apis/ces_v1/classes.rb', line 8405

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)


8403
8404
8405
# File 'lib/google/apis/ces_v1/classes.rb', line 8403

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8410
8411
8412
# File 'lib/google/apis/ces_v1/classes.rb', line 8410

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