Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TurnSignals

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Collection of all signals that were extracted for a single turn of the conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3TurnSignals

Returns a new instance of GoogleCloudDialogflowCxV3TurnSignals.



3307
3308
3309
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3307

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#agent_escalatedBoolean Also known as: agent_escalated?

Whether agent responded with LiveAgentHandoff fulfillment. Corresponds to the JSON property agentEscalated

Returns:

  • (Boolean)


3252
3253
3254
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3252

def agent_escalated
  @agent_escalated
end

#dtmf_usedBoolean Also known as: dtmf_used?

Whether user was using DTMF input. Corresponds to the JSON property dtmfUsed

Returns:

  • (Boolean)


3258
3259
3260
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3258

def dtmf_used
  @dtmf_used
end

#failure_reasonsArray<String>

Failure reasons of the turn. Corresponds to the JSON property failureReasons

Returns:

  • (Array<String>)


3264
3265
3266
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3264

def failure_reasons
  @failure_reasons
end

#no_matchBoolean Also known as: no_match?

Whether NLU predicted NO_MATCH. Corresponds to the JSON property noMatch

Returns:

  • (Boolean)


3269
3270
3271
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3269

def no_match
  @no_match
end

#no_user_inputBoolean Also known as: no_user_input?

Whether user provided no input. Corresponds to the JSON property noUserInput

Returns:

  • (Boolean)


3275
3276
3277
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3275

def no_user_input
  @no_user_input
end

#reached_end_pageBoolean Also known as: reached_end_page?

Whether turn resulted in End Session page. Corresponds to the JSON property reachedEndPage

Returns:

  • (Boolean)


3281
3282
3283
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3281

def reached_end_page
  @reached_end_page
end

#sentiment_magnitudeFloat

Sentiment magnitude of the user utterance if sentiment was enabled. Corresponds to the JSON property sentimentMagnitude

Returns:

  • (Float)


3288
3289
3290
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3288

def sentiment_magnitude
  @sentiment_magnitude
end

#sentiment_scoreFloat

Sentiment score of the user utterance if sentiment was enabled. Corresponds to the JSON property sentimentScore

Returns:

  • (Float)


3294
3295
3296
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3294

def sentiment_score
  @sentiment_score
end

#user_escalatedBoolean Also known as: user_escalated?

Whether user was specifically asking for a live agent. Corresponds to the JSON property userEscalated

Returns:

  • (Boolean)


3299
3300
3301
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3299

def user_escalated
  @user_escalated
end

#webhook_statusesArray<String>

Human-readable statuses of the webhooks triggered during this turn. Corresponds to the JSON property webhookStatuses

Returns:

  • (Array<String>)


3305
3306
3307
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3305

def webhook_statuses
  @webhook_statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3312

def update!(**args)
  @agent_escalated = args[:agent_escalated] if args.key?(:agent_escalated)
  @dtmf_used = args[:dtmf_used] if args.key?(:dtmf_used)
  @failure_reasons = args[:failure_reasons] if args.key?(:failure_reasons)
  @no_match = args[:no_match] if args.key?(:no_match)
  @no_user_input = args[:no_user_input] if args.key?(:no_user_input)
  @reached_end_page = args[:reached_end_page] if args.key?(:reached_end_page)
  @sentiment_magnitude = args[:sentiment_magnitude] if args.key?(:sentiment_magnitude)
  @sentiment_score = args[:sentiment_score] if args.key?(:sentiment_score)
  @user_escalated = args[:user_escalated] if args.key?(:user_escalated)
  @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses)
end