google-apis-dialogflow_v2 0.112.0 → 0.114.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
|
|
@@ -15085,6 +15488,32 @@ module Google
|
|
|
15085
15488
|
end
|
|
15086
15489
|
end
|
|
15087
15490
|
|
|
15491
|
+
# Response of ListTools.
|
|
15492
|
+
class GoogleCloudDialogflowV2ListToolsResponse
|
|
15493
|
+
include Google::Apis::Core::Hashable
|
|
15494
|
+
|
|
15495
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
|
15496
|
+
# results in the list.
|
|
15497
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
15498
|
+
# @return [String]
|
|
15499
|
+
attr_accessor :next_page_token
|
|
15500
|
+
|
|
15501
|
+
# List of tools retrieved.
|
|
15502
|
+
# Corresponds to the JSON property `tools`
|
|
15503
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool>]
|
|
15504
|
+
attr_accessor :tools
|
|
15505
|
+
|
|
15506
|
+
def initialize(**args)
|
|
15507
|
+
update!(**args)
|
|
15508
|
+
end
|
|
15509
|
+
|
|
15510
|
+
# Update properties of this object
|
|
15511
|
+
def update!(**args)
|
|
15512
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
15513
|
+
@tools = args[:tools] if args.key?(:tools)
|
|
15514
|
+
end
|
|
15515
|
+
end
|
|
15516
|
+
|
|
15088
15517
|
# The response message for Versions.ListVersions.
|
|
15089
15518
|
class GoogleCloudDialogflowV2ListVersionsResponse
|
|
15090
15519
|
include Google::Apis::Core::Hashable
|
|
@@ -15766,6 +16195,50 @@ module Google
|
|
|
15766
16195
|
end
|
|
15767
16196
|
end
|
|
15768
16197
|
|
|
16198
|
+
# Settings for Responsible AI checks.
|
|
16199
|
+
class GoogleCloudDialogflowV2RaiSettings
|
|
16200
|
+
include Google::Apis::Core::Hashable
|
|
16201
|
+
|
|
16202
|
+
# Configuration for a set of RAI categories.
|
|
16203
|
+
# Corresponds to the JSON property `raiCategoryConfigs`
|
|
16204
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig>]
|
|
16205
|
+
attr_accessor :rai_category_configs
|
|
16206
|
+
|
|
16207
|
+
def initialize(**args)
|
|
16208
|
+
update!(**args)
|
|
16209
|
+
end
|
|
16210
|
+
|
|
16211
|
+
# Update properties of this object
|
|
16212
|
+
def update!(**args)
|
|
16213
|
+
@rai_category_configs = args[:rai_category_configs] if args.key?(:rai_category_configs)
|
|
16214
|
+
end
|
|
16215
|
+
end
|
|
16216
|
+
|
|
16217
|
+
# Configuration for a specific RAI category.
|
|
16218
|
+
class GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig
|
|
16219
|
+
include Google::Apis::Core::Hashable
|
|
16220
|
+
|
|
16221
|
+
# Optional. The RAI category.
|
|
16222
|
+
# Corresponds to the JSON property `category`
|
|
16223
|
+
# @return [String]
|
|
16224
|
+
attr_accessor :category
|
|
16225
|
+
|
|
16226
|
+
# Optional. The sensitivity level for this category.
|
|
16227
|
+
# Corresponds to the JSON property `sensitivityLevel`
|
|
16228
|
+
# @return [String]
|
|
16229
|
+
attr_accessor :sensitivity_level
|
|
16230
|
+
|
|
16231
|
+
def initialize(**args)
|
|
16232
|
+
update!(**args)
|
|
16233
|
+
end
|
|
16234
|
+
|
|
16235
|
+
# Update properties of this object
|
|
16236
|
+
def update!(**args)
|
|
16237
|
+
@category = args[:category] if args.key?(:category)
|
|
16238
|
+
@sensitivity_level = args[:sensitivity_level] if args.key?(:sensitivity_level)
|
|
16239
|
+
end
|
|
16240
|
+
end
|
|
16241
|
+
|
|
15769
16242
|
# Request message for Documents.ReloadDocument.
|
|
15770
16243
|
class GoogleCloudDialogflowV2ReloadDocumentRequest
|
|
15771
16244
|
include Google::Apis::Core::Hashable
|
|
@@ -17277,6 +17750,33 @@ module Google
|
|
|
17277
17750
|
end
|
|
17278
17751
|
end
|
|
17279
17752
|
|
|
17753
|
+
# Config for suggestion deduping. NEXT_ID: 3
|
|
17754
|
+
class GoogleCloudDialogflowV2SuggestionDedupingConfig
|
|
17755
|
+
include Google::Apis::Core::Hashable
|
|
17756
|
+
|
|
17757
|
+
# Optional. Whether to enable suggestion deduping.
|
|
17758
|
+
# Corresponds to the JSON property `enableDeduping`
|
|
17759
|
+
# @return [Boolean]
|
|
17760
|
+
attr_accessor :enable_deduping
|
|
17761
|
+
alias_method :enable_deduping?, :enable_deduping
|
|
17762
|
+
|
|
17763
|
+
# Optional. The threshold for similarity between two suggestions. Acceptable
|
|
17764
|
+
# value is [0.0, 1.0], default to 0.8
|
|
17765
|
+
# Corresponds to the JSON property `similarityThreshold`
|
|
17766
|
+
# @return [Float]
|
|
17767
|
+
attr_accessor :similarity_threshold
|
|
17768
|
+
|
|
17769
|
+
def initialize(**args)
|
|
17770
|
+
update!(**args)
|
|
17771
|
+
end
|
|
17772
|
+
|
|
17773
|
+
# Update properties of this object
|
|
17774
|
+
def update!(**args)
|
|
17775
|
+
@enable_deduping = args[:enable_deduping] if args.key?(:enable_deduping)
|
|
17776
|
+
@similarity_threshold = args[:similarity_threshold] if args.key?(:similarity_threshold)
|
|
17777
|
+
end
|
|
17778
|
+
end
|
|
17779
|
+
|
|
17280
17780
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
|
17281
17781
|
# number of results to return for that type. Multiple `Feature` objects can be
|
|
17282
17782
|
# specified in the `features` list.
|
|
@@ -17298,24 +17798,44 @@ module Google
|
|
|
17298
17798
|
end
|
|
17299
17799
|
end
|
|
17300
17800
|
|
|
17301
|
-
# Represents the
|
|
17801
|
+
# Represents the action to take for a tool call that requires confirmation.
|
|
17302
17802
|
class GoogleCloudDialogflowV2SuggestionInput
|
|
17303
17803
|
include Google::Apis::Core::Hashable
|
|
17304
17804
|
|
|
17305
|
-
#
|
|
17306
|
-
#
|
|
17307
|
-
#
|
|
17805
|
+
# Optional. The type of action to take with the tool.
|
|
17806
|
+
# Corresponds to the JSON property `action`
|
|
17807
|
+
# @return [String]
|
|
17808
|
+
attr_accessor :action
|
|
17809
|
+
|
|
17810
|
+
# Required. Format: `projects//locations//answerRecords/` The answer record
|
|
17811
|
+
# associated with the tool call.
|
|
17308
17812
|
# Corresponds to the JSON property `answerRecord`
|
|
17309
17813
|
# @return [String]
|
|
17310
17814
|
attr_accessor :answer_record
|
|
17311
17815
|
|
|
17816
|
+
# Optional. Parameters to be used for the tool call. If not provided, the tool
|
|
17817
|
+
# will be called without any parameters.
|
|
17818
|
+
# Corresponds to the JSON property `parameters`
|
|
17819
|
+
# @return [Hash<String,Object>]
|
|
17820
|
+
attr_accessor :parameters
|
|
17821
|
+
|
|
17822
|
+
# Optional. Time when the current suggest input is sent. For tool calls, this
|
|
17823
|
+
# timestamp (along with the answer record) will be included in the corresponding
|
|
17824
|
+
# tool call result so that it can be identified.
|
|
17825
|
+
# Corresponds to the JSON property `sendTime`
|
|
17826
|
+
# @return [String]
|
|
17827
|
+
attr_accessor :send_time
|
|
17828
|
+
|
|
17312
17829
|
def initialize(**args)
|
|
17313
17830
|
update!(**args)
|
|
17314
17831
|
end
|
|
17315
17832
|
|
|
17316
17833
|
# Update properties of this object
|
|
17317
17834
|
def update!(**args)
|
|
17835
|
+
@action = args[:action] if args.key?(:action)
|
|
17318
17836
|
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
17837
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
|
17838
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
|
17319
17839
|
end
|
|
17320
17840
|
end
|
|
17321
17841
|
|
|
@@ -18093,30 +18613,604 @@ module Google
|
|
|
18093
18613
|
end
|
|
18094
18614
|
end
|
|
18095
18615
|
|
|
18096
|
-
# Represents a
|
|
18097
|
-
class
|
|
18616
|
+
# Represents a tool.
|
|
18617
|
+
class GoogleCloudDialogflowV2Tool
|
|
18618
|
+
include Google::Apis::Core::Hashable
|
|
18619
|
+
|
|
18620
|
+
# Optional. Confirmation requirement for the actions. Each key is an action name
|
|
18621
|
+
# in the action_schemas. If an action's confirmation requirement is unspecified (
|
|
18622
|
+
# either the key is not present, or its value is
|
|
18623
|
+
# CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the
|
|
18624
|
+
# action's method_type - confirmation is not required if and only if method_type
|
|
18625
|
+
# is GET.
|
|
18626
|
+
# Corresponds to the JSON property `actionConfirmationRequirement`
|
|
18627
|
+
# @return [Hash<String,String>]
|
|
18628
|
+
attr_accessor :action_confirmation_requirement
|
|
18629
|
+
|
|
18630
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
|
18631
|
+
# Corresponds to the JSON property `connectorSpec`
|
|
18632
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorTool]
|
|
18633
|
+
attr_accessor :connector_spec
|
|
18634
|
+
|
|
18635
|
+
# Output only. Creation time of this tool.
|
|
18636
|
+
# Corresponds to the JSON property `createTime`
|
|
18637
|
+
# @return [String]
|
|
18638
|
+
attr_accessor :create_time
|
|
18639
|
+
|
|
18640
|
+
# Optional. A human readable description of the tool.
|
|
18641
|
+
# Corresponds to the JSON property `description`
|
|
18642
|
+
# @return [String]
|
|
18643
|
+
attr_accessor :description
|
|
18644
|
+
|
|
18645
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
18646
|
+
# Corresponds to the JSON property `displayName`
|
|
18647
|
+
# @return [String]
|
|
18648
|
+
attr_accessor :display_name
|
|
18649
|
+
|
|
18650
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
|
18651
|
+
# Corresponds to the JSON property `extensionSpec`
|
|
18652
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolExtensionTool]
|
|
18653
|
+
attr_accessor :extension_spec
|
|
18654
|
+
|
|
18655
|
+
# A Function tool describes the functions to be invoked on the client side.
|
|
18656
|
+
# Corresponds to the JSON property `functionSpec`
|
|
18657
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool]
|
|
18658
|
+
attr_accessor :function_spec
|
|
18659
|
+
|
|
18660
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
|
18661
|
+
# locations//tools/`.
|
|
18662
|
+
# Corresponds to the JSON property `name`
|
|
18663
|
+
# @return [String]
|
|
18664
|
+
attr_accessor :name
|
|
18665
|
+
|
|
18666
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
|
18667
|
+
# schema format.
|
|
18668
|
+
# Corresponds to the JSON property `openApiSpec`
|
|
18669
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolOpenApiTool]
|
|
18670
|
+
attr_accessor :open_api_spec
|
|
18671
|
+
|
|
18672
|
+
# Output only. A read only boolean field reflecting Zone Isolation status of the
|
|
18673
|
+
# tool. If the field is absent, it means the status is unknown.
|
|
18674
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
|
18675
|
+
# @return [Boolean]
|
|
18676
|
+
attr_accessor :satisfies_pzi
|
|
18677
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
|
18678
|
+
|
|
18679
|
+
# Output only. A read only boolean field reflecting Zone Separation status of
|
|
18680
|
+
# the tool. If the field is absent, it means the status is unknown.
|
|
18681
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
|
18682
|
+
# @return [Boolean]
|
|
18683
|
+
attr_accessor :satisfies_pzs
|
|
18684
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
|
18685
|
+
|
|
18686
|
+
# Required. A human readable short name of the tool, which should be unique
|
|
18687
|
+
# within the project. It should only contain letters, numbers, and underscores,
|
|
18688
|
+
# and it will be used by LLM to identify the tool.
|
|
18689
|
+
# Corresponds to the JSON property `toolKey`
|
|
18690
|
+
# @return [String]
|
|
18691
|
+
attr_accessor :tool_key
|
|
18692
|
+
|
|
18693
|
+
# Output only. Update time of this tool.
|
|
18694
|
+
# Corresponds to the JSON property `updateTime`
|
|
18695
|
+
# @return [String]
|
|
18696
|
+
attr_accessor :update_time
|
|
18697
|
+
|
|
18698
|
+
def initialize(**args)
|
|
18699
|
+
update!(**args)
|
|
18700
|
+
end
|
|
18701
|
+
|
|
18702
|
+
# Update properties of this object
|
|
18703
|
+
def update!(**args)
|
|
18704
|
+
@action_confirmation_requirement = args[:action_confirmation_requirement] if args.key?(:action_confirmation_requirement)
|
|
18705
|
+
@connector_spec = args[:connector_spec] if args.key?(:connector_spec)
|
|
18706
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
18707
|
+
@description = args[:description] if args.key?(:description)
|
|
18708
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
18709
|
+
@extension_spec = args[:extension_spec] if args.key?(:extension_spec)
|
|
18710
|
+
@function_spec = args[:function_spec] if args.key?(:function_spec)
|
|
18711
|
+
@name = args[:name] if args.key?(:name)
|
|
18712
|
+
@open_api_spec = args[:open_api_spec] if args.key?(:open_api_spec)
|
|
18713
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
|
18714
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
|
18715
|
+
@tool_key = args[:tool_key] if args.key?(:tool_key)
|
|
18716
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
18717
|
+
end
|
|
18718
|
+
end
|
|
18719
|
+
|
|
18720
|
+
# Authentication information required for API calls
|
|
18721
|
+
class GoogleCloudDialogflowV2ToolAuthentication
|
|
18722
|
+
include Google::Apis::Core::Hashable
|
|
18723
|
+
|
|
18724
|
+
# Config for authentication with API key.
|
|
18725
|
+
# Corresponds to the JSON property `apiKeyConfig`
|
|
18726
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig]
|
|
18727
|
+
attr_accessor :api_key_config
|
|
18728
|
+
|
|
18729
|
+
# Config for authentication using bearer token.
|
|
18730
|
+
# Corresponds to the JSON property `bearerTokenConfig`
|
|
18731
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig]
|
|
18732
|
+
attr_accessor :bearer_token_config
|
|
18733
|
+
|
|
18734
|
+
# Config for authentication with OAuth.
|
|
18735
|
+
# Corresponds to the JSON property `oauthConfig`
|
|
18736
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig]
|
|
18737
|
+
attr_accessor :oauth_config
|
|
18738
|
+
|
|
18739
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
|
18740
|
+
# docs/service-agents#dialogflow-service-agent).
|
|
18741
|
+
# Corresponds to the JSON property `serviceAgentAuthConfig`
|
|
18742
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig]
|
|
18743
|
+
attr_accessor :service_agent_auth_config
|
|
18744
|
+
|
|
18745
|
+
def initialize(**args)
|
|
18746
|
+
update!(**args)
|
|
18747
|
+
end
|
|
18748
|
+
|
|
18749
|
+
# Update properties of this object
|
|
18750
|
+
def update!(**args)
|
|
18751
|
+
@api_key_config = args[:api_key_config] if args.key?(:api_key_config)
|
|
18752
|
+
@bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
|
|
18753
|
+
@oauth_config = args[:oauth_config] if args.key?(:oauth_config)
|
|
18754
|
+
@service_agent_auth_config = args[:service_agent_auth_config] if args.key?(:service_agent_auth_config)
|
|
18755
|
+
end
|
|
18756
|
+
end
|
|
18757
|
+
|
|
18758
|
+
# Config for authentication with API key.
|
|
18759
|
+
class GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig
|
|
18760
|
+
include Google::Apis::Core::Hashable
|
|
18761
|
+
|
|
18762
|
+
# Optional. The API key. If the `secret_version_for_api_key` field is set, this
|
|
18763
|
+
# field will be ignored.
|
|
18764
|
+
# Corresponds to the JSON property `apiKey`
|
|
18765
|
+
# @return [String]
|
|
18766
|
+
attr_accessor :api_key
|
|
18767
|
+
|
|
18768
|
+
# Required. The parameter name or the header name of the API key. E.g., If the
|
|
18769
|
+
# API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the
|
|
18770
|
+
# parameter name.
|
|
18771
|
+
# Corresponds to the JSON property `keyName`
|
|
18772
|
+
# @return [String]
|
|
18773
|
+
attr_accessor :key_name
|
|
18774
|
+
|
|
18775
|
+
# Required. Key location in the request.
|
|
18776
|
+
# Corresponds to the JSON property `requestLocation`
|
|
18777
|
+
# @return [String]
|
|
18778
|
+
attr_accessor :request_location
|
|
18779
|
+
|
|
18780
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
|
18781
|
+
# API key. If this field is set, the `api_key` field will be ignored. Format: `
|
|
18782
|
+
# projects/`project`/secrets/`secret`/versions/`version``
|
|
18783
|
+
# Corresponds to the JSON property `secretVersionForApiKey`
|
|
18784
|
+
# @return [String]
|
|
18785
|
+
attr_accessor :secret_version_for_api_key
|
|
18786
|
+
|
|
18787
|
+
def initialize(**args)
|
|
18788
|
+
update!(**args)
|
|
18789
|
+
end
|
|
18790
|
+
|
|
18791
|
+
# Update properties of this object
|
|
18792
|
+
def update!(**args)
|
|
18793
|
+
@api_key = args[:api_key] if args.key?(:api_key)
|
|
18794
|
+
@key_name = args[:key_name] if args.key?(:key_name)
|
|
18795
|
+
@request_location = args[:request_location] if args.key?(:request_location)
|
|
18796
|
+
@secret_version_for_api_key = args[:secret_version_for_api_key] if args.key?(:secret_version_for_api_key)
|
|
18797
|
+
end
|
|
18798
|
+
end
|
|
18799
|
+
|
|
18800
|
+
# Config for authentication using bearer token.
|
|
18801
|
+
class GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig
|
|
18802
|
+
include Google::Apis::Core::Hashable
|
|
18803
|
+
|
|
18804
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
|
18805
|
+
# Bearer token. If this field is set, the `token` field will be ignored. Format:
|
|
18806
|
+
# `projects/`project`/secrets/`secret`/versions/`version``
|
|
18807
|
+
# Corresponds to the JSON property `secretVersionForToken`
|
|
18808
|
+
# @return [String]
|
|
18809
|
+
attr_accessor :secret_version_for_token
|
|
18810
|
+
|
|
18811
|
+
# Optional. The text token appended to the text `Bearer` to the request
|
|
18812
|
+
# Authorization header. [Session parameters reference](https://cloud.google.com/
|
|
18813
|
+
# dialogflow/cx/docs/concept/parameter#session-ref) can be used to pass the
|
|
18814
|
+
# token dynamically, e.g. `$session.params.parameter-id`.
|
|
18815
|
+
# Corresponds to the JSON property `token`
|
|
18816
|
+
# @return [String]
|
|
18817
|
+
attr_accessor :token
|
|
18818
|
+
|
|
18819
|
+
def initialize(**args)
|
|
18820
|
+
update!(**args)
|
|
18821
|
+
end
|
|
18822
|
+
|
|
18823
|
+
# Update properties of this object
|
|
18824
|
+
def update!(**args)
|
|
18825
|
+
@secret_version_for_token = args[:secret_version_for_token] if args.key?(:secret_version_for_token)
|
|
18826
|
+
@token = args[:token] if args.key?(:token)
|
|
18827
|
+
end
|
|
18828
|
+
end
|
|
18829
|
+
|
|
18830
|
+
# Config for authentication with OAuth.
|
|
18831
|
+
class GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig
|
|
18832
|
+
include Google::Apis::Core::Hashable
|
|
18833
|
+
|
|
18834
|
+
# Required. The client ID from the OAuth provider.
|
|
18835
|
+
# Corresponds to the JSON property `clientId`
|
|
18836
|
+
# @return [String]
|
|
18837
|
+
attr_accessor :client_id
|
|
18838
|
+
|
|
18839
|
+
# Optional. The client secret from the OAuth provider. If the `
|
|
18840
|
+
# secret_version_for_client_secret` field is set, this field will be ignored.
|
|
18841
|
+
# Corresponds to the JSON property `clientSecret`
|
|
18842
|
+
# @return [String]
|
|
18843
|
+
attr_accessor :client_secret
|
|
18844
|
+
|
|
18845
|
+
# Required. OAuth grant types.
|
|
18846
|
+
# Corresponds to the JSON property `oauthGrantType`
|
|
18847
|
+
# @return [String]
|
|
18848
|
+
attr_accessor :oauth_grant_type
|
|
18849
|
+
|
|
18850
|
+
# Optional. The OAuth scopes to grant.
|
|
18851
|
+
# Corresponds to the JSON property `scopes`
|
|
18852
|
+
# @return [Array<String>]
|
|
18853
|
+
attr_accessor :scopes
|
|
18854
|
+
|
|
18855
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
|
18856
|
+
# client secret. If this field is set, the `client_secret` field will be ignored.
|
|
18857
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
|
18858
|
+
# Corresponds to the JSON property `secretVersionForClientSecret`
|
|
18859
|
+
# @return [String]
|
|
18860
|
+
attr_accessor :secret_version_for_client_secret
|
|
18861
|
+
|
|
18862
|
+
# Required. The token endpoint in the OAuth provider to exchange for an access
|
|
18863
|
+
# token.
|
|
18864
|
+
# Corresponds to the JSON property `tokenEndpoint`
|
|
18865
|
+
# @return [String]
|
|
18866
|
+
attr_accessor :token_endpoint
|
|
18867
|
+
|
|
18868
|
+
def initialize(**args)
|
|
18869
|
+
update!(**args)
|
|
18870
|
+
end
|
|
18871
|
+
|
|
18872
|
+
# Update properties of this object
|
|
18873
|
+
def update!(**args)
|
|
18874
|
+
@client_id = args[:client_id] if args.key?(:client_id)
|
|
18875
|
+
@client_secret = args[:client_secret] if args.key?(:client_secret)
|
|
18876
|
+
@oauth_grant_type = args[:oauth_grant_type] if args.key?(:oauth_grant_type)
|
|
18877
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
|
18878
|
+
@secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
|
|
18879
|
+
@token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
|
|
18880
|
+
end
|
|
18881
|
+
end
|
|
18882
|
+
|
|
18883
|
+
# Config for auth using [Dialogflow service agent](https://cloud.google.com/iam/
|
|
18884
|
+
# docs/service-agents#dialogflow-service-agent).
|
|
18885
|
+
class GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig
|
|
18886
|
+
include Google::Apis::Core::Hashable
|
|
18887
|
+
|
|
18888
|
+
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
|
18889
|
+
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
|
18890
|
+
# agent). The generated token is sent in the Authorization header.
|
|
18891
|
+
# Corresponds to the JSON property `serviceAgentAuth`
|
|
18892
|
+
# @return [String]
|
|
18893
|
+
attr_accessor :service_agent_auth
|
|
18894
|
+
|
|
18895
|
+
def initialize(**args)
|
|
18896
|
+
update!(**args)
|
|
18897
|
+
end
|
|
18898
|
+
|
|
18899
|
+
# Update properties of this object
|
|
18900
|
+
def update!(**args)
|
|
18901
|
+
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
|
18902
|
+
end
|
|
18903
|
+
end
|
|
18904
|
+
|
|
18905
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
|
18906
|
+
class GoogleCloudDialogflowV2ToolCall
|
|
18907
|
+
include Google::Apis::Core::Hashable
|
|
18908
|
+
|
|
18909
|
+
# Optional. The name of the tool's action associated with this call.
|
|
18910
|
+
# Corresponds to the JSON property `action`
|
|
18911
|
+
# @return [String]
|
|
18912
|
+
attr_accessor :action
|
|
18913
|
+
|
|
18914
|
+
# Optional. The answer record associated with this tool call.
|
|
18915
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18916
|
+
# @return [String]
|
|
18917
|
+
attr_accessor :answer_record
|
|
18918
|
+
|
|
18919
|
+
# Output only. Create time of the tool call.
|
|
18920
|
+
# Corresponds to the JSON property `createTime`
|
|
18921
|
+
# @return [String]
|
|
18922
|
+
attr_accessor :create_time
|
|
18923
|
+
|
|
18924
|
+
# Optional. The action's input parameters.
|
|
18925
|
+
# Corresponds to the JSON property `inputParameters`
|
|
18926
|
+
# @return [Hash<String,Object>]
|
|
18927
|
+
attr_accessor :input_parameters
|
|
18928
|
+
|
|
18929
|
+
# Output only. State of the tool call.
|
|
18930
|
+
# Corresponds to the JSON property `state`
|
|
18931
|
+
# @return [String]
|
|
18932
|
+
attr_accessor :state
|
|
18933
|
+
|
|
18934
|
+
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
18935
|
+
# tools/`.
|
|
18936
|
+
# Corresponds to the JSON property `tool`
|
|
18937
|
+
# @return [String]
|
|
18938
|
+
attr_accessor :tool
|
|
18939
|
+
|
|
18940
|
+
# Optional. A human readable description of the tool.
|
|
18941
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
18942
|
+
# @return [String]
|
|
18943
|
+
attr_accessor :tool_display_details
|
|
18944
|
+
|
|
18945
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
18946
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
18947
|
+
# @return [String]
|
|
18948
|
+
attr_accessor :tool_display_name
|
|
18949
|
+
|
|
18950
|
+
def initialize(**args)
|
|
18951
|
+
update!(**args)
|
|
18952
|
+
end
|
|
18953
|
+
|
|
18954
|
+
# Update properties of this object
|
|
18955
|
+
def update!(**args)
|
|
18956
|
+
@action = args[:action] if args.key?(:action)
|
|
18957
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
18958
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
18959
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
18960
|
+
@state = args[:state] if args.key?(:state)
|
|
18961
|
+
@tool = args[:tool] if args.key?(:tool)
|
|
18962
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
18963
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
18964
|
+
end
|
|
18965
|
+
end
|
|
18966
|
+
|
|
18967
|
+
# The result of calling a tool's action.
|
|
18968
|
+
class GoogleCloudDialogflowV2ToolCallResult
|
|
18969
|
+
include Google::Apis::Core::Hashable
|
|
18970
|
+
|
|
18971
|
+
# Optional. The name of the tool's action associated with this call.
|
|
18972
|
+
# Corresponds to the JSON property `action`
|
|
18973
|
+
# @return [String]
|
|
18974
|
+
attr_accessor :action
|
|
18975
|
+
|
|
18976
|
+
# Optional. The answer record associated with this tool call result.
|
|
18977
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18978
|
+
# @return [String]
|
|
18979
|
+
attr_accessor :answer_record
|
|
18980
|
+
|
|
18981
|
+
# Only populated if the response content is utf-8 encoded.
|
|
18982
|
+
# Corresponds to the JSON property `content`
|
|
18983
|
+
# @return [String]
|
|
18984
|
+
attr_accessor :content
|
|
18985
|
+
|
|
18986
|
+
# Output only. Create time of the tool call result.
|
|
18987
|
+
# Corresponds to the JSON property `createTime`
|
|
18988
|
+
# @return [String]
|
|
18989
|
+
attr_accessor :create_time
|
|
18990
|
+
|
|
18991
|
+
# An error produced by the tool call.
|
|
18992
|
+
# Corresponds to the JSON property `error`
|
|
18993
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolCallResultError]
|
|
18994
|
+
attr_accessor :error
|
|
18995
|
+
|
|
18996
|
+
# Only populated if the response content is not utf-8 encoded. (by definition
|
|
18997
|
+
# byte fields are base64 encoded).
|
|
18998
|
+
# Corresponds to the JSON property `rawContent`
|
|
18999
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
19000
|
+
# @return [String]
|
|
19001
|
+
attr_accessor :raw_content
|
|
19002
|
+
|
|
19003
|
+
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
19004
|
+
# tools/`.
|
|
19005
|
+
# Corresponds to the JSON property `tool`
|
|
19006
|
+
# @return [String]
|
|
19007
|
+
attr_accessor :tool
|
|
19008
|
+
|
|
19009
|
+
def initialize(**args)
|
|
19010
|
+
update!(**args)
|
|
19011
|
+
end
|
|
19012
|
+
|
|
19013
|
+
# Update properties of this object
|
|
19014
|
+
def update!(**args)
|
|
19015
|
+
@action = args[:action] if args.key?(:action)
|
|
19016
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19017
|
+
@content = args[:content] if args.key?(:content)
|
|
19018
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
19019
|
+
@error = args[:error] if args.key?(:error)
|
|
19020
|
+
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
|
19021
|
+
@tool = args[:tool] if args.key?(:tool)
|
|
19022
|
+
end
|
|
19023
|
+
end
|
|
19024
|
+
|
|
19025
|
+
# An error produced by the tool call.
|
|
19026
|
+
class GoogleCloudDialogflowV2ToolCallResultError
|
|
19027
|
+
include Google::Apis::Core::Hashable
|
|
19028
|
+
|
|
19029
|
+
# Optional. The error message of the function.
|
|
19030
|
+
# Corresponds to the JSON property `message`
|
|
19031
|
+
# @return [String]
|
|
19032
|
+
attr_accessor :message
|
|
19033
|
+
|
|
19034
|
+
def initialize(**args)
|
|
19035
|
+
update!(**args)
|
|
19036
|
+
end
|
|
19037
|
+
|
|
19038
|
+
# Update properties of this object
|
|
19039
|
+
def update!(**args)
|
|
19040
|
+
@message = args[:message] if args.key?(:message)
|
|
19041
|
+
end
|
|
19042
|
+
end
|
|
19043
|
+
|
|
19044
|
+
# A ConnectorTool enabling using Integration Connectors Connections as tools.
|
|
19045
|
+
class GoogleCloudDialogflowV2ToolConnectorTool
|
|
19046
|
+
include Google::Apis::Core::Hashable
|
|
19047
|
+
|
|
19048
|
+
# Required. Actions for the tool to use.
|
|
19049
|
+
# Corresponds to the JSON property `actions`
|
|
19050
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolAction>]
|
|
19051
|
+
attr_accessor :actions
|
|
19052
|
+
|
|
19053
|
+
# Required. The full resource name of the referenced Integration Connectors
|
|
19054
|
+
# Connection. Format: 'projects/*/locations/*/connections/*'
|
|
19055
|
+
# Corresponds to the JSON property `name`
|
|
19056
|
+
# @return [String]
|
|
19057
|
+
attr_accessor :name
|
|
19058
|
+
|
|
19059
|
+
def initialize(**args)
|
|
19060
|
+
update!(**args)
|
|
19061
|
+
end
|
|
19062
|
+
|
|
19063
|
+
# Update properties of this object
|
|
19064
|
+
def update!(**args)
|
|
19065
|
+
@actions = args[:actions] if args.key?(:actions)
|
|
19066
|
+
@name = args[:name] if args.key?(:name)
|
|
19067
|
+
end
|
|
19068
|
+
end
|
|
19069
|
+
|
|
19070
|
+
# Configuration of a Connection operation for the tool to use.
|
|
19071
|
+
class GoogleCloudDialogflowV2ToolConnectorToolAction
|
|
19072
|
+
include Google::Apis::Core::Hashable
|
|
19073
|
+
|
|
19074
|
+
# ID of a Connection action for the tool to use.
|
|
19075
|
+
# Corresponds to the JSON property `connectionActionId`
|
|
19076
|
+
# @return [String]
|
|
19077
|
+
attr_accessor :connection_action_id
|
|
19078
|
+
|
|
19079
|
+
# Entity CRUD operation specification.
|
|
19080
|
+
# Corresponds to the JSON property `entityOperation`
|
|
19081
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation]
|
|
19082
|
+
attr_accessor :entity_operation
|
|
19083
|
+
|
|
19084
|
+
# Optional. Entity fields to use as inputs for the operation. If no fields are
|
|
19085
|
+
# specified, all fields of the Entity will be used.
|
|
19086
|
+
# Corresponds to the JSON property `inputFields`
|
|
19087
|
+
# @return [Array<String>]
|
|
19088
|
+
attr_accessor :input_fields
|
|
19089
|
+
|
|
19090
|
+
# Optional. Entity fields to return from the operation. If no fields are
|
|
19091
|
+
# specified, all fields of the Entity will be returned.
|
|
19092
|
+
# Corresponds to the JSON property `outputFields`
|
|
19093
|
+
# @return [Array<String>]
|
|
19094
|
+
attr_accessor :output_fields
|
|
19095
|
+
|
|
19096
|
+
def initialize(**args)
|
|
19097
|
+
update!(**args)
|
|
19098
|
+
end
|
|
19099
|
+
|
|
19100
|
+
# Update properties of this object
|
|
19101
|
+
def update!(**args)
|
|
19102
|
+
@connection_action_id = args[:connection_action_id] if args.key?(:connection_action_id)
|
|
19103
|
+
@entity_operation = args[:entity_operation] if args.key?(:entity_operation)
|
|
19104
|
+
@input_fields = args[:input_fields] if args.key?(:input_fields)
|
|
19105
|
+
@output_fields = args[:output_fields] if args.key?(:output_fields)
|
|
19106
|
+
end
|
|
19107
|
+
end
|
|
19108
|
+
|
|
19109
|
+
# Entity CRUD operation specification.
|
|
19110
|
+
class GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation
|
|
19111
|
+
include Google::Apis::Core::Hashable
|
|
19112
|
+
|
|
19113
|
+
# Required. ID of the entity.
|
|
19114
|
+
# Corresponds to the JSON property `entityId`
|
|
19115
|
+
# @return [String]
|
|
19116
|
+
attr_accessor :entity_id
|
|
19117
|
+
|
|
19118
|
+
# Required. Operation to perform on the entity.
|
|
19119
|
+
# Corresponds to the JSON property `operation`
|
|
19120
|
+
# @return [String]
|
|
19121
|
+
attr_accessor :operation
|
|
19122
|
+
|
|
19123
|
+
def initialize(**args)
|
|
19124
|
+
update!(**args)
|
|
19125
|
+
end
|
|
19126
|
+
|
|
19127
|
+
# Update properties of this object
|
|
19128
|
+
def update!(**args)
|
|
19129
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
|
19130
|
+
@operation = args[:operation] if args.key?(:operation)
|
|
19131
|
+
end
|
|
19132
|
+
end
|
|
19133
|
+
|
|
19134
|
+
# An ExtensionTool is a way to use Vertex Extensions as a tool.
|
|
19135
|
+
class GoogleCloudDialogflowV2ToolExtensionTool
|
|
19136
|
+
include Google::Apis::Core::Hashable
|
|
19137
|
+
|
|
19138
|
+
# Required. The full name of the referenced vertex extension. Format: `projects/`
|
|
19139
|
+
# project`/locations/`location`/extensions/`extension``
|
|
19140
|
+
# Corresponds to the JSON property `name`
|
|
19141
|
+
# @return [String]
|
|
19142
|
+
attr_accessor :name
|
|
19143
|
+
|
|
19144
|
+
def initialize(**args)
|
|
19145
|
+
update!(**args)
|
|
19146
|
+
end
|
|
19147
|
+
|
|
19148
|
+
# Update properties of this object
|
|
19149
|
+
def update!(**args)
|
|
19150
|
+
@name = args[:name] if args.key?(:name)
|
|
19151
|
+
end
|
|
19152
|
+
end
|
|
19153
|
+
|
|
19154
|
+
# A Function tool describes the functions to be invoked on the client side.
|
|
19155
|
+
class GoogleCloudDialogflowV2ToolFunctionTool
|
|
19156
|
+
include Google::Apis::Core::Hashable
|
|
19157
|
+
|
|
19158
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
|
19159
|
+
# describe the input of the function. This input is a JSON object that contains
|
|
19160
|
+
# the function's parameters as properties of the object.
|
|
19161
|
+
# Corresponds to the JSON property `inputSchema`
|
|
19162
|
+
# @return [Hash<String,Object>]
|
|
19163
|
+
attr_accessor :input_schema
|
|
19164
|
+
|
|
19165
|
+
# Optional. The method type of the function. If not specified, the default value
|
|
19166
|
+
# is GET.
|
|
19167
|
+
# Corresponds to the JSON property `methodType`
|
|
19168
|
+
# @return [String]
|
|
19169
|
+
attr_accessor :method_type
|
|
19170
|
+
|
|
19171
|
+
# Optional. The JSON schema is encapsulated in a google.protobuf.Struct to
|
|
19172
|
+
# describe the output of the function. This output is a JSON object that
|
|
19173
|
+
# contains the function's parameters as properties of the object.
|
|
19174
|
+
# Corresponds to the JSON property `outputSchema`
|
|
19175
|
+
# @return [Hash<String,Object>]
|
|
19176
|
+
attr_accessor :output_schema
|
|
19177
|
+
|
|
19178
|
+
def initialize(**args)
|
|
19179
|
+
update!(**args)
|
|
19180
|
+
end
|
|
19181
|
+
|
|
19182
|
+
# Update properties of this object
|
|
19183
|
+
def update!(**args)
|
|
19184
|
+
@input_schema = args[:input_schema] if args.key?(:input_schema)
|
|
19185
|
+
@method_type = args[:method_type] if args.key?(:method_type)
|
|
19186
|
+
@output_schema = args[:output_schema] if args.key?(:output_schema)
|
|
19187
|
+
end
|
|
19188
|
+
end
|
|
19189
|
+
|
|
19190
|
+
# An OpenAPI tool is a way to provide the Tool specifications in the Open API
|
|
19191
|
+
# schema format.
|
|
19192
|
+
class GoogleCloudDialogflowV2ToolOpenApiTool
|
|
18098
19193
|
include Google::Apis::Core::Hashable
|
|
18099
19194
|
|
|
18100
|
-
#
|
|
18101
|
-
# Corresponds to the JSON property `
|
|
18102
|
-
# @return [
|
|
18103
|
-
attr_accessor :
|
|
18104
|
-
|
|
18105
|
-
# Output only. Create time of the tool call.
|
|
18106
|
-
# Corresponds to the JSON property `createTime`
|
|
18107
|
-
# @return [String]
|
|
18108
|
-
attr_accessor :create_time
|
|
19195
|
+
# Authentication information required for API calls
|
|
19196
|
+
# Corresponds to the JSON property `authentication`
|
|
19197
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthentication]
|
|
19198
|
+
attr_accessor :authentication
|
|
18109
19199
|
|
|
18110
|
-
#
|
|
18111
|
-
# Corresponds to the JSON property `
|
|
18112
|
-
# @return [
|
|
18113
|
-
attr_accessor :
|
|
19200
|
+
# Configuration for tools using Service Directory.
|
|
19201
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
|
19202
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolServiceDirectoryConfig]
|
|
19203
|
+
attr_accessor :service_directory_config
|
|
18114
19204
|
|
|
18115
|
-
#
|
|
18116
|
-
#
|
|
18117
|
-
# Corresponds to the JSON property `tool`
|
|
19205
|
+
# Required. The OpenAPI schema specified as a text.
|
|
19206
|
+
# Corresponds to the JSON property `textSchema`
|
|
18118
19207
|
# @return [String]
|
|
18119
|
-
attr_accessor :
|
|
19208
|
+
attr_accessor :text_schema
|
|
19209
|
+
|
|
19210
|
+
# The TLS configuration.
|
|
19211
|
+
# Corresponds to the JSON property `tlsConfig`
|
|
19212
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfig]
|
|
19213
|
+
attr_accessor :tls_config
|
|
18120
19214
|
|
|
18121
19215
|
def initialize(**args)
|
|
18122
19216
|
update!(**args)
|
|
@@ -18124,49 +19218,44 @@ module Google
|
|
|
18124
19218
|
|
|
18125
19219
|
# Update properties of this object
|
|
18126
19220
|
def update!(**args)
|
|
18127
|
-
@
|
|
18128
|
-
@
|
|
18129
|
-
@
|
|
18130
|
-
@
|
|
19221
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
|
19222
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
|
19223
|
+
@text_schema = args[:text_schema] if args.key?(:text_schema)
|
|
19224
|
+
@tls_config = args[:tls_config] if args.key?(:tls_config)
|
|
18131
19225
|
end
|
|
18132
19226
|
end
|
|
18133
19227
|
|
|
18134
|
-
#
|
|
18135
|
-
class
|
|
19228
|
+
# Configuration for tools using Service Directory.
|
|
19229
|
+
class GoogleCloudDialogflowV2ToolServiceDirectoryConfig
|
|
18136
19230
|
include Google::Apis::Core::Hashable
|
|
18137
19231
|
|
|
18138
|
-
#
|
|
18139
|
-
#
|
|
18140
|
-
#
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
# Only populated if the response content is utf-8 encoded.
|
|
18144
|
-
# Corresponds to the JSON property `content`
|
|
19232
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
|
19233
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
|
19234
|
+
# LocationID` of the service directory must be the same as the location of the
|
|
19235
|
+
# tool.
|
|
19236
|
+
# Corresponds to the JSON property `service`
|
|
18145
19237
|
# @return [String]
|
|
18146
|
-
attr_accessor :
|
|
19238
|
+
attr_accessor :service
|
|
18147
19239
|
|
|
18148
|
-
|
|
18149
|
-
|
|
18150
|
-
|
|
18151
|
-
attr_accessor :create_time
|
|
19240
|
+
def initialize(**args)
|
|
19241
|
+
update!(**args)
|
|
19242
|
+
end
|
|
18152
19243
|
|
|
18153
|
-
#
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
19244
|
+
# Update properties of this object
|
|
19245
|
+
def update!(**args)
|
|
19246
|
+
@service = args[:service] if args.key?(:service)
|
|
19247
|
+
end
|
|
19248
|
+
end
|
|
18157
19249
|
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
18162
|
-
# @return [String]
|
|
18163
|
-
attr_accessor :raw_content
|
|
19250
|
+
# The TLS configuration.
|
|
19251
|
+
class GoogleCloudDialogflowV2ToolTlsConfig
|
|
19252
|
+
include Google::Apis::Core::Hashable
|
|
18164
19253
|
|
|
18165
|
-
#
|
|
18166
|
-
#
|
|
18167
|
-
# Corresponds to the JSON property `
|
|
18168
|
-
# @return [
|
|
18169
|
-
attr_accessor :
|
|
19254
|
+
# Required. Specifies a list of allowed custom CA certificates for HTTPS
|
|
19255
|
+
# verification.
|
|
19256
|
+
# Corresponds to the JSON property `caCerts`
|
|
19257
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolTlsConfigCaCert>]
|
|
19258
|
+
attr_accessor :ca_certs
|
|
18170
19259
|
|
|
18171
19260
|
def initialize(**args)
|
|
18172
19261
|
update!(**args)
|
|
@@ -18174,23 +19263,32 @@ module Google
|
|
|
18174
19263
|
|
|
18175
19264
|
# Update properties of this object
|
|
18176
19265
|
def update!(**args)
|
|
18177
|
-
@
|
|
18178
|
-
@content = args[:content] if args.key?(:content)
|
|
18179
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
18180
|
-
@error = args[:error] if args.key?(:error)
|
|
18181
|
-
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
|
18182
|
-
@tool = args[:tool] if args.key?(:tool)
|
|
19266
|
+
@ca_certs = args[:ca_certs] if args.key?(:ca_certs)
|
|
18183
19267
|
end
|
|
18184
19268
|
end
|
|
18185
19269
|
|
|
18186
|
-
#
|
|
18187
|
-
class
|
|
19270
|
+
# The CA certificate.
|
|
19271
|
+
class GoogleCloudDialogflowV2ToolTlsConfigCaCert
|
|
18188
19272
|
include Google::Apis::Core::Hashable
|
|
18189
19273
|
|
|
18190
|
-
#
|
|
18191
|
-
#
|
|
19274
|
+
# Required. The allowed custom CA certificates (in DER format) for HTTPS
|
|
19275
|
+
# verification. This overrides the default SSL trust store. If this is empty or
|
|
19276
|
+
# unspecified, Dialogflow will use Google's default trust store to verify
|
|
19277
|
+
# certificates. N.B. Make sure the HTTPS server certificates are signed with "
|
|
19278
|
+
# subject alt name". For instance a certificate can be self-signed using the
|
|
19279
|
+
# following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey
|
|
19280
|
+
# example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='
|
|
19281
|
+
# DNS:www.example.com'")
|
|
19282
|
+
# Corresponds to the JSON property `cert`
|
|
19283
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
18192
19284
|
# @return [String]
|
|
18193
|
-
attr_accessor :
|
|
19285
|
+
attr_accessor :cert
|
|
19286
|
+
|
|
19287
|
+
# Required. The name of the allowed custom CA certificates. This can be used to
|
|
19288
|
+
# disambiguate the custom CA certificates.
|
|
19289
|
+
# Corresponds to the JSON property `displayName`
|
|
19290
|
+
# @return [String]
|
|
19291
|
+
attr_accessor :display_name
|
|
18194
19292
|
|
|
18195
19293
|
def initialize(**args)
|
|
18196
19294
|
update!(**args)
|
|
@@ -18198,7 +19296,8 @@ module Google
|
|
|
18198
19296
|
|
|
18199
19297
|
# Update properties of this object
|
|
18200
19298
|
def update!(**args)
|
|
18201
|
-
@
|
|
19299
|
+
@cert = args[:cert] if args.key?(:cert)
|
|
19300
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
18202
19301
|
end
|
|
18203
19302
|
end
|
|
18204
19303
|
|
|
@@ -18528,6 +19627,282 @@ module Google
|
|
|
18528
19627
|
end
|
|
18529
19628
|
end
|
|
18530
19629
|
|
|
19630
|
+
# Agent Coaching instructions that customer can configure.
|
|
19631
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstruction
|
|
19632
|
+
include Google::Apis::Core::Hashable
|
|
19633
|
+
|
|
19634
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
|
19635
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
|
19636
|
+
# detection, agent_action can be empty
|
|
19637
|
+
# Corresponds to the JSON property `agentAction`
|
|
19638
|
+
# @return [String]
|
|
19639
|
+
attr_accessor :agent_action
|
|
19640
|
+
|
|
19641
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
|
19642
|
+
# to cancel an order". If the users want the instruction to be triggered
|
|
19643
|
+
# unconditionally, the condition can be empty.
|
|
19644
|
+
# Corresponds to the JSON property `condition`
|
|
19645
|
+
# @return [String]
|
|
19646
|
+
attr_accessor :condition
|
|
19647
|
+
|
|
19648
|
+
# Optional. The detailed description of this instruction.
|
|
19649
|
+
# Corresponds to the JSON property `displayDetails`
|
|
19650
|
+
# @return [String]
|
|
19651
|
+
attr_accessor :display_details
|
|
19652
|
+
|
|
19653
|
+
# Optional. Display name for the instruction.
|
|
19654
|
+
# Corresponds to the JSON property `displayName`
|
|
19655
|
+
# @return [String]
|
|
19656
|
+
attr_accessor :display_name
|
|
19657
|
+
|
|
19658
|
+
# Duplication check for the suggestion.
|
|
19659
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19660
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult]
|
|
19661
|
+
attr_accessor :duplicate_check_result
|
|
19662
|
+
|
|
19663
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
|
19664
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
|
19665
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
|
19666
|
+
# Corresponds to the JSON property `systemAction`
|
|
19667
|
+
# @return [String]
|
|
19668
|
+
attr_accessor :system_action
|
|
19669
|
+
|
|
19670
|
+
def initialize(**args)
|
|
19671
|
+
update!(**args)
|
|
19672
|
+
end
|
|
19673
|
+
|
|
19674
|
+
# Update properties of this object
|
|
19675
|
+
def update!(**args)
|
|
19676
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19677
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
19678
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
|
19679
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
19680
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19681
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
|
19682
|
+
end
|
|
19683
|
+
end
|
|
19684
|
+
|
|
19685
|
+
# Duplication check for the suggestion.
|
|
19686
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult
|
|
19687
|
+
include Google::Apis::Core::Hashable
|
|
19688
|
+
|
|
19689
|
+
# Output only. The duplicate suggestions.
|
|
19690
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19691
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
|
19692
|
+
attr_accessor :duplicate_suggestions
|
|
19693
|
+
|
|
19694
|
+
def initialize(**args)
|
|
19695
|
+
update!(**args)
|
|
19696
|
+
end
|
|
19697
|
+
|
|
19698
|
+
# Update properties of this object
|
|
19699
|
+
def update!(**args)
|
|
19700
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19701
|
+
end
|
|
19702
|
+
end
|
|
19703
|
+
|
|
19704
|
+
# The duplicate suggestion details.
|
|
19705
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
|
19706
|
+
include Google::Apis::Core::Hashable
|
|
19707
|
+
|
|
19708
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19709
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19710
|
+
# @return [String]
|
|
19711
|
+
attr_accessor :answer_record
|
|
19712
|
+
|
|
19713
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19714
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19715
|
+
# @return [Float]
|
|
19716
|
+
attr_accessor :similarity_score
|
|
19717
|
+
|
|
19718
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19719
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19720
|
+
# @return [Fixnum]
|
|
19721
|
+
attr_accessor :suggestion_index
|
|
19722
|
+
|
|
19723
|
+
def initialize(**args)
|
|
19724
|
+
update!(**args)
|
|
19725
|
+
end
|
|
19726
|
+
|
|
19727
|
+
# Update properties of this object
|
|
19728
|
+
def update!(**args)
|
|
19729
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19730
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19731
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19732
|
+
end
|
|
19733
|
+
end
|
|
19734
|
+
|
|
19735
|
+
# Suggestion for coaching agents.
|
|
19736
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestion
|
|
19737
|
+
include Google::Apis::Core::Hashable
|
|
19738
|
+
|
|
19739
|
+
# Optional. Suggested actions for the agent to take.
|
|
19740
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
|
19741
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion>]
|
|
19742
|
+
attr_accessor :agent_action_suggestions
|
|
19743
|
+
|
|
19744
|
+
# Optional. Instructions applicable based on the current context.
|
|
19745
|
+
# Corresponds to the JSON property `applicableInstructions`
|
|
19746
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
|
|
19747
|
+
attr_accessor :applicable_instructions
|
|
19748
|
+
|
|
19749
|
+
# Optional. Sample response for the Agent.
|
|
19750
|
+
# Corresponds to the JSON property `sampleResponses`
|
|
19751
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse>]
|
|
19752
|
+
attr_accessor :sample_responses
|
|
19753
|
+
|
|
19754
|
+
def initialize(**args)
|
|
19755
|
+
update!(**args)
|
|
19756
|
+
end
|
|
19757
|
+
|
|
19758
|
+
# Update properties of this object
|
|
19759
|
+
def update!(**args)
|
|
19760
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
|
19761
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
|
19762
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
|
19763
|
+
end
|
|
19764
|
+
end
|
|
19765
|
+
|
|
19766
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
|
19767
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion
|
|
19768
|
+
include Google::Apis::Core::Hashable
|
|
19769
|
+
|
|
19770
|
+
# Optional. The suggested action for the agent.
|
|
19771
|
+
# Corresponds to the JSON property `agentAction`
|
|
19772
|
+
# @return [String]
|
|
19773
|
+
attr_accessor :agent_action
|
|
19774
|
+
|
|
19775
|
+
# Duplication check for the suggestion.
|
|
19776
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19777
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19778
|
+
attr_accessor :duplicate_check_result
|
|
19779
|
+
|
|
19780
|
+
# Sources for the suggestion.
|
|
19781
|
+
# Corresponds to the JSON property `sources`
|
|
19782
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19783
|
+
attr_accessor :sources
|
|
19784
|
+
|
|
19785
|
+
def initialize(**args)
|
|
19786
|
+
update!(**args)
|
|
19787
|
+
end
|
|
19788
|
+
|
|
19789
|
+
# Update properties of this object
|
|
19790
|
+
def update!(**args)
|
|
19791
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19792
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19793
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19794
|
+
end
|
|
19795
|
+
end
|
|
19796
|
+
|
|
19797
|
+
# Duplication check for the suggestion.
|
|
19798
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult
|
|
19799
|
+
include Google::Apis::Core::Hashable
|
|
19800
|
+
|
|
19801
|
+
# Output only. The duplicate suggestions.
|
|
19802
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19803
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
|
19804
|
+
attr_accessor :duplicate_suggestions
|
|
19805
|
+
|
|
19806
|
+
def initialize(**args)
|
|
19807
|
+
update!(**args)
|
|
19808
|
+
end
|
|
19809
|
+
|
|
19810
|
+
# Update properties of this object
|
|
19811
|
+
def update!(**args)
|
|
19812
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19813
|
+
end
|
|
19814
|
+
end
|
|
19815
|
+
|
|
19816
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
|
19817
|
+
# as they are identifiers for duplicate suggestions.
|
|
19818
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
|
19819
|
+
include Google::Apis::Core::Hashable
|
|
19820
|
+
|
|
19821
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19822
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19823
|
+
# @return [String]
|
|
19824
|
+
attr_accessor :answer_record
|
|
19825
|
+
|
|
19826
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19827
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19828
|
+
# @return [Float]
|
|
19829
|
+
attr_accessor :similarity_score
|
|
19830
|
+
|
|
19831
|
+
# Sources for the suggestion.
|
|
19832
|
+
# Corresponds to the JSON property `sources`
|
|
19833
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19834
|
+
attr_accessor :sources
|
|
19835
|
+
|
|
19836
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19837
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19838
|
+
# @return [Fixnum]
|
|
19839
|
+
attr_accessor :suggestion_index
|
|
19840
|
+
|
|
19841
|
+
def initialize(**args)
|
|
19842
|
+
update!(**args)
|
|
19843
|
+
end
|
|
19844
|
+
|
|
19845
|
+
# Update properties of this object
|
|
19846
|
+
def update!(**args)
|
|
19847
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19848
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19849
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19850
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19851
|
+
end
|
|
19852
|
+
end
|
|
19853
|
+
|
|
19854
|
+
# Sample response that the agent can use. This could be based on applicable
|
|
19855
|
+
# instructions and ingested data from other systems.
|
|
19856
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse
|
|
19857
|
+
include Google::Apis::Core::Hashable
|
|
19858
|
+
|
|
19859
|
+
# Duplication check for the suggestion.
|
|
19860
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19861
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19862
|
+
attr_accessor :duplicate_check_result
|
|
19863
|
+
|
|
19864
|
+
# Optional. Sample response for Agent in text.
|
|
19865
|
+
# Corresponds to the JSON property `responseText`
|
|
19866
|
+
# @return [String]
|
|
19867
|
+
attr_accessor :response_text
|
|
19868
|
+
|
|
19869
|
+
# Sources for the suggestion.
|
|
19870
|
+
# Corresponds to the JSON property `sources`
|
|
19871
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19872
|
+
attr_accessor :sources
|
|
19873
|
+
|
|
19874
|
+
def initialize(**args)
|
|
19875
|
+
update!(**args)
|
|
19876
|
+
end
|
|
19877
|
+
|
|
19878
|
+
# Update properties of this object
|
|
19879
|
+
def update!(**args)
|
|
19880
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19881
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
|
19882
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19883
|
+
end
|
|
19884
|
+
end
|
|
19885
|
+
|
|
19886
|
+
# Sources for the suggestion.
|
|
19887
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources
|
|
19888
|
+
include Google::Apis::Core::Hashable
|
|
19889
|
+
|
|
19890
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
|
19891
|
+
# of the applicable_instructions field.
|
|
19892
|
+
# Corresponds to the JSON property `instructionIndexes`
|
|
19893
|
+
# @return [Array<Fixnum>]
|
|
19894
|
+
attr_accessor :instruction_indexes
|
|
19895
|
+
|
|
19896
|
+
def initialize(**args)
|
|
19897
|
+
update!(**args)
|
|
19898
|
+
end
|
|
19899
|
+
|
|
19900
|
+
# Update properties of this object
|
|
19901
|
+
def update!(**args)
|
|
19902
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
|
19903
|
+
end
|
|
19904
|
+
end
|
|
19905
|
+
|
|
18531
19906
|
# Represents a part of a message possibly annotated with an entity. The part can
|
|
18532
19907
|
# be an entity or purely a part of the message between two entities or message
|
|
18533
19908
|
# start/end.
|
|
@@ -19228,6 +20603,11 @@ module Google
|
|
|
19228
20603
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
|
19229
20604
|
include Google::Apis::Core::Hashable
|
|
19230
20605
|
|
|
20606
|
+
# Suggestion for coaching agents.
|
|
20607
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
|
20608
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestion]
|
|
20609
|
+
attr_accessor :agent_coaching_suggestion
|
|
20610
|
+
|
|
19231
20611
|
# Suggestion generated using free form generator.
|
|
19232
20612
|
# Corresponds to the JSON property `freeFormSuggestion`
|
|
19233
20613
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
|
@@ -19249,6 +20629,7 @@ module Google
|
|
|
19249
20629
|
|
|
19250
20630
|
# Update properties of this object
|
|
19251
20631
|
def update!(**args)
|
|
20632
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
|
19252
20633
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
|
19253
20634
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
|
19254
20635
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
|
@@ -22565,6 +23946,11 @@ module Google
|
|
|
22565
23946
|
# @return [String]
|
|
22566
23947
|
attr_accessor :action
|
|
22567
23948
|
|
|
23949
|
+
# Optional. The answer record associated with this tool call.
|
|
23950
|
+
# Corresponds to the JSON property `answerRecord`
|
|
23951
|
+
# @return [String]
|
|
23952
|
+
attr_accessor :answer_record
|
|
23953
|
+
|
|
22568
23954
|
# Output only. Create time of the tool call.
|
|
22569
23955
|
# Corresponds to the JSON property `createTime`
|
|
22570
23956
|
# @return [String]
|
|
@@ -22575,12 +23961,27 @@ module Google
|
|
|
22575
23961
|
# @return [Hash<String,Object>]
|
|
22576
23962
|
attr_accessor :input_parameters
|
|
22577
23963
|
|
|
23964
|
+
# Output only. State of the tool call
|
|
23965
|
+
# Corresponds to the JSON property `state`
|
|
23966
|
+
# @return [String]
|
|
23967
|
+
attr_accessor :state
|
|
23968
|
+
|
|
22578
23969
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
22579
23970
|
# tools/`.
|
|
22580
23971
|
# Corresponds to the JSON property `tool`
|
|
22581
23972
|
# @return [String]
|
|
22582
23973
|
attr_accessor :tool
|
|
22583
23974
|
|
|
23975
|
+
# Optional. A human readable description of the tool.
|
|
23976
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
23977
|
+
# @return [String]
|
|
23978
|
+
attr_accessor :tool_display_details
|
|
23979
|
+
|
|
23980
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
23981
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
23982
|
+
# @return [String]
|
|
23983
|
+
attr_accessor :tool_display_name
|
|
23984
|
+
|
|
22584
23985
|
def initialize(**args)
|
|
22585
23986
|
update!(**args)
|
|
22586
23987
|
end
|
|
@@ -22588,9 +23989,13 @@ module Google
|
|
|
22588
23989
|
# Update properties of this object
|
|
22589
23990
|
def update!(**args)
|
|
22590
23991
|
@action = args[:action] if args.key?(:action)
|
|
23992
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
22591
23993
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
22592
23994
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
23995
|
+
@state = args[:state] if args.key?(:state)
|
|
22593
23996
|
@tool = args[:tool] if args.key?(:tool)
|
|
23997
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
23998
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
22594
23999
|
end
|
|
22595
24000
|
end
|
|
22596
24001
|
|
|
@@ -22603,6 +24008,11 @@ module Google
|
|
|
22603
24008
|
# @return [String]
|
|
22604
24009
|
attr_accessor :action
|
|
22605
24010
|
|
|
24011
|
+
# Optional. The answer record associated with this tool call result.
|
|
24012
|
+
# Corresponds to the JSON property `answerRecord`
|
|
24013
|
+
# @return [String]
|
|
24014
|
+
attr_accessor :answer_record
|
|
24015
|
+
|
|
22606
24016
|
# Only populated if the response content is utf-8 encoded.
|
|
22607
24017
|
# Corresponds to the JSON property `content`
|
|
22608
24018
|
# @return [String]
|
|
@@ -22638,6 +24048,7 @@ module Google
|
|
|
22638
24048
|
# Update properties of this object
|
|
22639
24049
|
def update!(**args)
|
|
22640
24050
|
@action = args[:action] if args.key?(:action)
|
|
24051
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
22641
24052
|
@content = args[:content] if args.key?(:content)
|
|
22642
24053
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
22643
24054
|
@error = args[:error] if args.key?(:error)
|
|
@@ -23014,6 +24425,13 @@ module Google
|
|
|
23014
24425
|
# @return [Array<Google::Apis::DialogflowV2::GoogleLongrunningOperation>]
|
|
23015
24426
|
attr_accessor :operations
|
|
23016
24427
|
|
|
24428
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
24429
|
+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
|
|
24430
|
+
# when attempting to list all resources across all supported locations.
|
|
24431
|
+
# Corresponds to the JSON property `unreachable`
|
|
24432
|
+
# @return [Array<String>]
|
|
24433
|
+
attr_accessor :unreachable
|
|
24434
|
+
|
|
23017
24435
|
def initialize(**args)
|
|
23018
24436
|
update!(**args)
|
|
23019
24437
|
end
|
|
@@ -23022,6 +24440,7 @@ module Google
|
|
|
23022
24440
|
def update!(**args)
|
|
23023
24441
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
23024
24442
|
@operations = args[:operations] if args.key?(:operations)
|
|
24443
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
23025
24444
|
end
|
|
23026
24445
|
end
|
|
23027
24446
|
|