google-apis-dialogflow_v2 0.112.0 → 0.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8177,6 +8177,321 @@ module Google
|
|
8177
8177
|
end
|
8178
8178
|
end
|
8179
8179
|
|
8180
|
+
# Agent Coaching context that customer can configure.
|
8181
|
+
class GoogleCloudDialogflowV2AgentCoachingContext
|
8182
|
+
include Google::Apis::Core::Hashable
|
8183
|
+
|
8184
|
+
# Optional. Customized instructions for agent coaching.
|
8185
|
+
# Corresponds to the JSON property `instructions`
|
8186
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstruction>]
|
8187
|
+
attr_accessor :instructions
|
8188
|
+
|
8189
|
+
# Optional. Output language code.
|
8190
|
+
# Corresponds to the JSON property `outputLanguageCode`
|
8191
|
+
# @return [String]
|
8192
|
+
attr_accessor :output_language_code
|
8193
|
+
|
8194
|
+
# Optional. The overarching guidance for the agent coaching. This should be set
|
8195
|
+
# only for v1.5 and later versions.
|
8196
|
+
# Corresponds to the JSON property `overarchingGuidance`
|
8197
|
+
# @return [String]
|
8198
|
+
attr_accessor :overarching_guidance
|
8199
|
+
|
8200
|
+
# Optional. Version of the feature. If not set, default to latest version.
|
8201
|
+
# Current candidates are ["1.2"].
|
8202
|
+
# Corresponds to the JSON property `version`
|
8203
|
+
# @return [String]
|
8204
|
+
attr_accessor :version
|
8205
|
+
|
8206
|
+
def initialize(**args)
|
8207
|
+
update!(**args)
|
8208
|
+
end
|
8209
|
+
|
8210
|
+
# Update properties of this object
|
8211
|
+
def update!(**args)
|
8212
|
+
@instructions = args[:instructions] if args.key?(:instructions)
|
8213
|
+
@output_language_code = args[:output_language_code] if args.key?(:output_language_code)
|
8214
|
+
@overarching_guidance = args[:overarching_guidance] if args.key?(:overarching_guidance)
|
8215
|
+
@version = args[:version] if args.key?(:version)
|
8216
|
+
end
|
8217
|
+
end
|
8218
|
+
|
8219
|
+
# Agent Coaching instructions that customer can configure.
|
8220
|
+
class GoogleCloudDialogflowV2AgentCoachingInstruction
|
8221
|
+
include Google::Apis::Core::Hashable
|
8222
|
+
|
8223
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
8224
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
8225
|
+
# detection, agent_action can be empty
|
8226
|
+
# Corresponds to the JSON property `agentAction`
|
8227
|
+
# @return [String]
|
8228
|
+
attr_accessor :agent_action
|
8229
|
+
|
8230
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
8231
|
+
# to cancel an order". If the users want the instruction to be triggered
|
8232
|
+
# unconditionally, the condition can be empty.
|
8233
|
+
# Corresponds to the JSON property `condition`
|
8234
|
+
# @return [String]
|
8235
|
+
attr_accessor :condition
|
8236
|
+
|
8237
|
+
# Optional. The detailed description of this instruction.
|
8238
|
+
# Corresponds to the JSON property `displayDetails`
|
8239
|
+
# @return [String]
|
8240
|
+
attr_accessor :display_details
|
8241
|
+
|
8242
|
+
# Optional. Display name for the instruction.
|
8243
|
+
# Corresponds to the JSON property `displayName`
|
8244
|
+
# @return [String]
|
8245
|
+
attr_accessor :display_name
|
8246
|
+
|
8247
|
+
# Duplication check for the suggestion.
|
8248
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
8249
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult]
|
8250
|
+
attr_accessor :duplicate_check_result
|
8251
|
+
|
8252
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
8253
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
8254
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
8255
|
+
# Corresponds to the JSON property `systemAction`
|
8256
|
+
# @return [String]
|
8257
|
+
attr_accessor :system_action
|
8258
|
+
|
8259
|
+
def initialize(**args)
|
8260
|
+
update!(**args)
|
8261
|
+
end
|
8262
|
+
|
8263
|
+
# Update properties of this object
|
8264
|
+
def update!(**args)
|
8265
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
8266
|
+
@condition = args[:condition] if args.key?(:condition)
|
8267
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
8268
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
8269
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
8270
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
8271
|
+
end
|
8272
|
+
end
|
8273
|
+
|
8274
|
+
# Duplication check for the suggestion.
|
8275
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult
|
8276
|
+
include Google::Apis::Core::Hashable
|
8277
|
+
|
8278
|
+
# Output only. The duplicate suggestions.
|
8279
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
8280
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
8281
|
+
attr_accessor :duplicate_suggestions
|
8282
|
+
|
8283
|
+
def initialize(**args)
|
8284
|
+
update!(**args)
|
8285
|
+
end
|
8286
|
+
|
8287
|
+
# Update properties of this object
|
8288
|
+
def update!(**args)
|
8289
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
8290
|
+
end
|
8291
|
+
end
|
8292
|
+
|
8293
|
+
# The duplicate suggestion details.
|
8294
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
8295
|
+
include Google::Apis::Core::Hashable
|
8296
|
+
|
8297
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
8298
|
+
# Corresponds to the JSON property `answerRecord`
|
8299
|
+
# @return [String]
|
8300
|
+
attr_accessor :answer_record
|
8301
|
+
|
8302
|
+
# Output only. The similarity score of between the past and current suggestion.
|
8303
|
+
# Corresponds to the JSON property `similarityScore`
|
8304
|
+
# @return [Float]
|
8305
|
+
attr_accessor :similarity_score
|
8306
|
+
|
8307
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
8308
|
+
# Corresponds to the JSON property `suggestionIndex`
|
8309
|
+
# @return [Fixnum]
|
8310
|
+
attr_accessor :suggestion_index
|
8311
|
+
|
8312
|
+
def initialize(**args)
|
8313
|
+
update!(**args)
|
8314
|
+
end
|
8315
|
+
|
8316
|
+
# Update properties of this object
|
8317
|
+
def update!(**args)
|
8318
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8319
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
8320
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
8321
|
+
end
|
8322
|
+
end
|
8323
|
+
|
8324
|
+
# Suggestion for coaching agents.
|
8325
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestion
|
8326
|
+
include Google::Apis::Core::Hashable
|
8327
|
+
|
8328
|
+
# Optional. Suggested actions for the agent to take.
|
8329
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
8330
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion>]
|
8331
|
+
attr_accessor :agent_action_suggestions
|
8332
|
+
|
8333
|
+
# Optional. Instructions applicable based on the current context.
|
8334
|
+
# Corresponds to the JSON property `applicableInstructions`
|
8335
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstruction>]
|
8336
|
+
attr_accessor :applicable_instructions
|
8337
|
+
|
8338
|
+
# Optional. Sample response for the Agent.
|
8339
|
+
# Corresponds to the JSON property `sampleResponses`
|
8340
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse>]
|
8341
|
+
attr_accessor :sample_responses
|
8342
|
+
|
8343
|
+
def initialize(**args)
|
8344
|
+
update!(**args)
|
8345
|
+
end
|
8346
|
+
|
8347
|
+
# Update properties of this object
|
8348
|
+
def update!(**args)
|
8349
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
8350
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
8351
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
8352
|
+
end
|
8353
|
+
end
|
8354
|
+
|
8355
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
8356
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion
|
8357
|
+
include Google::Apis::Core::Hashable
|
8358
|
+
|
8359
|
+
# Optional. The suggested action for the agent.
|
8360
|
+
# Corresponds to the JSON property `agentAction`
|
8361
|
+
# @return [String]
|
8362
|
+
attr_accessor :agent_action
|
8363
|
+
|
8364
|
+
# Duplication check for the suggestion.
|
8365
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
8366
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
8367
|
+
attr_accessor :duplicate_check_result
|
8368
|
+
|
8369
|
+
# Sources for the suggestion.
|
8370
|
+
# Corresponds to the JSON property `sources`
|
8371
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
8372
|
+
attr_accessor :sources
|
8373
|
+
|
8374
|
+
def initialize(**args)
|
8375
|
+
update!(**args)
|
8376
|
+
end
|
8377
|
+
|
8378
|
+
# Update properties of this object
|
8379
|
+
def update!(**args)
|
8380
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
8381
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
8382
|
+
@sources = args[:sources] if args.key?(:sources)
|
8383
|
+
end
|
8384
|
+
end
|
8385
|
+
|
8386
|
+
# Duplication check for the suggestion.
|
8387
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult
|
8388
|
+
include Google::Apis::Core::Hashable
|
8389
|
+
|
8390
|
+
# Output only. The duplicate suggestions.
|
8391
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
8392
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
8393
|
+
attr_accessor :duplicate_suggestions
|
8394
|
+
|
8395
|
+
def initialize(**args)
|
8396
|
+
update!(**args)
|
8397
|
+
end
|
8398
|
+
|
8399
|
+
# Update properties of this object
|
8400
|
+
def update!(**args)
|
8401
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
8402
|
+
end
|
8403
|
+
end
|
8404
|
+
|
8405
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
8406
|
+
# as they are identifiers for duplicate suggestions.
|
8407
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
8408
|
+
include Google::Apis::Core::Hashable
|
8409
|
+
|
8410
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
8411
|
+
# Corresponds to the JSON property `answerRecord`
|
8412
|
+
# @return [String]
|
8413
|
+
attr_accessor :answer_record
|
8414
|
+
|
8415
|
+
# Output only. The similarity score of between the past and current suggestion.
|
8416
|
+
# Corresponds to the JSON property `similarityScore`
|
8417
|
+
# @return [Float]
|
8418
|
+
attr_accessor :similarity_score
|
8419
|
+
|
8420
|
+
# Sources for the suggestion.
|
8421
|
+
# Corresponds to the JSON property `sources`
|
8422
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
8423
|
+
attr_accessor :sources
|
8424
|
+
|
8425
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
8426
|
+
# Corresponds to the JSON property `suggestionIndex`
|
8427
|
+
# @return [Fixnum]
|
8428
|
+
attr_accessor :suggestion_index
|
8429
|
+
|
8430
|
+
def initialize(**args)
|
8431
|
+
update!(**args)
|
8432
|
+
end
|
8433
|
+
|
8434
|
+
# Update properties of this object
|
8435
|
+
def update!(**args)
|
8436
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8437
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
8438
|
+
@sources = args[:sources] if args.key?(:sources)
|
8439
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
8440
|
+
end
|
8441
|
+
end
|
8442
|
+
|
8443
|
+
# Sample response that the agent can use. This could be based on applicable
|
8444
|
+
# instructions and ingested data from other systems.
|
8445
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse
|
8446
|
+
include Google::Apis::Core::Hashable
|
8447
|
+
|
8448
|
+
# Duplication check for the suggestion.
|
8449
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
8450
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
8451
|
+
attr_accessor :duplicate_check_result
|
8452
|
+
|
8453
|
+
# Optional. Sample response for Agent in text.
|
8454
|
+
# Corresponds to the JSON property `responseText`
|
8455
|
+
# @return [String]
|
8456
|
+
attr_accessor :response_text
|
8457
|
+
|
8458
|
+
# Sources for the suggestion.
|
8459
|
+
# Corresponds to the JSON property `sources`
|
8460
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
8461
|
+
attr_accessor :sources
|
8462
|
+
|
8463
|
+
def initialize(**args)
|
8464
|
+
update!(**args)
|
8465
|
+
end
|
8466
|
+
|
8467
|
+
# Update properties of this object
|
8468
|
+
def update!(**args)
|
8469
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
8470
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
8471
|
+
@sources = args[:sources] if args.key?(:sources)
|
8472
|
+
end
|
8473
|
+
end
|
8474
|
+
|
8475
|
+
# Sources for the suggestion.
|
8476
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSources
|
8477
|
+
include Google::Apis::Core::Hashable
|
8478
|
+
|
8479
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
8480
|
+
# of the applicable_instructions field.
|
8481
|
+
# Corresponds to the JSON property `instructionIndexes`
|
8482
|
+
# @return [Array<Fixnum>]
|
8483
|
+
attr_accessor :instruction_indexes
|
8484
|
+
|
8485
|
+
def initialize(**args)
|
8486
|
+
update!(**args)
|
8487
|
+
end
|
8488
|
+
|
8489
|
+
# Update properties of this object
|
8490
|
+
def update!(**args)
|
8491
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
8492
|
+
end
|
8493
|
+
end
|
8494
|
+
|
8180
8495
|
# The request message for Participants.AnalyzeContent.
|
8181
8496
|
class GoogleCloudDialogflowV2AnalyzeContentRequest
|
8182
8497
|
include Google::Apis::Core::Hashable
|
@@ -8226,7 +8541,7 @@ module Google
|
|
8226
8541
|
# @return [String]
|
8227
8542
|
attr_accessor :request_id
|
8228
8543
|
|
8229
|
-
# Represents the
|
8544
|
+
# Represents the action to take for a tool call that requires confirmation.
|
8230
8545
|
# Corresponds to the JSON property `suggestionInput`
|
8231
8546
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput]
|
8232
8547
|
attr_accessor :suggestion_input
|
@@ -9266,6 +9581,13 @@ module Google
|
|
9266
9581
|
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
9267
9582
|
include Google::Apis::Core::Hashable
|
9268
9583
|
|
9584
|
+
# If the context content was generated from a tool call, specify the answer
|
9585
|
+
# record associated with the tool call. Format: `projects//locations//
|
9586
|
+
# answerRecords/`.
|
9587
|
+
# Corresponds to the JSON property `answerRecord`
|
9588
|
+
# @return [String]
|
9589
|
+
attr_accessor :answer_record
|
9590
|
+
|
9269
9591
|
# Required. The information ingested in a single request.
|
9270
9592
|
# Corresponds to the JSON property `content`
|
9271
9593
|
# @return [String]
|
@@ -9288,6 +9610,7 @@ module Google
|
|
9288
9610
|
|
9289
9611
|
# Update properties of this object
|
9290
9612
|
def update!(**args)
|
9613
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
9291
9614
|
@content = args[:content] if args.key?(:content)
|
9292
9615
|
@content_format = args[:content_format] if args.key?(:content_format)
|
9293
9616
|
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
@@ -11541,6 +11864,11 @@ module Google
|
|
11541
11864
|
class GoogleCloudDialogflowV2Generator
|
11542
11865
|
include Google::Apis::Core::Hashable
|
11543
11866
|
|
11867
|
+
# Agent Coaching context that customer can configure.
|
11868
|
+
# Corresponds to the JSON property `agentCoachingContext`
|
11869
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingContext]
|
11870
|
+
attr_accessor :agent_coaching_context
|
11871
|
+
|
11544
11872
|
# Output only. Creation time of this generator.
|
11545
11873
|
# Corresponds to the JSON property `createTime`
|
11546
11874
|
# @return [String]
|
@@ -11575,6 +11903,11 @@ module Google
|
|
11575
11903
|
# @return [String]
|
11576
11904
|
attr_accessor :published_model
|
11577
11905
|
|
11906
|
+
# Config for suggestion deduping. NEXT_ID: 3
|
11907
|
+
# Corresponds to the JSON property `suggestionDedupingConfig`
|
11908
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionDedupingConfig]
|
11909
|
+
attr_accessor :suggestion_deduping_config
|
11910
|
+
|
11578
11911
|
# Summarization context that customer can configure.
|
11579
11912
|
# Corresponds to the JSON property `summarizationContext`
|
11580
11913
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext]
|
@@ -11603,12 +11936,14 @@ module Google
|
|
11603
11936
|
|
11604
11937
|
# Update properties of this object
|
11605
11938
|
def update!(**args)
|
11939
|
+
@agent_coaching_context = args[:agent_coaching_context] if args.key?(:agent_coaching_context)
|
11606
11940
|
@create_time = args[:create_time] if args.key?(:create_time)
|
11607
11941
|
@description = args[:description] if args.key?(:description)
|
11608
11942
|
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
11609
11943
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
11610
11944
|
@name = args[:name] if args.key?(:name)
|
11611
11945
|
@published_model = args[:published_model] if args.key?(:published_model)
|
11946
|
+
@suggestion_deduping_config = args[:suggestion_deduping_config] if args.key?(:suggestion_deduping_config)
|
11612
11947
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
11613
11948
|
@tools = args[:tools] if args.key?(:tools)
|
11614
11949
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
@@ -11656,6 +11991,22 @@ module Google
|
|
11656
11991
|
# @return [String]
|
11657
11992
|
attr_accessor :name
|
11658
11993
|
|
11994
|
+
# Output only. A read only boolean field reflecting Zone Isolation status of the
|
11995
|
+
# model. The field is an aggregated value of ZI status of its underlying
|
11996
|
+
# dependencies. See more details in go/zicy-resource-placement#resource-status
|
11997
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
11998
|
+
# @return [Boolean]
|
11999
|
+
attr_accessor :satisfies_pzi
|
12000
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
12001
|
+
|
12002
|
+
# Output only. A read only boolean field reflecting Zone Separation status of
|
12003
|
+
# the model. The field is an aggregated value of ZS status of its underlying
|
12004
|
+
# dependencies. See more details in go/zicy-resource-placement#resource-status
|
12005
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
12006
|
+
# @return [Boolean]
|
12007
|
+
attr_accessor :satisfies_pzs
|
12008
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
12009
|
+
|
11659
12010
|
# Evaluation metrics for summarization generator.
|
11660
12011
|
# Corresponds to the JSON property `summarizationMetrics`
|
11661
12012
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetrics]
|
@@ -11674,6 +12025,8 @@ module Google
|
|
11674
12025
|
@generator_evaluation_config = args[:generator_evaluation_config] if args.key?(:generator_evaluation_config)
|
11675
12026
|
@initial_generator = args[:initial_generator] if args.key?(:initial_generator)
|
11676
12027
|
@name = args[:name] if args.key?(:name)
|
12028
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
12029
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
11677
12030
|
@summarization_metrics = args[:summarization_metrics] if args.key?(:summarization_metrics)
|
11678
12031
|
end
|
11679
12032
|
end
|
@@ -11875,6 +12228,11 @@ module Google
|
|
11875
12228
|
class GoogleCloudDialogflowV2GeneratorSuggestion
|
11876
12229
|
include Google::Apis::Core::Hashable
|
11877
12230
|
|
12231
|
+
# Suggestion for coaching agents.
|
12232
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
12233
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestion]
|
12234
|
+
attr_accessor :agent_coaching_suggestion
|
12235
|
+
|
11878
12236
|
# Suggestion generated using free form generator.
|
11879
12237
|
# Corresponds to the JSON property `freeFormSuggestion`
|
11880
12238
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion]
|
@@ -11896,6 +12254,7 @@ module Google
|
|
11896
12254
|
|
11897
12255
|
# Update properties of this object
|
11898
12256
|
def update!(**args)
|
12257
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
11899
12258
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
11900
12259
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
11901
12260
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
@@ -12069,6 +12428,12 @@ module Google
|
|
12069
12428
|
attr_accessor :disable_high_latency_features_sync_delivery
|
12070
12429
|
alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
|
12071
12430
|
|
12431
|
+
# Optional. If true, enable asynchronous execution of tools.
|
12432
|
+
# Corresponds to the JSON property `enableAsyncToolCall`
|
12433
|
+
# @return [Boolean]
|
12434
|
+
attr_accessor :enable_async_tool_call
|
12435
|
+
alias_method :enable_async_tool_call?, :enable_async_tool_call
|
12436
|
+
|
12072
12437
|
# Configuration of different suggestion features. One feature can have only one
|
12073
12438
|
# config.
|
12074
12439
|
# Corresponds to the JSON property `featureConfigs`
|
@@ -12094,6 +12459,23 @@ module Google
|
|
12094
12459
|
attr_accessor :group_suggestion_responses
|
12095
12460
|
alias_method :group_suggestion_responses?, :group_suggestion_responses
|
12096
12461
|
|
12462
|
+
# Optional. Enable skipping event based suggestion if the suggestion is empty.
|
12463
|
+
# For example, with this field disabled, Knowledge Assist feature sends a Pub/
|
12464
|
+
# Sub message when there are no suggestions. Enabling this field will change the
|
12465
|
+
# behavior to skip the Pub/Sub message in this situation.
|
12466
|
+
# Corresponds to the JSON property `skipEmptyEventBasedSuggestion`
|
12467
|
+
# @return [Boolean]
|
12468
|
+
attr_accessor :skip_empty_event_based_suggestion
|
12469
|
+
alias_method :skip_empty_event_based_suggestion?, :skip_empty_event_based_suggestion
|
12470
|
+
|
12471
|
+
# Optional. If true, use unredacted transcript data (Supported features:
|
12472
|
+
# AI_COACH) and use unredacted ingested context (Supported features: All Agent
|
12473
|
+
# Assist features)
|
12474
|
+
# Corresponds to the JSON property `useUnredactedConversationData`
|
12475
|
+
# @return [Boolean]
|
12476
|
+
attr_accessor :use_unredacted_conversation_data
|
12477
|
+
alias_method :use_unredacted_conversation_data?, :use_unredacted_conversation_data
|
12478
|
+
|
12097
12479
|
def initialize(**args)
|
12098
12480
|
update!(**args)
|
12099
12481
|
end
|
@@ -12101,9 +12483,12 @@ module Google
|
|
12101
12483
|
# Update properties of this object
|
12102
12484
|
def update!(**args)
|
12103
12485
|
@disable_high_latency_features_sync_delivery = args[:disable_high_latency_features_sync_delivery] if args.key?(:disable_high_latency_features_sync_delivery)
|
12486
|
+
@enable_async_tool_call = args[:enable_async_tool_call] if args.key?(:enable_async_tool_call)
|
12104
12487
|
@feature_configs = args[:feature_configs] if args.key?(:feature_configs)
|
12105
12488
|
@generators = args[:generators] if args.key?(:generators)
|
12106
12489
|
@group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
|
12490
|
+
@skip_empty_event_based_suggestion = args[:skip_empty_event_based_suggestion] if args.key?(:skip_empty_event_based_suggestion)
|
12491
|
+
@use_unredacted_conversation_data = args[:use_unredacted_conversation_data] if args.key?(:use_unredacted_conversation_data)
|
12107
12492
|
end
|
12108
12493
|
end
|
12109
12494
|
|
@@ -12159,11 +12544,27 @@ module Google
|
|
12159
12544
|
attr_accessor :enable_query_suggestion_when_no_answer
|
12160
12545
|
alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
|
12161
12546
|
|
12547
|
+
# Optional. Enable returning detailed reasons for suggestion results. For
|
12548
|
+
# example, with this field disabled, Knowledge Search feature returns NotFound
|
12549
|
+
# error when no answer is found for the input query. Enabling this field will
|
12550
|
+
# change the behavior to return an OK response with detailed information
|
12551
|
+
# indicating the lack of results. Supported features: KNOWLEDGE_SEARCH,
|
12552
|
+
# KNOWLEDGE_ASSIST
|
12553
|
+
# Corresponds to the JSON property `enableResponseDebugInfo`
|
12554
|
+
# @return [Boolean]
|
12555
|
+
attr_accessor :enable_response_debug_info
|
12556
|
+
alias_method :enable_response_debug_info?, :enable_response_debug_info
|
12557
|
+
|
12162
12558
|
# Config for suggestion query.
|
12163
12559
|
# Corresponds to the JSON property `queryConfig`
|
12164
12560
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig]
|
12165
12561
|
attr_accessor :query_config
|
12166
12562
|
|
12563
|
+
# Settings for Responsible AI checks.
|
12564
|
+
# Corresponds to the JSON property `raiSettings`
|
12565
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RaiSettings]
|
12566
|
+
attr_accessor :rai_settings
|
12567
|
+
|
12167
12568
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
12168
12569
|
# number of results to return for that type. Multiple `Feature` objects can be
|
12169
12570
|
# specified in the `features` list.
|
@@ -12189,7 +12590,9 @@ module Google
|
|
12189
12590
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
12190
12591
|
@enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
|
12191
12592
|
@enable_query_suggestion_when_no_answer = args[:enable_query_suggestion_when_no_answer] if args.key?(:enable_query_suggestion_when_no_answer)
|
12593
|
+
@enable_response_debug_info = args[:enable_response_debug_info] if args.key?(:enable_response_debug_info)
|
12192
12594
|
@query_config = args[:query_config] if args.key?(:query_config)
|
12595
|
+
@rai_settings = args[:rai_settings] if args.key?(:rai_settings)
|
12193
12596
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
12194
12597
|
@suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
|
12195
12598
|
end
|
@@ -15766,6 +16169,50 @@ module Google
|
|
15766
16169
|
end
|
15767
16170
|
end
|
15768
16171
|
|
16172
|
+
# Settings for Responsible AI checks.
|
16173
|
+
class GoogleCloudDialogflowV2RaiSettings
|
16174
|
+
include Google::Apis::Core::Hashable
|
16175
|
+
|
16176
|
+
# Configuration for a set of RAI categories.
|
16177
|
+
# Corresponds to the JSON property `raiCategoryConfigs`
|
16178
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig>]
|
16179
|
+
attr_accessor :rai_category_configs
|
16180
|
+
|
16181
|
+
def initialize(**args)
|
16182
|
+
update!(**args)
|
16183
|
+
end
|
16184
|
+
|
16185
|
+
# Update properties of this object
|
16186
|
+
def update!(**args)
|
16187
|
+
@rai_category_configs = args[:rai_category_configs] if args.key?(:rai_category_configs)
|
16188
|
+
end
|
16189
|
+
end
|
16190
|
+
|
16191
|
+
# Configuration for a specific RAI category.
|
16192
|
+
class GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig
|
16193
|
+
include Google::Apis::Core::Hashable
|
16194
|
+
|
16195
|
+
# Optional. The RAI category.
|
16196
|
+
# Corresponds to the JSON property `category`
|
16197
|
+
# @return [String]
|
16198
|
+
attr_accessor :category
|
16199
|
+
|
16200
|
+
# Optional. The sensitivity level for this category.
|
16201
|
+
# Corresponds to the JSON property `sensitivityLevel`
|
16202
|
+
# @return [String]
|
16203
|
+
attr_accessor :sensitivity_level
|
16204
|
+
|
16205
|
+
def initialize(**args)
|
16206
|
+
update!(**args)
|
16207
|
+
end
|
16208
|
+
|
16209
|
+
# Update properties of this object
|
16210
|
+
def update!(**args)
|
16211
|
+
@category = args[:category] if args.key?(:category)
|
16212
|
+
@sensitivity_level = args[:sensitivity_level] if args.key?(:sensitivity_level)
|
16213
|
+
end
|
16214
|
+
end
|
16215
|
+
|
15769
16216
|
# Request message for Documents.ReloadDocument.
|
15770
16217
|
class GoogleCloudDialogflowV2ReloadDocumentRequest
|
15771
16218
|
include Google::Apis::Core::Hashable
|
@@ -17277,6 +17724,33 @@ module Google
|
|
17277
17724
|
end
|
17278
17725
|
end
|
17279
17726
|
|
17727
|
+
# Config for suggestion deduping. NEXT_ID: 3
|
17728
|
+
class GoogleCloudDialogflowV2SuggestionDedupingConfig
|
17729
|
+
include Google::Apis::Core::Hashable
|
17730
|
+
|
17731
|
+
# Optional. Whether to enable suggestion deduping.
|
17732
|
+
# Corresponds to the JSON property `enableDeduping`
|
17733
|
+
# @return [Boolean]
|
17734
|
+
attr_accessor :enable_deduping
|
17735
|
+
alias_method :enable_deduping?, :enable_deduping
|
17736
|
+
|
17737
|
+
# Optional. The threshold for similarity between two suggestions. Acceptable
|
17738
|
+
# value is [0.0, 1.0], default to 0.8
|
17739
|
+
# Corresponds to the JSON property `similarityThreshold`
|
17740
|
+
# @return [Float]
|
17741
|
+
attr_accessor :similarity_threshold
|
17742
|
+
|
17743
|
+
def initialize(**args)
|
17744
|
+
update!(**args)
|
17745
|
+
end
|
17746
|
+
|
17747
|
+
# Update properties of this object
|
17748
|
+
def update!(**args)
|
17749
|
+
@enable_deduping = args[:enable_deduping] if args.key?(:enable_deduping)
|
17750
|
+
@similarity_threshold = args[:similarity_threshold] if args.key?(:similarity_threshold)
|
17751
|
+
end
|
17752
|
+
end
|
17753
|
+
|
17280
17754
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
17281
17755
|
# number of results to return for that type. Multiple `Feature` objects can be
|
17282
17756
|
# specified in the `features` list.
|
@@ -17298,24 +17772,44 @@ module Google
|
|
17298
17772
|
end
|
17299
17773
|
end
|
17300
17774
|
|
17301
|
-
# Represents the
|
17775
|
+
# Represents the action to take for a tool call that requires confirmation.
|
17302
17776
|
class GoogleCloudDialogflowV2SuggestionInput
|
17303
17777
|
include Google::Apis::Core::Hashable
|
17304
17778
|
|
17305
|
-
#
|
17306
|
-
#
|
17307
|
-
#
|
17779
|
+
# Optional. The type of action to take with the tool.
|
17780
|
+
# Corresponds to the JSON property `action`
|
17781
|
+
# @return [String]
|
17782
|
+
attr_accessor :action
|
17783
|
+
|
17784
|
+
# Required. Format: `projects//locations//answerRecords/` The answer record
|
17785
|
+
# associated with the tool call.
|
17308
17786
|
# Corresponds to the JSON property `answerRecord`
|
17309
17787
|
# @return [String]
|
17310
17788
|
attr_accessor :answer_record
|
17311
17789
|
|
17790
|
+
# Optional. Parameters to be used for the tool call. If not provided, the tool
|
17791
|
+
# will be called without any parameters.
|
17792
|
+
# Corresponds to the JSON property `parameters`
|
17793
|
+
# @return [Hash<String,Object>]
|
17794
|
+
attr_accessor :parameters
|
17795
|
+
|
17796
|
+
# Optional. Time when the current suggest input is sent. For tool calls, this
|
17797
|
+
# timestamp (along with the answer record) will be included in the corresponding
|
17798
|
+
# tool call result so that it can be identified.
|
17799
|
+
# Corresponds to the JSON property `sendTime`
|
17800
|
+
# @return [String]
|
17801
|
+
attr_accessor :send_time
|
17802
|
+
|
17312
17803
|
def initialize(**args)
|
17313
17804
|
update!(**args)
|
17314
17805
|
end
|
17315
17806
|
|
17316
17807
|
# Update properties of this object
|
17317
17808
|
def update!(**args)
|
17809
|
+
@action = args[:action] if args.key?(:action)
|
17318
17810
|
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
17811
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
17812
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
17319
17813
|
end
|
17320
17814
|
end
|
17321
17815
|
|
@@ -18102,6 +18596,11 @@ module Google
|
|
18102
18596
|
# @return [String]
|
18103
18597
|
attr_accessor :action
|
18104
18598
|
|
18599
|
+
# Optional. The answer record associated with this tool call.
|
18600
|
+
# Corresponds to the JSON property `answerRecord`
|
18601
|
+
# @return [String]
|
18602
|
+
attr_accessor :answer_record
|
18603
|
+
|
18105
18604
|
# Output only. Create time of the tool call.
|
18106
18605
|
# Corresponds to the JSON property `createTime`
|
18107
18606
|
# @return [String]
|
@@ -18112,12 +18611,27 @@ module Google
|
|
18112
18611
|
# @return [Hash<String,Object>]
|
18113
18612
|
attr_accessor :input_parameters
|
18114
18613
|
|
18614
|
+
# Output only. State of the tool call.
|
18615
|
+
# Corresponds to the JSON property `state`
|
18616
|
+
# @return [String]
|
18617
|
+
attr_accessor :state
|
18618
|
+
|
18115
18619
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
18116
18620
|
# tools/`.
|
18117
18621
|
# Corresponds to the JSON property `tool`
|
18118
18622
|
# @return [String]
|
18119
18623
|
attr_accessor :tool
|
18120
18624
|
|
18625
|
+
# Optional. A human readable description of the tool.
|
18626
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
18627
|
+
# @return [String]
|
18628
|
+
attr_accessor :tool_display_details
|
18629
|
+
|
18630
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
18631
|
+
# Corresponds to the JSON property `toolDisplayName`
|
18632
|
+
# @return [String]
|
18633
|
+
attr_accessor :tool_display_name
|
18634
|
+
|
18121
18635
|
def initialize(**args)
|
18122
18636
|
update!(**args)
|
18123
18637
|
end
|
@@ -18125,9 +18639,13 @@ module Google
|
|
18125
18639
|
# Update properties of this object
|
18126
18640
|
def update!(**args)
|
18127
18641
|
@action = args[:action] if args.key?(:action)
|
18642
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
18128
18643
|
@create_time = args[:create_time] if args.key?(:create_time)
|
18129
18644
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
18645
|
+
@state = args[:state] if args.key?(:state)
|
18130
18646
|
@tool = args[:tool] if args.key?(:tool)
|
18647
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
18648
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
18131
18649
|
end
|
18132
18650
|
end
|
18133
18651
|
|
@@ -18140,6 +18658,11 @@ module Google
|
|
18140
18658
|
# @return [String]
|
18141
18659
|
attr_accessor :action
|
18142
18660
|
|
18661
|
+
# Optional. The answer record associated with this tool call result.
|
18662
|
+
# Corresponds to the JSON property `answerRecord`
|
18663
|
+
# @return [String]
|
18664
|
+
attr_accessor :answer_record
|
18665
|
+
|
18143
18666
|
# Only populated if the response content is utf-8 encoded.
|
18144
18667
|
# Corresponds to the JSON property `content`
|
18145
18668
|
# @return [String]
|
@@ -18175,6 +18698,7 @@ module Google
|
|
18175
18698
|
# Update properties of this object
|
18176
18699
|
def update!(**args)
|
18177
18700
|
@action = args[:action] if args.key?(:action)
|
18701
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
18178
18702
|
@content = args[:content] if args.key?(:content)
|
18179
18703
|
@create_time = args[:create_time] if args.key?(:create_time)
|
18180
18704
|
@error = args[:error] if args.key?(:error)
|
@@ -18528,6 +19052,282 @@ module Google
|
|
18528
19052
|
end
|
18529
19053
|
end
|
18530
19054
|
|
19055
|
+
# Agent Coaching instructions that customer can configure.
|
19056
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstruction
|
19057
|
+
include Google::Apis::Core::Hashable
|
19058
|
+
|
19059
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
19060
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
19061
|
+
# detection, agent_action can be empty
|
19062
|
+
# Corresponds to the JSON property `agentAction`
|
19063
|
+
# @return [String]
|
19064
|
+
attr_accessor :agent_action
|
19065
|
+
|
19066
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
19067
|
+
# to cancel an order". If the users want the instruction to be triggered
|
19068
|
+
# unconditionally, the condition can be empty.
|
19069
|
+
# Corresponds to the JSON property `condition`
|
19070
|
+
# @return [String]
|
19071
|
+
attr_accessor :condition
|
19072
|
+
|
19073
|
+
# Optional. The detailed description of this instruction.
|
19074
|
+
# Corresponds to the JSON property `displayDetails`
|
19075
|
+
# @return [String]
|
19076
|
+
attr_accessor :display_details
|
19077
|
+
|
19078
|
+
# Optional. Display name for the instruction.
|
19079
|
+
# Corresponds to the JSON property `displayName`
|
19080
|
+
# @return [String]
|
19081
|
+
attr_accessor :display_name
|
19082
|
+
|
19083
|
+
# Duplication check for the suggestion.
|
19084
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
19085
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult]
|
19086
|
+
attr_accessor :duplicate_check_result
|
19087
|
+
|
19088
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
19089
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
19090
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
19091
|
+
# Corresponds to the JSON property `systemAction`
|
19092
|
+
# @return [String]
|
19093
|
+
attr_accessor :system_action
|
19094
|
+
|
19095
|
+
def initialize(**args)
|
19096
|
+
update!(**args)
|
19097
|
+
end
|
19098
|
+
|
19099
|
+
# Update properties of this object
|
19100
|
+
def update!(**args)
|
19101
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
19102
|
+
@condition = args[:condition] if args.key?(:condition)
|
19103
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
19104
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
19105
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
19106
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
19107
|
+
end
|
19108
|
+
end
|
19109
|
+
|
19110
|
+
# Duplication check for the suggestion.
|
19111
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult
|
19112
|
+
include Google::Apis::Core::Hashable
|
19113
|
+
|
19114
|
+
# Output only. The duplicate suggestions.
|
19115
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
19116
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
19117
|
+
attr_accessor :duplicate_suggestions
|
19118
|
+
|
19119
|
+
def initialize(**args)
|
19120
|
+
update!(**args)
|
19121
|
+
end
|
19122
|
+
|
19123
|
+
# Update properties of this object
|
19124
|
+
def update!(**args)
|
19125
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
19126
|
+
end
|
19127
|
+
end
|
19128
|
+
|
19129
|
+
# The duplicate suggestion details.
|
19130
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
19131
|
+
include Google::Apis::Core::Hashable
|
19132
|
+
|
19133
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
19134
|
+
# Corresponds to the JSON property `answerRecord`
|
19135
|
+
# @return [String]
|
19136
|
+
attr_accessor :answer_record
|
19137
|
+
|
19138
|
+
# Output only. The similarity score of between the past and current suggestion.
|
19139
|
+
# Corresponds to the JSON property `similarityScore`
|
19140
|
+
# @return [Float]
|
19141
|
+
attr_accessor :similarity_score
|
19142
|
+
|
19143
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
19144
|
+
# Corresponds to the JSON property `suggestionIndex`
|
19145
|
+
# @return [Fixnum]
|
19146
|
+
attr_accessor :suggestion_index
|
19147
|
+
|
19148
|
+
def initialize(**args)
|
19149
|
+
update!(**args)
|
19150
|
+
end
|
19151
|
+
|
19152
|
+
# Update properties of this object
|
19153
|
+
def update!(**args)
|
19154
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
19155
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
19156
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
19157
|
+
end
|
19158
|
+
end
|
19159
|
+
|
19160
|
+
# Suggestion for coaching agents.
|
19161
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestion
|
19162
|
+
include Google::Apis::Core::Hashable
|
19163
|
+
|
19164
|
+
# Optional. Suggested actions for the agent to take.
|
19165
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
19166
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion>]
|
19167
|
+
attr_accessor :agent_action_suggestions
|
19168
|
+
|
19169
|
+
# Optional. Instructions applicable based on the current context.
|
19170
|
+
# Corresponds to the JSON property `applicableInstructions`
|
19171
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
|
19172
|
+
attr_accessor :applicable_instructions
|
19173
|
+
|
19174
|
+
# Optional. Sample response for the Agent.
|
19175
|
+
# Corresponds to the JSON property `sampleResponses`
|
19176
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse>]
|
19177
|
+
attr_accessor :sample_responses
|
19178
|
+
|
19179
|
+
def initialize(**args)
|
19180
|
+
update!(**args)
|
19181
|
+
end
|
19182
|
+
|
19183
|
+
# Update properties of this object
|
19184
|
+
def update!(**args)
|
19185
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
19186
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
19187
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
19188
|
+
end
|
19189
|
+
end
|
19190
|
+
|
19191
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
19192
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion
|
19193
|
+
include Google::Apis::Core::Hashable
|
19194
|
+
|
19195
|
+
# Optional. The suggested action for the agent.
|
19196
|
+
# Corresponds to the JSON property `agentAction`
|
19197
|
+
# @return [String]
|
19198
|
+
attr_accessor :agent_action
|
19199
|
+
|
19200
|
+
# Duplication check for the suggestion.
|
19201
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
19202
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
19203
|
+
attr_accessor :duplicate_check_result
|
19204
|
+
|
19205
|
+
# Sources for the suggestion.
|
19206
|
+
# Corresponds to the JSON property `sources`
|
19207
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
19208
|
+
attr_accessor :sources
|
19209
|
+
|
19210
|
+
def initialize(**args)
|
19211
|
+
update!(**args)
|
19212
|
+
end
|
19213
|
+
|
19214
|
+
# Update properties of this object
|
19215
|
+
def update!(**args)
|
19216
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
19217
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
19218
|
+
@sources = args[:sources] if args.key?(:sources)
|
19219
|
+
end
|
19220
|
+
end
|
19221
|
+
|
19222
|
+
# Duplication check for the suggestion.
|
19223
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult
|
19224
|
+
include Google::Apis::Core::Hashable
|
19225
|
+
|
19226
|
+
# Output only. The duplicate suggestions.
|
19227
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
19228
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
19229
|
+
attr_accessor :duplicate_suggestions
|
19230
|
+
|
19231
|
+
def initialize(**args)
|
19232
|
+
update!(**args)
|
19233
|
+
end
|
19234
|
+
|
19235
|
+
# Update properties of this object
|
19236
|
+
def update!(**args)
|
19237
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
19238
|
+
end
|
19239
|
+
end
|
19240
|
+
|
19241
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
19242
|
+
# as they are identifiers for duplicate suggestions.
|
19243
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
19244
|
+
include Google::Apis::Core::Hashable
|
19245
|
+
|
19246
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
19247
|
+
# Corresponds to the JSON property `answerRecord`
|
19248
|
+
# @return [String]
|
19249
|
+
attr_accessor :answer_record
|
19250
|
+
|
19251
|
+
# Output only. The similarity score of between the past and current suggestion.
|
19252
|
+
# Corresponds to the JSON property `similarityScore`
|
19253
|
+
# @return [Float]
|
19254
|
+
attr_accessor :similarity_score
|
19255
|
+
|
19256
|
+
# Sources for the suggestion.
|
19257
|
+
# Corresponds to the JSON property `sources`
|
19258
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
19259
|
+
attr_accessor :sources
|
19260
|
+
|
19261
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
19262
|
+
# Corresponds to the JSON property `suggestionIndex`
|
19263
|
+
# @return [Fixnum]
|
19264
|
+
attr_accessor :suggestion_index
|
19265
|
+
|
19266
|
+
def initialize(**args)
|
19267
|
+
update!(**args)
|
19268
|
+
end
|
19269
|
+
|
19270
|
+
# Update properties of this object
|
19271
|
+
def update!(**args)
|
19272
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
19273
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
19274
|
+
@sources = args[:sources] if args.key?(:sources)
|
19275
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
19276
|
+
end
|
19277
|
+
end
|
19278
|
+
|
19279
|
+
# Sample response that the agent can use. This could be based on applicable
|
19280
|
+
# instructions and ingested data from other systems.
|
19281
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse
|
19282
|
+
include Google::Apis::Core::Hashable
|
19283
|
+
|
19284
|
+
# Duplication check for the suggestion.
|
19285
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
19286
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
19287
|
+
attr_accessor :duplicate_check_result
|
19288
|
+
|
19289
|
+
# Optional. Sample response for Agent in text.
|
19290
|
+
# Corresponds to the JSON property `responseText`
|
19291
|
+
# @return [String]
|
19292
|
+
attr_accessor :response_text
|
19293
|
+
|
19294
|
+
# Sources for the suggestion.
|
19295
|
+
# Corresponds to the JSON property `sources`
|
19296
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
19297
|
+
attr_accessor :sources
|
19298
|
+
|
19299
|
+
def initialize(**args)
|
19300
|
+
update!(**args)
|
19301
|
+
end
|
19302
|
+
|
19303
|
+
# Update properties of this object
|
19304
|
+
def update!(**args)
|
19305
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
19306
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
19307
|
+
@sources = args[:sources] if args.key?(:sources)
|
19308
|
+
end
|
19309
|
+
end
|
19310
|
+
|
19311
|
+
# Sources for the suggestion.
|
19312
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources
|
19313
|
+
include Google::Apis::Core::Hashable
|
19314
|
+
|
19315
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
19316
|
+
# of the applicable_instructions field.
|
19317
|
+
# Corresponds to the JSON property `instructionIndexes`
|
19318
|
+
# @return [Array<Fixnum>]
|
19319
|
+
attr_accessor :instruction_indexes
|
19320
|
+
|
19321
|
+
def initialize(**args)
|
19322
|
+
update!(**args)
|
19323
|
+
end
|
19324
|
+
|
19325
|
+
# Update properties of this object
|
19326
|
+
def update!(**args)
|
19327
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
19328
|
+
end
|
19329
|
+
end
|
19330
|
+
|
18531
19331
|
# Represents a part of a message possibly annotated with an entity. The part can
|
18532
19332
|
# be an entity or purely a part of the message between two entities or message
|
18533
19333
|
# start/end.
|
@@ -19228,6 +20028,11 @@ module Google
|
|
19228
20028
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
19229
20029
|
include Google::Apis::Core::Hashable
|
19230
20030
|
|
20031
|
+
# Suggestion for coaching agents.
|
20032
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
20033
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestion]
|
20034
|
+
attr_accessor :agent_coaching_suggestion
|
20035
|
+
|
19231
20036
|
# Suggestion generated using free form generator.
|
19232
20037
|
# Corresponds to the JSON property `freeFormSuggestion`
|
19233
20038
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
@@ -19249,6 +20054,7 @@ module Google
|
|
19249
20054
|
|
19250
20055
|
# Update properties of this object
|
19251
20056
|
def update!(**args)
|
20057
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
19252
20058
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
19253
20059
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
19254
20060
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
@@ -22565,6 +23371,11 @@ module Google
|
|
22565
23371
|
# @return [String]
|
22566
23372
|
attr_accessor :action
|
22567
23373
|
|
23374
|
+
# Optional. The answer record associated with this tool call.
|
23375
|
+
# Corresponds to the JSON property `answerRecord`
|
23376
|
+
# @return [String]
|
23377
|
+
attr_accessor :answer_record
|
23378
|
+
|
22568
23379
|
# Output only. Create time of the tool call.
|
22569
23380
|
# Corresponds to the JSON property `createTime`
|
22570
23381
|
# @return [String]
|
@@ -22575,12 +23386,27 @@ module Google
|
|
22575
23386
|
# @return [Hash<String,Object>]
|
22576
23387
|
attr_accessor :input_parameters
|
22577
23388
|
|
23389
|
+
# Output only. State of the tool call
|
23390
|
+
# Corresponds to the JSON property `state`
|
23391
|
+
# @return [String]
|
23392
|
+
attr_accessor :state
|
23393
|
+
|
22578
23394
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
22579
23395
|
# tools/`.
|
22580
23396
|
# Corresponds to the JSON property `tool`
|
22581
23397
|
# @return [String]
|
22582
23398
|
attr_accessor :tool
|
22583
23399
|
|
23400
|
+
# Optional. A human readable description of the tool.
|
23401
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
23402
|
+
# @return [String]
|
23403
|
+
attr_accessor :tool_display_details
|
23404
|
+
|
23405
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
23406
|
+
# Corresponds to the JSON property `toolDisplayName`
|
23407
|
+
# @return [String]
|
23408
|
+
attr_accessor :tool_display_name
|
23409
|
+
|
22584
23410
|
def initialize(**args)
|
22585
23411
|
update!(**args)
|
22586
23412
|
end
|
@@ -22588,9 +23414,13 @@ module Google
|
|
22588
23414
|
# Update properties of this object
|
22589
23415
|
def update!(**args)
|
22590
23416
|
@action = args[:action] if args.key?(:action)
|
23417
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
22591
23418
|
@create_time = args[:create_time] if args.key?(:create_time)
|
22592
23419
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
23420
|
+
@state = args[:state] if args.key?(:state)
|
22593
23421
|
@tool = args[:tool] if args.key?(:tool)
|
23422
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
23423
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
22594
23424
|
end
|
22595
23425
|
end
|
22596
23426
|
|
@@ -22603,6 +23433,11 @@ module Google
|
|
22603
23433
|
# @return [String]
|
22604
23434
|
attr_accessor :action
|
22605
23435
|
|
23436
|
+
# Optional. The answer record associated with this tool call result.
|
23437
|
+
# Corresponds to the JSON property `answerRecord`
|
23438
|
+
# @return [String]
|
23439
|
+
attr_accessor :answer_record
|
23440
|
+
|
22606
23441
|
# Only populated if the response content is utf-8 encoded.
|
22607
23442
|
# Corresponds to the JSON property `content`
|
22608
23443
|
# @return [String]
|
@@ -22638,6 +23473,7 @@ module Google
|
|
22638
23473
|
# Update properties of this object
|
22639
23474
|
def update!(**args)
|
22640
23475
|
@action = args[:action] if args.key?(:action)
|
23476
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
22641
23477
|
@content = args[:content] if args.key?(:content)
|
22642
23478
|
@create_time = args[:create_time] if args.key?(:create_time)
|
22643
23479
|
@error = args[:error] if args.key?(:error)
|
@@ -23014,6 +23850,13 @@ module Google
|
|
23014
23850
|
# @return [Array<Google::Apis::DialogflowV2::GoogleLongrunningOperation>]
|
23015
23851
|
attr_accessor :operations
|
23016
23852
|
|
23853
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
23854
|
+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
|
23855
|
+
# when attempting to list all resources across all supported locations.
|
23856
|
+
# Corresponds to the JSON property `unreachable`
|
23857
|
+
# @return [Array<String>]
|
23858
|
+
attr_accessor :unreachable
|
23859
|
+
|
23017
23860
|
def initialize(**args)
|
23018
23861
|
update!(**args)
|
23019
23862
|
end
|
@@ -23022,6 +23865,7 @@ module Google
|
|
23022
23865
|
def update!(**args)
|
23023
23866
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
23024
23867
|
@operations = args[:operations] if args.key?(:operations)
|
23868
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
23025
23869
|
end
|
23026
23870
|
end
|
23027
23871
|
|