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.
7083 7084 7085 |
# File 'lib/google/apis/ces_v1/classes.rb', line 7083 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
7081 7082 7083 |
# File 'lib/google/apis/ces_v1/classes.rb', line 7081 def prompt @prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7088 7089 7090 |
# File 'lib/google/apis/ces_v1/classes.rb', line 7088 def update!(**args) @prompt = args[:prompt] if args.key?(:prompt) end |