Class: Google::Apis::CesV1::TriggerActionGenerativeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::TriggerActionGenerativeAnswer
- 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
-
#prompt ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TriggerActionGenerativeAnswer
constructor
A new instance of TriggerActionGenerativeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#prompt ⇒ String
Required. The prompt to use for the generative answer.
Corresponds to the JSON property prompt
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 |