Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AutomatedAgentConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Defines the Automated Agent to connect to a conversation.
Instance Attribute Summary collapse
-
#agent ⇒ String
Required.
-
#session_ttl ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AutomatedAgentConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1AutomatedAgentConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AutomatedAgentConfig
Returns a new instance of GoogleCloudDialogflowV2beta1AutomatedAgentConfig.
9838 9839 9840 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent ⇒ String
Required. ID of the Dialogflow agent environment to use. This project needs to
either be the same project as the conversation or you need to grant service-@
gcp-sa-dialogflow.iam.gserviceaccount.com
the Dialogflow API Service Agent
role in this project. - For ES agents, use format: projects//locations//agent/
environments/
. If environment is not specified, the default draft
environment is used. Refer to DetectIntentRequest for more details. - For CX agents, use format projects//
locations//agents//environments/
. If environment is not specified, the
default draft
environment is used.
Corresponds to the JSON property agent
9829 9830 9831 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9829 def agent @agent end |
#session_ttl ⇒ String
Optional. Sets Dialogflow CX session life time. By default, a Dialogflow CX
session remains active and its data is stored for 30 minutes after the last
request is sent for the session. This value should be no longer than 1 day.
Corresponds to the JSON property sessionTtl
9836 9837 9838 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9836 def session_ttl @session_ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9843 9844 9845 9846 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9843 def update!(**args) @agent = args[:agent] if args.key?(:agent) @session_ttl = args[:session_ttl] if args.key?(:session_ttl) end |