Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteraction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Represents an interaction between an end user and a Dialogflow CX agent using V3 (Streaming)DetectIntent API, or an interaction between an end user and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.
Instance Attribute Summary collapse
-
#answer_feedback ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback
Stores information about feedback provided by users about a response.
-
#create_time ⇒ String
The time that the interaction was created.
-
#missing_transition ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
Information collected for DF CX agents in case NLU predicted an intent that was filtered out as being inactive which may indicate a missing transition and/ or absent functionality.
-
#partial_responses ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse>
The partial responses of the interaction.
-
#request ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest
The request to detect user's intent.
-
#request_utterances ⇒ String
The input text or the transcript of the input audio in the request.
-
#response ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse
The message returned from the DetectIntent method.
-
#response_utterances ⇒ String
The output text or the transcript of the output audio in the responses.
-
#step_metrics ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics>
Metrics associated with different processing steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ConversationInteraction
constructor
A new instance of GoogleCloudDialogflowCxV3beta1ConversationInteraction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ConversationInteraction
Returns a new instance of GoogleCloudDialogflowCxV3beta1ConversationInteraction.
5144 5145 5146 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_feedback ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AnswerFeedback
Stores information about feedback provided by users about a response.
Corresponds to the JSON property answerFeedback
5097 5098 5099 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5097 def answer_feedback @answer_feedback end |
#create_time ⇒ String
The time that the interaction was created.
Corresponds to the JSON property createTime
5102 5103 5104 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5102 def create_time @create_time end |
#missing_transition ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
Information collected for DF CX agents in case NLU predicted an intent that
was filtered out as being inactive which may indicate a missing transition and/
or absent functionality.
Corresponds to the JSON property missingTransition
5109 5110 5111 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5109 def missing_transition @missing_transition end |
#partial_responses ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse>
The partial responses of the interaction. Empty if there is no partial
response in the interaction. See the partial response documentation.
Corresponds to the JSON property partialResponses
5115 5116 5117 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5115 def partial_responses @partial_responses end |
#request ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest
The request to detect user's intent.
Corresponds to the JSON property request
5120 5121 5122 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5120 def request @request end |
#request_utterances ⇒ String
The input text or the transcript of the input audio in the request.
Corresponds to the JSON property requestUtterances
5125 5126 5127 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5125 def request_utterances @request_utterances end |
#response ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse
The message returned from the DetectIntent method.
Corresponds to the JSON property response
5130 5131 5132 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5130 def response @response end |
#response_utterances ⇒ String
The output text or the transcript of the output audio in the responses. If
multiple output messages are returned, they will be concatenated into one.
Corresponds to the JSON property responseUtterances
5136 5137 5138 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5136 def response_utterances @response_utterances end |
#step_metrics ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics>
Metrics associated with different processing steps. Names and number of steps
depend on the request and can change without a notice.
Corresponds to the JSON property stepMetrics
5142 5143 5144 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5142 def step_metrics @step_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5149 def update!(**args) @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback) @create_time = args[:create_time] if args.key?(:create_time) @missing_transition = args[:missing_transition] if args.key?(:missing_transition) @partial_responses = args[:partial_responses] if args.key?(:partial_responses) @request = args[:request] if args.key?(:request) @request_utterances = args[:request_utterances] if args.key?(:request_utterances) @response = args[:response] if args.key?(:response) @response_utterances = args[:response_utterances] if args.key?(:response_utterances) @step_metrics = args[:step_metrics] if args.key?(:step_metrics) end |