google-apis-dialogflow_v2 0.111.0 → 0.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8177,6 +8177,321 @@ module Google
|
|
|
8177
8177
|
end
|
|
8178
8178
|
end
|
|
8179
8179
|
|
|
8180
|
+
# Agent Coaching context that customer can configure.
|
|
8181
|
+
class GoogleCloudDialogflowV2AgentCoachingContext
|
|
8182
|
+
include Google::Apis::Core::Hashable
|
|
8183
|
+
|
|
8184
|
+
# Optional. Customized instructions for agent coaching.
|
|
8185
|
+
# Corresponds to the JSON property `instructions`
|
|
8186
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstruction>]
|
|
8187
|
+
attr_accessor :instructions
|
|
8188
|
+
|
|
8189
|
+
# Optional. Output language code.
|
|
8190
|
+
# Corresponds to the JSON property `outputLanguageCode`
|
|
8191
|
+
# @return [String]
|
|
8192
|
+
attr_accessor :output_language_code
|
|
8193
|
+
|
|
8194
|
+
# Optional. The overarching guidance for the agent coaching. This should be set
|
|
8195
|
+
# only for v1.5 and later versions.
|
|
8196
|
+
# Corresponds to the JSON property `overarchingGuidance`
|
|
8197
|
+
# @return [String]
|
|
8198
|
+
attr_accessor :overarching_guidance
|
|
8199
|
+
|
|
8200
|
+
# Optional. Version of the feature. If not set, default to latest version.
|
|
8201
|
+
# Current candidates are ["1.2"].
|
|
8202
|
+
# Corresponds to the JSON property `version`
|
|
8203
|
+
# @return [String]
|
|
8204
|
+
attr_accessor :version
|
|
8205
|
+
|
|
8206
|
+
def initialize(**args)
|
|
8207
|
+
update!(**args)
|
|
8208
|
+
end
|
|
8209
|
+
|
|
8210
|
+
# Update properties of this object
|
|
8211
|
+
def update!(**args)
|
|
8212
|
+
@instructions = args[:instructions] if args.key?(:instructions)
|
|
8213
|
+
@output_language_code = args[:output_language_code] if args.key?(:output_language_code)
|
|
8214
|
+
@overarching_guidance = args[:overarching_guidance] if args.key?(:overarching_guidance)
|
|
8215
|
+
@version = args[:version] if args.key?(:version)
|
|
8216
|
+
end
|
|
8217
|
+
end
|
|
8218
|
+
|
|
8219
|
+
# Agent Coaching instructions that customer can configure.
|
|
8220
|
+
class GoogleCloudDialogflowV2AgentCoachingInstruction
|
|
8221
|
+
include Google::Apis::Core::Hashable
|
|
8222
|
+
|
|
8223
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
|
8224
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
|
8225
|
+
# detection, agent_action can be empty
|
|
8226
|
+
# Corresponds to the JSON property `agentAction`
|
|
8227
|
+
# @return [String]
|
|
8228
|
+
attr_accessor :agent_action
|
|
8229
|
+
|
|
8230
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
|
8231
|
+
# to cancel an order". If the users want the instruction to be triggered
|
|
8232
|
+
# unconditionally, the condition can be empty.
|
|
8233
|
+
# Corresponds to the JSON property `condition`
|
|
8234
|
+
# @return [String]
|
|
8235
|
+
attr_accessor :condition
|
|
8236
|
+
|
|
8237
|
+
# Optional. The detailed description of this instruction.
|
|
8238
|
+
# Corresponds to the JSON property `displayDetails`
|
|
8239
|
+
# @return [String]
|
|
8240
|
+
attr_accessor :display_details
|
|
8241
|
+
|
|
8242
|
+
# Optional. Display name for the instruction.
|
|
8243
|
+
# Corresponds to the JSON property `displayName`
|
|
8244
|
+
# @return [String]
|
|
8245
|
+
attr_accessor :display_name
|
|
8246
|
+
|
|
8247
|
+
# Duplication check for the suggestion.
|
|
8248
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
8249
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult]
|
|
8250
|
+
attr_accessor :duplicate_check_result
|
|
8251
|
+
|
|
8252
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
|
8253
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
|
8254
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
|
8255
|
+
# Corresponds to the JSON property `systemAction`
|
|
8256
|
+
# @return [String]
|
|
8257
|
+
attr_accessor :system_action
|
|
8258
|
+
|
|
8259
|
+
def initialize(**args)
|
|
8260
|
+
update!(**args)
|
|
8261
|
+
end
|
|
8262
|
+
|
|
8263
|
+
# Update properties of this object
|
|
8264
|
+
def update!(**args)
|
|
8265
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
8266
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
8267
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
|
8268
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
8269
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
8270
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
|
8271
|
+
end
|
|
8272
|
+
end
|
|
8273
|
+
|
|
8274
|
+
# Duplication check for the suggestion.
|
|
8275
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult
|
|
8276
|
+
include Google::Apis::Core::Hashable
|
|
8277
|
+
|
|
8278
|
+
# Output only. The duplicate suggestions.
|
|
8279
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
8280
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
|
8281
|
+
attr_accessor :duplicate_suggestions
|
|
8282
|
+
|
|
8283
|
+
def initialize(**args)
|
|
8284
|
+
update!(**args)
|
|
8285
|
+
end
|
|
8286
|
+
|
|
8287
|
+
# Update properties of this object
|
|
8288
|
+
def update!(**args)
|
|
8289
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
8290
|
+
end
|
|
8291
|
+
end
|
|
8292
|
+
|
|
8293
|
+
# The duplicate suggestion details.
|
|
8294
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
|
8295
|
+
include Google::Apis::Core::Hashable
|
|
8296
|
+
|
|
8297
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
8298
|
+
# Corresponds to the JSON property `answerRecord`
|
|
8299
|
+
# @return [String]
|
|
8300
|
+
attr_accessor :answer_record
|
|
8301
|
+
|
|
8302
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
8303
|
+
# Corresponds to the JSON property `similarityScore`
|
|
8304
|
+
# @return [Float]
|
|
8305
|
+
attr_accessor :similarity_score
|
|
8306
|
+
|
|
8307
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
8308
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
8309
|
+
# @return [Fixnum]
|
|
8310
|
+
attr_accessor :suggestion_index
|
|
8311
|
+
|
|
8312
|
+
def initialize(**args)
|
|
8313
|
+
update!(**args)
|
|
8314
|
+
end
|
|
8315
|
+
|
|
8316
|
+
# Update properties of this object
|
|
8317
|
+
def update!(**args)
|
|
8318
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
8319
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
8320
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
8321
|
+
end
|
|
8322
|
+
end
|
|
8323
|
+
|
|
8324
|
+
# Suggestion for coaching agents.
|
|
8325
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestion
|
|
8326
|
+
include Google::Apis::Core::Hashable
|
|
8327
|
+
|
|
8328
|
+
# Optional. Suggested actions for the agent to take.
|
|
8329
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
|
8330
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion>]
|
|
8331
|
+
attr_accessor :agent_action_suggestions
|
|
8332
|
+
|
|
8333
|
+
# Optional. Instructions applicable based on the current context.
|
|
8334
|
+
# Corresponds to the JSON property `applicableInstructions`
|
|
8335
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstruction>]
|
|
8336
|
+
attr_accessor :applicable_instructions
|
|
8337
|
+
|
|
8338
|
+
# Optional. Sample response for the Agent.
|
|
8339
|
+
# Corresponds to the JSON property `sampleResponses`
|
|
8340
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse>]
|
|
8341
|
+
attr_accessor :sample_responses
|
|
8342
|
+
|
|
8343
|
+
def initialize(**args)
|
|
8344
|
+
update!(**args)
|
|
8345
|
+
end
|
|
8346
|
+
|
|
8347
|
+
# Update properties of this object
|
|
8348
|
+
def update!(**args)
|
|
8349
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
|
8350
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
|
8351
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
|
8352
|
+
end
|
|
8353
|
+
end
|
|
8354
|
+
|
|
8355
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
|
8356
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion
|
|
8357
|
+
include Google::Apis::Core::Hashable
|
|
8358
|
+
|
|
8359
|
+
# Optional. The suggested action for the agent.
|
|
8360
|
+
# Corresponds to the JSON property `agentAction`
|
|
8361
|
+
# @return [String]
|
|
8362
|
+
attr_accessor :agent_action
|
|
8363
|
+
|
|
8364
|
+
# Duplication check for the suggestion.
|
|
8365
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
8366
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
|
8367
|
+
attr_accessor :duplicate_check_result
|
|
8368
|
+
|
|
8369
|
+
# Sources for the suggestion.
|
|
8370
|
+
# Corresponds to the JSON property `sources`
|
|
8371
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
8372
|
+
attr_accessor :sources
|
|
8373
|
+
|
|
8374
|
+
def initialize(**args)
|
|
8375
|
+
update!(**args)
|
|
8376
|
+
end
|
|
8377
|
+
|
|
8378
|
+
# Update properties of this object
|
|
8379
|
+
def update!(**args)
|
|
8380
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
8381
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
8382
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
8383
|
+
end
|
|
8384
|
+
end
|
|
8385
|
+
|
|
8386
|
+
# Duplication check for the suggestion.
|
|
8387
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult
|
|
8388
|
+
include Google::Apis::Core::Hashable
|
|
8389
|
+
|
|
8390
|
+
# Output only. The duplicate suggestions.
|
|
8391
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
8392
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
|
8393
|
+
attr_accessor :duplicate_suggestions
|
|
8394
|
+
|
|
8395
|
+
def initialize(**args)
|
|
8396
|
+
update!(**args)
|
|
8397
|
+
end
|
|
8398
|
+
|
|
8399
|
+
# Update properties of this object
|
|
8400
|
+
def update!(**args)
|
|
8401
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
8402
|
+
end
|
|
8403
|
+
end
|
|
8404
|
+
|
|
8405
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
|
8406
|
+
# as they are identifiers for duplicate suggestions.
|
|
8407
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
|
8408
|
+
include Google::Apis::Core::Hashable
|
|
8409
|
+
|
|
8410
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
8411
|
+
# Corresponds to the JSON property `answerRecord`
|
|
8412
|
+
# @return [String]
|
|
8413
|
+
attr_accessor :answer_record
|
|
8414
|
+
|
|
8415
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
8416
|
+
# Corresponds to the JSON property `similarityScore`
|
|
8417
|
+
# @return [Float]
|
|
8418
|
+
attr_accessor :similarity_score
|
|
8419
|
+
|
|
8420
|
+
# Sources for the suggestion.
|
|
8421
|
+
# Corresponds to the JSON property `sources`
|
|
8422
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
8423
|
+
attr_accessor :sources
|
|
8424
|
+
|
|
8425
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
8426
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
8427
|
+
# @return [Fixnum]
|
|
8428
|
+
attr_accessor :suggestion_index
|
|
8429
|
+
|
|
8430
|
+
def initialize(**args)
|
|
8431
|
+
update!(**args)
|
|
8432
|
+
end
|
|
8433
|
+
|
|
8434
|
+
# Update properties of this object
|
|
8435
|
+
def update!(**args)
|
|
8436
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
8437
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
8438
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
8439
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
8440
|
+
end
|
|
8441
|
+
end
|
|
8442
|
+
|
|
8443
|
+
# Sample response that the agent can use. This could be based on applicable
|
|
8444
|
+
# instructions and ingested data from other systems.
|
|
8445
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse
|
|
8446
|
+
include Google::Apis::Core::Hashable
|
|
8447
|
+
|
|
8448
|
+
# Duplication check for the suggestion.
|
|
8449
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
8450
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
|
8451
|
+
attr_accessor :duplicate_check_result
|
|
8452
|
+
|
|
8453
|
+
# Optional. Sample response for Agent in text.
|
|
8454
|
+
# Corresponds to the JSON property `responseText`
|
|
8455
|
+
# @return [String]
|
|
8456
|
+
attr_accessor :response_text
|
|
8457
|
+
|
|
8458
|
+
# Sources for the suggestion.
|
|
8459
|
+
# Corresponds to the JSON property `sources`
|
|
8460
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
8461
|
+
attr_accessor :sources
|
|
8462
|
+
|
|
8463
|
+
def initialize(**args)
|
|
8464
|
+
update!(**args)
|
|
8465
|
+
end
|
|
8466
|
+
|
|
8467
|
+
# Update properties of this object
|
|
8468
|
+
def update!(**args)
|
|
8469
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
8470
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
|
8471
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
8472
|
+
end
|
|
8473
|
+
end
|
|
8474
|
+
|
|
8475
|
+
# Sources for the suggestion.
|
|
8476
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSources
|
|
8477
|
+
include Google::Apis::Core::Hashable
|
|
8478
|
+
|
|
8479
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
|
8480
|
+
# of the applicable_instructions field.
|
|
8481
|
+
# Corresponds to the JSON property `instructionIndexes`
|
|
8482
|
+
# @return [Array<Fixnum>]
|
|
8483
|
+
attr_accessor :instruction_indexes
|
|
8484
|
+
|
|
8485
|
+
def initialize(**args)
|
|
8486
|
+
update!(**args)
|
|
8487
|
+
end
|
|
8488
|
+
|
|
8489
|
+
# Update properties of this object
|
|
8490
|
+
def update!(**args)
|
|
8491
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
|
8492
|
+
end
|
|
8493
|
+
end
|
|
8494
|
+
|
|
8180
8495
|
# The request message for Participants.AnalyzeContent.
|
|
8181
8496
|
class GoogleCloudDialogflowV2AnalyzeContentRequest
|
|
8182
8497
|
include Google::Apis::Core::Hashable
|
|
@@ -8226,7 +8541,7 @@ module Google
|
|
|
8226
8541
|
# @return [String]
|
|
8227
8542
|
attr_accessor :request_id
|
|
8228
8543
|
|
|
8229
|
-
# Represents the
|
|
8544
|
+
# Represents the action to take for a tool call that requires confirmation.
|
|
8230
8545
|
# Corresponds to the JSON property `suggestionInput`
|
|
8231
8546
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput]
|
|
8232
8547
|
attr_accessor :suggestion_input
|
|
@@ -9266,6 +9581,13 @@ module Google
|
|
|
9266
9581
|
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
|
9267
9582
|
include Google::Apis::Core::Hashable
|
|
9268
9583
|
|
|
9584
|
+
# If the context content was generated from a tool call, specify the answer
|
|
9585
|
+
# record associated with the tool call. Format: `projects//locations//
|
|
9586
|
+
# answerRecords/`.
|
|
9587
|
+
# Corresponds to the JSON property `answerRecord`
|
|
9588
|
+
# @return [String]
|
|
9589
|
+
attr_accessor :answer_record
|
|
9590
|
+
|
|
9269
9591
|
# Required. The information ingested in a single request.
|
|
9270
9592
|
# Corresponds to the JSON property `content`
|
|
9271
9593
|
# @return [String]
|
|
@@ -9288,6 +9610,7 @@ module Google
|
|
|
9288
9610
|
|
|
9289
9611
|
# Update properties of this object
|
|
9290
9612
|
def update!(**args)
|
|
9613
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
9291
9614
|
@content = args[:content] if args.key?(:content)
|
|
9292
9615
|
@content_format = args[:content_format] if args.key?(:content_format)
|
|
9293
9616
|
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
|
@@ -10750,6 +11073,39 @@ module Google
|
|
|
10750
11073
|
end
|
|
10751
11074
|
end
|
|
10752
11075
|
|
|
11076
|
+
# A common evalaution pipeline status.
|
|
11077
|
+
class GoogleCloudDialogflowV2EvaluationStatus
|
|
11078
|
+
include Google::Apis::Core::Hashable
|
|
11079
|
+
|
|
11080
|
+
# Output only. If the value is `false`, it means the evaluation is still in
|
|
11081
|
+
# progress. If `true`, the operation is completed, and either `error` or `
|
|
11082
|
+
# response` is available.
|
|
11083
|
+
# Corresponds to the JSON property `done`
|
|
11084
|
+
# @return [Boolean]
|
|
11085
|
+
attr_accessor :done
|
|
11086
|
+
alias_method :done?, :done
|
|
11087
|
+
|
|
11088
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
11089
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
11090
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
11091
|
+
# data: error code, error message, and error details. You can find out more
|
|
11092
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
11093
|
+
# //cloud.google.com/apis/design/errors).
|
|
11094
|
+
# Corresponds to the JSON property `pipelineStatus`
|
|
11095
|
+
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
|
11096
|
+
attr_accessor :pipeline_status
|
|
11097
|
+
|
|
11098
|
+
def initialize(**args)
|
|
11099
|
+
update!(**args)
|
|
11100
|
+
end
|
|
11101
|
+
|
|
11102
|
+
# Update properties of this object
|
|
11103
|
+
def update!(**args)
|
|
11104
|
+
@done = args[:done] if args.key?(:done)
|
|
11105
|
+
@pipeline_status = args[:pipeline_status] if args.key?(:pipeline_status)
|
|
11106
|
+
end
|
|
11107
|
+
end
|
|
11108
|
+
|
|
10753
11109
|
# Events allow for matching intents by event name instead of the natural
|
|
10754
11110
|
# language input. For instance, input `` can trigger a personalized welcome
|
|
10755
11111
|
# response. The parameter `name` may be used by the agent in the response: `"
|
|
@@ -11508,6 +11864,11 @@ module Google
|
|
|
11508
11864
|
class GoogleCloudDialogflowV2Generator
|
|
11509
11865
|
include Google::Apis::Core::Hashable
|
|
11510
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
|
+
|
|
11511
11872
|
# Output only. Creation time of this generator.
|
|
11512
11873
|
# Corresponds to the JSON property `createTime`
|
|
11513
11874
|
# @return [String]
|
|
@@ -11542,6 +11903,11 @@ module Google
|
|
|
11542
11903
|
# @return [String]
|
|
11543
11904
|
attr_accessor :published_model
|
|
11544
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
|
+
|
|
11545
11911
|
# Summarization context that customer can configure.
|
|
11546
11912
|
# Corresponds to the JSON property `summarizationContext`
|
|
11547
11913
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext]
|
|
@@ -11570,12 +11936,14 @@ module Google
|
|
|
11570
11936
|
|
|
11571
11937
|
# Update properties of this object
|
|
11572
11938
|
def update!(**args)
|
|
11939
|
+
@agent_coaching_context = args[:agent_coaching_context] if args.key?(:agent_coaching_context)
|
|
11573
11940
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
11574
11941
|
@description = args[:description] if args.key?(:description)
|
|
11575
11942
|
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
|
11576
11943
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
|
11577
11944
|
@name = args[:name] if args.key?(:name)
|
|
11578
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)
|
|
11579
11947
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
|
11580
11948
|
@tools = args[:tools] if args.key?(:tools)
|
|
11581
11949
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
|
@@ -11583,24 +11951,66 @@ module Google
|
|
|
11583
11951
|
end
|
|
11584
11952
|
end
|
|
11585
11953
|
|
|
11586
|
-
#
|
|
11587
|
-
class
|
|
11954
|
+
# Represents evaluation result of a generator.
|
|
11955
|
+
class GoogleCloudDialogflowV2GeneratorEvaluation
|
|
11588
11956
|
include Google::Apis::Core::Hashable
|
|
11589
11957
|
|
|
11590
|
-
#
|
|
11591
|
-
# Corresponds to the JSON property `
|
|
11592
|
-
# @return [
|
|
11593
|
-
attr_accessor :
|
|
11958
|
+
# Output only. Completion time of this generator evaluation.
|
|
11959
|
+
# Corresponds to the JSON property `completeTime`
|
|
11960
|
+
# @return [String]
|
|
11961
|
+
attr_accessor :complete_time
|
|
11594
11962
|
|
|
11595
|
-
#
|
|
11596
|
-
# Corresponds to the JSON property `
|
|
11597
|
-
# @return [
|
|
11598
|
-
attr_accessor :
|
|
11963
|
+
# Output only. Creation time of this generator evaluation.
|
|
11964
|
+
# Corresponds to the JSON property `createTime`
|
|
11965
|
+
# @return [String]
|
|
11966
|
+
attr_accessor :create_time
|
|
11599
11967
|
|
|
11600
|
-
# Optional.
|
|
11601
|
-
# Corresponds to the JSON property `
|
|
11602
|
-
# @return [
|
|
11603
|
-
attr_accessor :
|
|
11968
|
+
# Optional. The display name of the generator evaluation. At most 64 bytes long.
|
|
11969
|
+
# Corresponds to the JSON property `displayName`
|
|
11970
|
+
# @return [String]
|
|
11971
|
+
attr_accessor :display_name
|
|
11972
|
+
|
|
11973
|
+
# A common evalaution pipeline status.
|
|
11974
|
+
# Corresponds to the JSON property `evaluationStatus`
|
|
11975
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationStatus]
|
|
11976
|
+
attr_accessor :evaluation_status
|
|
11977
|
+
|
|
11978
|
+
# Generator evaluation input config.
|
|
11979
|
+
# Corresponds to the JSON property `generatorEvaluationConfig`
|
|
11980
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluationConfig]
|
|
11981
|
+
attr_accessor :generator_evaluation_config
|
|
11982
|
+
|
|
11983
|
+
# LLM generator.
|
|
11984
|
+
# Corresponds to the JSON property `initialGenerator`
|
|
11985
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
|
|
11986
|
+
attr_accessor :initial_generator
|
|
11987
|
+
|
|
11988
|
+
# Output only. Identifier. The resource name of the evaluation. Format: `
|
|
11989
|
+
# projects//locations//generators// evaluations/`
|
|
11990
|
+
# Corresponds to the JSON property `name`
|
|
11991
|
+
# @return [String]
|
|
11992
|
+
attr_accessor :name
|
|
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
|
+
|
|
12010
|
+
# Evaluation metrics for summarization generator.
|
|
12011
|
+
# Corresponds to the JSON property `summarizationMetrics`
|
|
12012
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetrics]
|
|
12013
|
+
attr_accessor :summarization_metrics
|
|
11604
12014
|
|
|
11605
12015
|
def initialize(**args)
|
|
11606
12016
|
update!(**args)
|
|
@@ -11608,12 +12018,249 @@ module Google
|
|
|
11608
12018
|
|
|
11609
12019
|
# Update properties of this object
|
|
11610
12020
|
def update!(**args)
|
|
11611
|
-
@
|
|
11612
|
-
@
|
|
11613
|
-
@
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
12021
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
|
12022
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
12023
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
12024
|
+
@evaluation_status = args[:evaluation_status] if args.key?(:evaluation_status)
|
|
12025
|
+
@generator_evaluation_config = args[:generator_evaluation_config] if args.key?(:generator_evaluation_config)
|
|
12026
|
+
@initial_generator = args[:initial_generator] if args.key?(:initial_generator)
|
|
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)
|
|
12030
|
+
@summarization_metrics = args[:summarization_metrics] if args.key?(:summarization_metrics)
|
|
12031
|
+
end
|
|
12032
|
+
end
|
|
12033
|
+
|
|
12034
|
+
# Generator evaluation input config.
|
|
12035
|
+
class GoogleCloudDialogflowV2GeneratorEvaluationConfig
|
|
12036
|
+
include Google::Apis::Core::Hashable
|
|
12037
|
+
|
|
12038
|
+
# Input data config details
|
|
12039
|
+
# Corresponds to the JSON property `inputDataConfig`
|
|
12040
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluationConfigInputDataConfig]
|
|
12041
|
+
attr_accessor :input_data_config
|
|
12042
|
+
|
|
12043
|
+
# Required. The output Cloud Storage bucket path to store eval files, e.g.
|
|
12044
|
+
# per_summary_accuracy_score report. This path is provided by customer and files
|
|
12045
|
+
# stored in it are visible to customer, no internal data should be stored in
|
|
12046
|
+
# this path.
|
|
12047
|
+
# Corresponds to the JSON property `outputGcsBucketPath`
|
|
12048
|
+
# @return [String]
|
|
12049
|
+
attr_accessor :output_gcs_bucket_path
|
|
12050
|
+
|
|
12051
|
+
# Evaluation configs for summarization generator.
|
|
12052
|
+
# Corresponds to the JSON property `summarizationConfig`
|
|
12053
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluationConfigSummarizationConfig]
|
|
12054
|
+
attr_accessor :summarization_config
|
|
12055
|
+
|
|
12056
|
+
def initialize(**args)
|
|
12057
|
+
update!(**args)
|
|
12058
|
+
end
|
|
12059
|
+
|
|
12060
|
+
# Update properties of this object
|
|
12061
|
+
def update!(**args)
|
|
12062
|
+
@input_data_config = args[:input_data_config] if args.key?(:input_data_config)
|
|
12063
|
+
@output_gcs_bucket_path = args[:output_gcs_bucket_path] if args.key?(:output_gcs_bucket_path)
|
|
12064
|
+
@summarization_config = args[:summarization_config] if args.key?(:summarization_config)
|
|
12065
|
+
end
|
|
12066
|
+
end
|
|
12067
|
+
|
|
12068
|
+
# The distinctive configs for Agent Assist conversations as the conversation
|
|
12069
|
+
# source.
|
|
12070
|
+
class GoogleCloudDialogflowV2GeneratorEvaluationConfigAgentAssistInputDataConfig
|
|
12071
|
+
include Google::Apis::Core::Hashable
|
|
12072
|
+
|
|
12073
|
+
# Required. The end of the time range for conversations to be evaluated. Only
|
|
12074
|
+
# conversations ended at or before this timestamp will be sampled.
|
|
12075
|
+
# Corresponds to the JSON property `endTime`
|
|
12076
|
+
# @return [String]
|
|
12077
|
+
attr_accessor :end_time
|
|
12078
|
+
|
|
12079
|
+
# Required. The start of the time range for conversations to be evaluated. Only
|
|
12080
|
+
# conversations created at or after this timestamp will be sampled.
|
|
12081
|
+
# Corresponds to the JSON property `startTime`
|
|
12082
|
+
# @return [String]
|
|
12083
|
+
attr_accessor :start_time
|
|
12084
|
+
|
|
12085
|
+
def initialize(**args)
|
|
12086
|
+
update!(**args)
|
|
12087
|
+
end
|
|
12088
|
+
|
|
12089
|
+
# Update properties of this object
|
|
12090
|
+
def update!(**args)
|
|
12091
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
12092
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
12093
|
+
end
|
|
12094
|
+
end
|
|
12095
|
+
|
|
12096
|
+
# The distinctive configs for dataset as the conversation source.
|
|
12097
|
+
class GoogleCloudDialogflowV2GeneratorEvaluationConfigDatasetInputDataConfig
|
|
12098
|
+
include Google::Apis::Core::Hashable
|
|
12099
|
+
|
|
12100
|
+
# Required. The identifier of the dataset to be evaluated. Format: `projects//
|
|
12101
|
+
# locations//datasets/`.
|
|
12102
|
+
# Corresponds to the JSON property `dataset`
|
|
12103
|
+
# @return [String]
|
|
12104
|
+
attr_accessor :dataset
|
|
12105
|
+
|
|
12106
|
+
def initialize(**args)
|
|
12107
|
+
update!(**args)
|
|
12108
|
+
end
|
|
12109
|
+
|
|
12110
|
+
# Update properties of this object
|
|
12111
|
+
def update!(**args)
|
|
12112
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
|
12113
|
+
end
|
|
12114
|
+
end
|
|
12115
|
+
|
|
12116
|
+
# Input data config details
|
|
12117
|
+
class GoogleCloudDialogflowV2GeneratorEvaluationConfigInputDataConfig
|
|
12118
|
+
include Google::Apis::Core::Hashable
|
|
12119
|
+
|
|
12120
|
+
# The distinctive configs for Agent Assist conversations as the conversation
|
|
12121
|
+
# source.
|
|
12122
|
+
# Corresponds to the JSON property `agentAssistInputDataConfig`
|
|
12123
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluationConfigAgentAssistInputDataConfig]
|
|
12124
|
+
attr_accessor :agent_assist_input_data_config
|
|
12125
|
+
|
|
12126
|
+
# The distinctive configs for dataset as the conversation source.
|
|
12127
|
+
# Corresponds to the JSON property `datasetInputDataConfig`
|
|
12128
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluationConfigDatasetInputDataConfig]
|
|
12129
|
+
attr_accessor :dataset_input_data_config
|
|
12130
|
+
|
|
12131
|
+
# Optional. The end timestamp to fetch conversation data.
|
|
12132
|
+
# Corresponds to the JSON property `endTime`
|
|
12133
|
+
# @return [String]
|
|
12134
|
+
attr_accessor :end_time
|
|
12135
|
+
|
|
12136
|
+
# Required. The source type of input data.
|
|
12137
|
+
# Corresponds to the JSON property `inputDataSourceType`
|
|
12138
|
+
# @return [String]
|
|
12139
|
+
attr_accessor :input_data_source_type
|
|
12140
|
+
|
|
12141
|
+
# Optional. Whether the summary generation is allowed when the pre-existing
|
|
12142
|
+
# qualified summaries are insufficient to cover the sample size.
|
|
12143
|
+
# Corresponds to the JSON property `isSummaryGenerationAllowed`
|
|
12144
|
+
# @return [Boolean]
|
|
12145
|
+
attr_accessor :is_summary_generation_allowed
|
|
12146
|
+
alias_method :is_summary_generation_allowed?, :is_summary_generation_allowed
|
|
12147
|
+
|
|
12148
|
+
# Optional. Desired number of conversation-summary pairs to be evaluated.
|
|
12149
|
+
# Corresponds to the JSON property `sampleSize`
|
|
12150
|
+
# @return [Fixnum]
|
|
12151
|
+
attr_accessor :sample_size
|
|
12152
|
+
|
|
12153
|
+
# Optional. The start timestamp to fetch conversation data.
|
|
12154
|
+
# Corresponds to the JSON property `startTime`
|
|
12155
|
+
# @return [String]
|
|
12156
|
+
attr_accessor :start_time
|
|
12157
|
+
|
|
12158
|
+
# Optional. Option to control whether summaries are generated during evaluation.
|
|
12159
|
+
# Corresponds to the JSON property `summaryGenerationOption`
|
|
12160
|
+
# @return [String]
|
|
12161
|
+
attr_accessor :summary_generation_option
|
|
12162
|
+
|
|
12163
|
+
def initialize(**args)
|
|
12164
|
+
update!(**args)
|
|
12165
|
+
end
|
|
12166
|
+
|
|
12167
|
+
# Update properties of this object
|
|
12168
|
+
def update!(**args)
|
|
12169
|
+
@agent_assist_input_data_config = args[:agent_assist_input_data_config] if args.key?(:agent_assist_input_data_config)
|
|
12170
|
+
@dataset_input_data_config = args[:dataset_input_data_config] if args.key?(:dataset_input_data_config)
|
|
12171
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
12172
|
+
@input_data_source_type = args[:input_data_source_type] if args.key?(:input_data_source_type)
|
|
12173
|
+
@is_summary_generation_allowed = args[:is_summary_generation_allowed] if args.key?(:is_summary_generation_allowed)
|
|
12174
|
+
@sample_size = args[:sample_size] if args.key?(:sample_size)
|
|
12175
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
12176
|
+
@summary_generation_option = args[:summary_generation_option] if args.key?(:summary_generation_option)
|
|
12177
|
+
end
|
|
12178
|
+
end
|
|
12179
|
+
|
|
12180
|
+
# Evaluation configs for summarization generator.
|
|
12181
|
+
class GoogleCloudDialogflowV2GeneratorEvaluationConfigSummarizationConfig
|
|
12182
|
+
include Google::Apis::Core::Hashable
|
|
12183
|
+
|
|
12184
|
+
# Optional. Version for summarization accuracy. This will determine the prompt
|
|
12185
|
+
# and model used at backend.
|
|
12186
|
+
# Corresponds to the JSON property `accuracyEvaluationVersion`
|
|
12187
|
+
# @return [String]
|
|
12188
|
+
attr_accessor :accuracy_evaluation_version
|
|
12189
|
+
|
|
12190
|
+
# Optional. Version for summarization completeness. This will determine the
|
|
12191
|
+
# prompt and model used at backend.
|
|
12192
|
+
# Corresponds to the JSON property `completenessEvaluationVersion`
|
|
12193
|
+
# @return [String]
|
|
12194
|
+
attr_accessor :completeness_evaluation_version
|
|
12195
|
+
|
|
12196
|
+
# Optional. Enable accuracy evaluation.
|
|
12197
|
+
# Corresponds to the JSON property `enableAccuracyEvaluation`
|
|
12198
|
+
# @return [Boolean]
|
|
12199
|
+
attr_accessor :enable_accuracy_evaluation
|
|
12200
|
+
alias_method :enable_accuracy_evaluation?, :enable_accuracy_evaluation
|
|
12201
|
+
|
|
12202
|
+
# Optional. Enable completeness evaluation.
|
|
12203
|
+
# Corresponds to the JSON property `enableCompletenessEvaluation`
|
|
12204
|
+
# @return [Boolean]
|
|
12205
|
+
attr_accessor :enable_completeness_evaluation
|
|
12206
|
+
alias_method :enable_completeness_evaluation?, :enable_completeness_evaluation
|
|
12207
|
+
|
|
12208
|
+
# Output only. Version for summarization evaluation.
|
|
12209
|
+
# Corresponds to the JSON property `evaluatorVersion`
|
|
12210
|
+
# @return [String]
|
|
12211
|
+
attr_accessor :evaluator_version
|
|
12212
|
+
|
|
12213
|
+
def initialize(**args)
|
|
12214
|
+
update!(**args)
|
|
12215
|
+
end
|
|
12216
|
+
|
|
12217
|
+
# Update properties of this object
|
|
12218
|
+
def update!(**args)
|
|
12219
|
+
@accuracy_evaluation_version = args[:accuracy_evaluation_version] if args.key?(:accuracy_evaluation_version)
|
|
12220
|
+
@completeness_evaluation_version = args[:completeness_evaluation_version] if args.key?(:completeness_evaluation_version)
|
|
12221
|
+
@enable_accuracy_evaluation = args[:enable_accuracy_evaluation] if args.key?(:enable_accuracy_evaluation)
|
|
12222
|
+
@enable_completeness_evaluation = args[:enable_completeness_evaluation] if args.key?(:enable_completeness_evaluation)
|
|
12223
|
+
@evaluator_version = args[:evaluator_version] if args.key?(:evaluator_version)
|
|
12224
|
+
end
|
|
12225
|
+
end
|
|
12226
|
+
|
|
12227
|
+
# Suggestion generated using a Generator.
|
|
12228
|
+
class GoogleCloudDialogflowV2GeneratorSuggestion
|
|
12229
|
+
include Google::Apis::Core::Hashable
|
|
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
|
+
|
|
12236
|
+
# Suggestion generated using free form generator.
|
|
12237
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
|
12238
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion]
|
|
12239
|
+
attr_accessor :free_form_suggestion
|
|
12240
|
+
|
|
12241
|
+
# Suggested summary of the conversation.
|
|
12242
|
+
# Corresponds to the JSON property `summarySuggestion`
|
|
12243
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion]
|
|
12244
|
+
attr_accessor :summary_suggestion
|
|
12245
|
+
|
|
12246
|
+
# Optional. List of request and response for tool calls executed.
|
|
12247
|
+
# Corresponds to the JSON property `toolCallInfo`
|
|
12248
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo>]
|
|
12249
|
+
attr_accessor :tool_call_info
|
|
12250
|
+
|
|
12251
|
+
def initialize(**args)
|
|
12252
|
+
update!(**args)
|
|
12253
|
+
end
|
|
12254
|
+
|
|
12255
|
+
# Update properties of this object
|
|
12256
|
+
def update!(**args)
|
|
12257
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
|
12258
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
|
12259
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
|
12260
|
+
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
|
12261
|
+
end
|
|
12262
|
+
end
|
|
12263
|
+
|
|
11617
12264
|
# Request and response for a tool call.
|
|
11618
12265
|
class GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo
|
|
11619
12266
|
include Google::Apis::Core::Hashable
|
|
@@ -11781,6 +12428,12 @@ module Google
|
|
|
11781
12428
|
attr_accessor :disable_high_latency_features_sync_delivery
|
|
11782
12429
|
alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
|
|
11783
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
|
+
|
|
11784
12437
|
# Configuration of different suggestion features. One feature can have only one
|
|
11785
12438
|
# config.
|
|
11786
12439
|
# Corresponds to the JSON property `featureConfigs`
|
|
@@ -11806,6 +12459,23 @@ module Google
|
|
|
11806
12459
|
attr_accessor :group_suggestion_responses
|
|
11807
12460
|
alias_method :group_suggestion_responses?, :group_suggestion_responses
|
|
11808
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
|
+
|
|
11809
12479
|
def initialize(**args)
|
|
11810
12480
|
update!(**args)
|
|
11811
12481
|
end
|
|
@@ -11813,9 +12483,12 @@ module Google
|
|
|
11813
12483
|
# Update properties of this object
|
|
11814
12484
|
def update!(**args)
|
|
11815
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)
|
|
11816
12487
|
@feature_configs = args[:feature_configs] if args.key?(:feature_configs)
|
|
11817
12488
|
@generators = args[:generators] if args.key?(:generators)
|
|
11818
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)
|
|
11819
12492
|
end
|
|
11820
12493
|
end
|
|
11821
12494
|
|
|
@@ -11871,11 +12544,27 @@ module Google
|
|
|
11871
12544
|
attr_accessor :enable_query_suggestion_when_no_answer
|
|
11872
12545
|
alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
|
|
11873
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
|
+
|
|
11874
12558
|
# Config for suggestion query.
|
|
11875
12559
|
# Corresponds to the JSON property `queryConfig`
|
|
11876
12560
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig]
|
|
11877
12561
|
attr_accessor :query_config
|
|
11878
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
|
+
|
|
11879
12568
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
|
11880
12569
|
# number of results to return for that type. Multiple `Feature` objects can be
|
|
11881
12570
|
# specified in the `features` list.
|
|
@@ -11901,7 +12590,9 @@ module Google
|
|
|
11901
12590
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
|
11902
12591
|
@enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
|
|
11903
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)
|
|
11904
12594
|
@query_config = args[:query_config] if args.key?(:query_config)
|
|
12595
|
+
@rai_settings = args[:rai_settings] if args.key?(:rai_settings)
|
|
11905
12596
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
|
11906
12597
|
@suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
|
|
11907
12598
|
end
|
|
@@ -14584,6 +15275,32 @@ module Google
|
|
|
14584
15275
|
end
|
|
14585
15276
|
end
|
|
14586
15277
|
|
|
15278
|
+
# Response of ListGeneratorEvaluations.
|
|
15279
|
+
class GoogleCloudDialogflowV2ListGeneratorEvaluationsResponse
|
|
15280
|
+
include Google::Apis::Core::Hashable
|
|
15281
|
+
|
|
15282
|
+
# The list of evaluations to return.
|
|
15283
|
+
# Corresponds to the JSON property `generatorEvaluations`
|
|
15284
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorEvaluation>]
|
|
15285
|
+
attr_accessor :generator_evaluations
|
|
15286
|
+
|
|
15287
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
|
15288
|
+
# results in the list.
|
|
15289
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
15290
|
+
# @return [String]
|
|
15291
|
+
attr_accessor :next_page_token
|
|
15292
|
+
|
|
15293
|
+
def initialize(**args)
|
|
15294
|
+
update!(**args)
|
|
15295
|
+
end
|
|
15296
|
+
|
|
15297
|
+
# Update properties of this object
|
|
15298
|
+
def update!(**args)
|
|
15299
|
+
@generator_evaluations = args[:generator_evaluations] if args.key?(:generator_evaluations)
|
|
15300
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
15301
|
+
end
|
|
15302
|
+
end
|
|
15303
|
+
|
|
14587
15304
|
# Response of ListGenerators.
|
|
14588
15305
|
class GoogleCloudDialogflowV2ListGeneratorsResponse
|
|
14589
15306
|
include Google::Apis::Core::Hashable
|
|
@@ -15452,6 +16169,50 @@ module Google
|
|
|
15452
16169
|
end
|
|
15453
16170
|
end
|
|
15454
16171
|
|
|
16172
|
+
# Settings for Responsible AI checks.
|
|
16173
|
+
class GoogleCloudDialogflowV2RaiSettings
|
|
16174
|
+
include Google::Apis::Core::Hashable
|
|
16175
|
+
|
|
16176
|
+
# Configuration for a set of RAI categories.
|
|
16177
|
+
# Corresponds to the JSON property `raiCategoryConfigs`
|
|
16178
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig>]
|
|
16179
|
+
attr_accessor :rai_category_configs
|
|
16180
|
+
|
|
16181
|
+
def initialize(**args)
|
|
16182
|
+
update!(**args)
|
|
16183
|
+
end
|
|
16184
|
+
|
|
16185
|
+
# Update properties of this object
|
|
16186
|
+
def update!(**args)
|
|
16187
|
+
@rai_category_configs = args[:rai_category_configs] if args.key?(:rai_category_configs)
|
|
16188
|
+
end
|
|
16189
|
+
end
|
|
16190
|
+
|
|
16191
|
+
# Configuration for a specific RAI category.
|
|
16192
|
+
class GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig
|
|
16193
|
+
include Google::Apis::Core::Hashable
|
|
16194
|
+
|
|
16195
|
+
# Optional. The RAI category.
|
|
16196
|
+
# Corresponds to the JSON property `category`
|
|
16197
|
+
# @return [String]
|
|
16198
|
+
attr_accessor :category
|
|
16199
|
+
|
|
16200
|
+
# Optional. The sensitivity level for this category.
|
|
16201
|
+
# Corresponds to the JSON property `sensitivityLevel`
|
|
16202
|
+
# @return [String]
|
|
16203
|
+
attr_accessor :sensitivity_level
|
|
16204
|
+
|
|
16205
|
+
def initialize(**args)
|
|
16206
|
+
update!(**args)
|
|
16207
|
+
end
|
|
16208
|
+
|
|
16209
|
+
# Update properties of this object
|
|
16210
|
+
def update!(**args)
|
|
16211
|
+
@category = args[:category] if args.key?(:category)
|
|
16212
|
+
@sensitivity_level = args[:sensitivity_level] if args.key?(:sensitivity_level)
|
|
16213
|
+
end
|
|
16214
|
+
end
|
|
16215
|
+
|
|
15455
16216
|
# Request message for Documents.ReloadDocument.
|
|
15456
16217
|
class GoogleCloudDialogflowV2ReloadDocumentRequest
|
|
15457
16218
|
include Google::Apis::Core::Hashable
|
|
@@ -16963,6 +17724,33 @@ module Google
|
|
|
16963
17724
|
end
|
|
16964
17725
|
end
|
|
16965
17726
|
|
|
17727
|
+
# Config for suggestion deduping. NEXT_ID: 3
|
|
17728
|
+
class GoogleCloudDialogflowV2SuggestionDedupingConfig
|
|
17729
|
+
include Google::Apis::Core::Hashable
|
|
17730
|
+
|
|
17731
|
+
# Optional. Whether to enable suggestion deduping.
|
|
17732
|
+
# Corresponds to the JSON property `enableDeduping`
|
|
17733
|
+
# @return [Boolean]
|
|
17734
|
+
attr_accessor :enable_deduping
|
|
17735
|
+
alias_method :enable_deduping?, :enable_deduping
|
|
17736
|
+
|
|
17737
|
+
# Optional. The threshold for similarity between two suggestions. Acceptable
|
|
17738
|
+
# value is [0.0, 1.0], default to 0.8
|
|
17739
|
+
# Corresponds to the JSON property `similarityThreshold`
|
|
17740
|
+
# @return [Float]
|
|
17741
|
+
attr_accessor :similarity_threshold
|
|
17742
|
+
|
|
17743
|
+
def initialize(**args)
|
|
17744
|
+
update!(**args)
|
|
17745
|
+
end
|
|
17746
|
+
|
|
17747
|
+
# Update properties of this object
|
|
17748
|
+
def update!(**args)
|
|
17749
|
+
@enable_deduping = args[:enable_deduping] if args.key?(:enable_deduping)
|
|
17750
|
+
@similarity_threshold = args[:similarity_threshold] if args.key?(:similarity_threshold)
|
|
17751
|
+
end
|
|
17752
|
+
end
|
|
17753
|
+
|
|
16966
17754
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
|
16967
17755
|
# number of results to return for that type. Multiple `Feature` objects can be
|
|
16968
17756
|
# specified in the `features` list.
|
|
@@ -16984,24 +17772,44 @@ module Google
|
|
|
16984
17772
|
end
|
|
16985
17773
|
end
|
|
16986
17774
|
|
|
16987
|
-
# Represents the
|
|
17775
|
+
# Represents the action to take for a tool call that requires confirmation.
|
|
16988
17776
|
class GoogleCloudDialogflowV2SuggestionInput
|
|
16989
17777
|
include Google::Apis::Core::Hashable
|
|
16990
17778
|
|
|
16991
|
-
#
|
|
16992
|
-
#
|
|
16993
|
-
#
|
|
17779
|
+
# Optional. The type of action to take with the tool.
|
|
17780
|
+
# Corresponds to the JSON property `action`
|
|
17781
|
+
# @return [String]
|
|
17782
|
+
attr_accessor :action
|
|
17783
|
+
|
|
17784
|
+
# Required. Format: `projects//locations//answerRecords/` The answer record
|
|
17785
|
+
# associated with the tool call.
|
|
16994
17786
|
# Corresponds to the JSON property `answerRecord`
|
|
16995
17787
|
# @return [String]
|
|
16996
17788
|
attr_accessor :answer_record
|
|
16997
17789
|
|
|
17790
|
+
# Optional. Parameters to be used for the tool call. If not provided, the tool
|
|
17791
|
+
# will be called without any parameters.
|
|
17792
|
+
# Corresponds to the JSON property `parameters`
|
|
17793
|
+
# @return [Hash<String,Object>]
|
|
17794
|
+
attr_accessor :parameters
|
|
17795
|
+
|
|
17796
|
+
# Optional. Time when the current suggest input is sent. For tool calls, this
|
|
17797
|
+
# timestamp (along with the answer record) will be included in the corresponding
|
|
17798
|
+
# tool call result so that it can be identified.
|
|
17799
|
+
# Corresponds to the JSON property `sendTime`
|
|
17800
|
+
# @return [String]
|
|
17801
|
+
attr_accessor :send_time
|
|
17802
|
+
|
|
16998
17803
|
def initialize(**args)
|
|
16999
17804
|
update!(**args)
|
|
17000
17805
|
end
|
|
17001
17806
|
|
|
17002
17807
|
# Update properties of this object
|
|
17003
17808
|
def update!(**args)
|
|
17809
|
+
@action = args[:action] if args.key?(:action)
|
|
17004
17810
|
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
17811
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
|
17812
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
|
17005
17813
|
end
|
|
17006
17814
|
end
|
|
17007
17815
|
|
|
@@ -17031,20 +17839,455 @@ module Google
|
|
|
17031
17839
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
|
17032
17840
|
attr_accessor :suggest_articles_response
|
|
17033
17841
|
|
|
17034
|
-
# The request message for Participants.SuggestFaqAnswers.
|
|
17035
|
-
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
|
17036
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
|
17037
|
-
attr_accessor :suggest_faq_answers_response
|
|
17842
|
+
# The request message for Participants.SuggestFaqAnswers.
|
|
17843
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
|
17844
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
|
17845
|
+
attr_accessor :suggest_faq_answers_response
|
|
17846
|
+
|
|
17847
|
+
# The response message for Participants.SuggestKnowledgeAssist.
|
|
17848
|
+
# Corresponds to the JSON property `suggestKnowledgeAssistResponse`
|
|
17849
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
|
|
17850
|
+
attr_accessor :suggest_knowledge_assist_response
|
|
17851
|
+
|
|
17852
|
+
# The response message for Participants.SuggestSmartReplies.
|
|
17853
|
+
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
|
17854
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
|
17855
|
+
attr_accessor :suggest_smart_replies_response
|
|
17856
|
+
|
|
17857
|
+
def initialize(**args)
|
|
17858
|
+
update!(**args)
|
|
17859
|
+
end
|
|
17860
|
+
|
|
17861
|
+
# Update properties of this object
|
|
17862
|
+
def update!(**args)
|
|
17863
|
+
@error = args[:error] if args.key?(:error)
|
|
17864
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
|
17865
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
|
17866
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
|
17867
|
+
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
|
17868
|
+
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
|
17869
|
+
end
|
|
17870
|
+
end
|
|
17871
|
+
|
|
17872
|
+
# Summarization context that customer can configure.
|
|
17873
|
+
class GoogleCloudDialogflowV2SummarizationContext
|
|
17874
|
+
include Google::Apis::Core::Hashable
|
|
17875
|
+
|
|
17876
|
+
# Optional. List of few shot examples.
|
|
17877
|
+
# Corresponds to the JSON property `fewShotExamples`
|
|
17878
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample>]
|
|
17879
|
+
attr_accessor :few_shot_examples
|
|
17880
|
+
|
|
17881
|
+
# Optional. The target language of the generated summary. The language code for
|
|
17882
|
+
# conversation will be used if this field is empty. Supported 2.0 and later
|
|
17883
|
+
# versions.
|
|
17884
|
+
# Corresponds to the JSON property `outputLanguageCode`
|
|
17885
|
+
# @return [String]
|
|
17886
|
+
attr_accessor :output_language_code
|
|
17887
|
+
|
|
17888
|
+
# Optional. List of sections. Note it contains both predefined section sand
|
|
17889
|
+
# customer defined sections.
|
|
17890
|
+
# Corresponds to the JSON property `summarizationSections`
|
|
17891
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection>]
|
|
17892
|
+
attr_accessor :summarization_sections
|
|
17893
|
+
|
|
17894
|
+
# Optional. Version of the feature. If not set, default to latest version.
|
|
17895
|
+
# Current candidates are ["1.0"].
|
|
17896
|
+
# Corresponds to the JSON property `version`
|
|
17897
|
+
# @return [String]
|
|
17898
|
+
attr_accessor :version
|
|
17899
|
+
|
|
17900
|
+
def initialize(**args)
|
|
17901
|
+
update!(**args)
|
|
17902
|
+
end
|
|
17903
|
+
|
|
17904
|
+
# Update properties of this object
|
|
17905
|
+
def update!(**args)
|
|
17906
|
+
@few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
|
|
17907
|
+
@output_language_code = args[:output_language_code] if args.key?(:output_language_code)
|
|
17908
|
+
@summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
|
|
17909
|
+
@version = args[:version] if args.key?(:version)
|
|
17910
|
+
end
|
|
17911
|
+
end
|
|
17912
|
+
|
|
17913
|
+
# Evaluation metrics for summarization generator.
|
|
17914
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetrics
|
|
17915
|
+
include Google::Apis::Core::Hashable
|
|
17916
|
+
|
|
17917
|
+
# Output only. List of conversation details.
|
|
17918
|
+
# Corresponds to the JSON property `conversationDetails`
|
|
17919
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetail>]
|
|
17920
|
+
attr_accessor :conversation_details
|
|
17921
|
+
|
|
17922
|
+
# Output only. A list of aggregated(average) scores per metric section.
|
|
17923
|
+
# Corresponds to the JSON property `overallMetrics`
|
|
17924
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsOverallScoresByMetric>]
|
|
17925
|
+
attr_accessor :overall_metrics
|
|
17926
|
+
|
|
17927
|
+
# Output only. Overall token per section. This is an aggregated(sum) result of
|
|
17928
|
+
# input token of summary acorss all conversations that are selected for
|
|
17929
|
+
# summarization evaluation.
|
|
17930
|
+
# Corresponds to the JSON property `overallSectionTokens`
|
|
17931
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken>]
|
|
17932
|
+
attr_accessor :overall_section_tokens
|
|
17933
|
+
|
|
17934
|
+
# Output only. User bucket uri for merged evaluation score and aggregation score
|
|
17935
|
+
# csv.
|
|
17936
|
+
# Corresponds to the JSON property `summarizationEvaluationMergedResultsUri`
|
|
17937
|
+
# @return [String]
|
|
17938
|
+
attr_accessor :summarization_evaluation_merged_results_uri
|
|
17939
|
+
|
|
17940
|
+
# Output only. A list of evaluation results per conversation(&summary), metric
|
|
17941
|
+
# and section.
|
|
17942
|
+
# Corresponds to the JSON property `summarizationEvaluationResults`
|
|
17943
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult>]
|
|
17944
|
+
attr_accessor :summarization_evaluation_results
|
|
17945
|
+
|
|
17946
|
+
def initialize(**args)
|
|
17947
|
+
update!(**args)
|
|
17948
|
+
end
|
|
17949
|
+
|
|
17950
|
+
# Update properties of this object
|
|
17951
|
+
def update!(**args)
|
|
17952
|
+
@conversation_details = args[:conversation_details] if args.key?(:conversation_details)
|
|
17953
|
+
@overall_metrics = args[:overall_metrics] if args.key?(:overall_metrics)
|
|
17954
|
+
@overall_section_tokens = args[:overall_section_tokens] if args.key?(:overall_section_tokens)
|
|
17955
|
+
@summarization_evaluation_merged_results_uri = args[:summarization_evaluation_merged_results_uri] if args.key?(:summarization_evaluation_merged_results_uri)
|
|
17956
|
+
@summarization_evaluation_results = args[:summarization_evaluation_results] if args.key?(:summarization_evaluation_results)
|
|
17957
|
+
end
|
|
17958
|
+
end
|
|
17959
|
+
|
|
17960
|
+
# Decomposition details for accuracy.
|
|
17961
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition
|
|
17962
|
+
include Google::Apis::Core::Hashable
|
|
17963
|
+
|
|
17964
|
+
# Output only. The accuracy reasoning of the breakdown point.
|
|
17965
|
+
# Corresponds to the JSON property `accuracyReasoning`
|
|
17966
|
+
# @return [String]
|
|
17967
|
+
attr_accessor :accuracy_reasoning
|
|
17968
|
+
|
|
17969
|
+
# Output only. Whether the breakdown point is accurate or not.
|
|
17970
|
+
# Corresponds to the JSON property `isAccurate`
|
|
17971
|
+
# @return [Boolean]
|
|
17972
|
+
attr_accessor :is_accurate
|
|
17973
|
+
alias_method :is_accurate?, :is_accurate
|
|
17974
|
+
|
|
17975
|
+
# Output only. The breakdown point of the summary.
|
|
17976
|
+
# Corresponds to the JSON property `point`
|
|
17977
|
+
# @return [String]
|
|
17978
|
+
attr_accessor :point
|
|
17979
|
+
|
|
17980
|
+
def initialize(**args)
|
|
17981
|
+
update!(**args)
|
|
17982
|
+
end
|
|
17983
|
+
|
|
17984
|
+
# Update properties of this object
|
|
17985
|
+
def update!(**args)
|
|
17986
|
+
@accuracy_reasoning = args[:accuracy_reasoning] if args.key?(:accuracy_reasoning)
|
|
17987
|
+
@is_accurate = args[:is_accurate] if args.key?(:is_accurate)
|
|
17988
|
+
@point = args[:point] if args.key?(:point)
|
|
17989
|
+
end
|
|
17990
|
+
end
|
|
17991
|
+
|
|
17992
|
+
# Decomposition details for adherence.
|
|
17993
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceDecomposition
|
|
17994
|
+
include Google::Apis::Core::Hashable
|
|
17995
|
+
|
|
17996
|
+
# Output only. The adherence reasoning of the breakdown point.
|
|
17997
|
+
# Corresponds to the JSON property `adherenceReasoning`
|
|
17998
|
+
# @return [String]
|
|
17999
|
+
attr_accessor :adherence_reasoning
|
|
18000
|
+
|
|
18001
|
+
# Output only. Whether the breakdown point is adherent or not.
|
|
18002
|
+
# Corresponds to the JSON property `isAdherent`
|
|
18003
|
+
# @return [Boolean]
|
|
18004
|
+
attr_accessor :is_adherent
|
|
18005
|
+
alias_method :is_adherent?, :is_adherent
|
|
18006
|
+
|
|
18007
|
+
# Output only. The breakdown point of the given instructions.
|
|
18008
|
+
# Corresponds to the JSON property `point`
|
|
18009
|
+
# @return [String]
|
|
18010
|
+
attr_accessor :point
|
|
18011
|
+
|
|
18012
|
+
def initialize(**args)
|
|
18013
|
+
update!(**args)
|
|
18014
|
+
end
|
|
18015
|
+
|
|
18016
|
+
# Update properties of this object
|
|
18017
|
+
def update!(**args)
|
|
18018
|
+
@adherence_reasoning = args[:adherence_reasoning] if args.key?(:adherence_reasoning)
|
|
18019
|
+
@is_adherent = args[:is_adherent] if args.key?(:is_adherent)
|
|
18020
|
+
@point = args[:point] if args.key?(:point)
|
|
18021
|
+
end
|
|
18022
|
+
end
|
|
18023
|
+
|
|
18024
|
+
# Rubric result of the adherence evaluation. A rubric is ued to determine if the
|
|
18025
|
+
# summary adheres to all aspects of the given instructions.
|
|
18026
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric
|
|
18027
|
+
include Google::Apis::Core::Hashable
|
|
18028
|
+
|
|
18029
|
+
# Output only. A boolean that indicates whether the rubric question is addressed
|
|
18030
|
+
# or not.
|
|
18031
|
+
# Corresponds to the JSON property `isAddressed`
|
|
18032
|
+
# @return [Boolean]
|
|
18033
|
+
attr_accessor :is_addressed
|
|
18034
|
+
alias_method :is_addressed?, :is_addressed
|
|
18035
|
+
|
|
18036
|
+
# Output only. The question generated from instruction that used to evaluate
|
|
18037
|
+
# summary.
|
|
18038
|
+
# Corresponds to the JSON property `question`
|
|
18039
|
+
# @return [String]
|
|
18040
|
+
attr_accessor :question
|
|
18041
|
+
|
|
18042
|
+
# Output only. The reasoning of the rubric question is addressed or not.
|
|
18043
|
+
# Corresponds to the JSON property `reasoning`
|
|
18044
|
+
# @return [String]
|
|
18045
|
+
attr_accessor :reasoning
|
|
18046
|
+
|
|
18047
|
+
def initialize(**args)
|
|
18048
|
+
update!(**args)
|
|
18049
|
+
end
|
|
18050
|
+
|
|
18051
|
+
# Update properties of this object
|
|
18052
|
+
def update!(**args)
|
|
18053
|
+
@is_addressed = args[:is_addressed] if args.key?(:is_addressed)
|
|
18054
|
+
@question = args[:question] if args.key?(:question)
|
|
18055
|
+
@reasoning = args[:reasoning] if args.key?(:reasoning)
|
|
18056
|
+
end
|
|
18057
|
+
end
|
|
18058
|
+
|
|
18059
|
+
# Rubric details of the completeness evaluation result.
|
|
18060
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric
|
|
18061
|
+
include Google::Apis::Core::Hashable
|
|
18062
|
+
|
|
18063
|
+
# Output only. A boolean that indicates whether the rubric question is addressed
|
|
18064
|
+
# or not.
|
|
18065
|
+
# Corresponds to the JSON property `isAddressed`
|
|
18066
|
+
# @return [Boolean]
|
|
18067
|
+
attr_accessor :is_addressed
|
|
18068
|
+
alias_method :is_addressed?, :is_addressed
|
|
18069
|
+
|
|
18070
|
+
# Output only. The question generated from instruction that used to evaluate
|
|
18071
|
+
# summary.
|
|
18072
|
+
# Corresponds to the JSON property `question`
|
|
18073
|
+
# @return [String]
|
|
18074
|
+
attr_accessor :question
|
|
18075
|
+
|
|
18076
|
+
def initialize(**args)
|
|
18077
|
+
update!(**args)
|
|
18078
|
+
end
|
|
18079
|
+
|
|
18080
|
+
# Update properties of this object
|
|
18081
|
+
def update!(**args)
|
|
18082
|
+
@is_addressed = args[:is_addressed] if args.key?(:is_addressed)
|
|
18083
|
+
@question = args[:question] if args.key?(:question)
|
|
18084
|
+
end
|
|
18085
|
+
end
|
|
18086
|
+
|
|
18087
|
+
# Aggregated evaluation result on conversation level. This conatins evaluation
|
|
18088
|
+
# results of all the metrics and sections.
|
|
18089
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetail
|
|
18090
|
+
include Google::Apis::Core::Hashable
|
|
18091
|
+
|
|
18092
|
+
# Output only. Conversation transcript that used for summarization evaluation as
|
|
18093
|
+
# a reference.
|
|
18094
|
+
# Corresponds to the JSON property `messageEntries`
|
|
18095
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry>]
|
|
18096
|
+
attr_accessor :message_entries
|
|
18097
|
+
|
|
18098
|
+
# Output only. List of metric details.
|
|
18099
|
+
# Corresponds to the JSON property `metricDetails`
|
|
18100
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetail>]
|
|
18101
|
+
attr_accessor :metric_details
|
|
18102
|
+
|
|
18103
|
+
# Output only. Conversation level token count per section. This is an aggregated(
|
|
18104
|
+
# sum) result of input token of summary acorss all metrics for a single
|
|
18105
|
+
# conversation.
|
|
18106
|
+
# Corresponds to the JSON property `sectionTokens`
|
|
18107
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken>]
|
|
18108
|
+
attr_accessor :section_tokens
|
|
18109
|
+
|
|
18110
|
+
# Output only. Summary sections that used for summarization evaluation as a
|
|
18111
|
+
# reference.
|
|
18112
|
+
# Corresponds to the JSON property `summarySections`
|
|
18113
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestionSummarySection>]
|
|
18114
|
+
attr_accessor :summary_sections
|
|
18115
|
+
|
|
18116
|
+
def initialize(**args)
|
|
18117
|
+
update!(**args)
|
|
18118
|
+
end
|
|
18119
|
+
|
|
18120
|
+
# Update properties of this object
|
|
18121
|
+
def update!(**args)
|
|
18122
|
+
@message_entries = args[:message_entries] if args.key?(:message_entries)
|
|
18123
|
+
@metric_details = args[:metric_details] if args.key?(:metric_details)
|
|
18124
|
+
@section_tokens = args[:section_tokens] if args.key?(:section_tokens)
|
|
18125
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
|
18126
|
+
end
|
|
18127
|
+
end
|
|
18128
|
+
|
|
18129
|
+
# Aggregated result on metric level. This conatins the evaluation results of all
|
|
18130
|
+
# the sections.
|
|
18131
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetail
|
|
18132
|
+
include Google::Apis::Core::Hashable
|
|
18133
|
+
|
|
18134
|
+
# Output only. Metrics name. e.g. accuracy, adherence, completeness.
|
|
18135
|
+
# Corresponds to the JSON property `metric`
|
|
18136
|
+
# @return [String]
|
|
18137
|
+
attr_accessor :metric
|
|
18138
|
+
|
|
18139
|
+
# Output only. Aggregated(average) score on this metric across all sections.
|
|
18140
|
+
# Corresponds to the JSON property `score`
|
|
18141
|
+
# @return [Float]
|
|
18142
|
+
attr_accessor :score
|
|
18143
|
+
|
|
18144
|
+
# Output only. List of section details.
|
|
18145
|
+
# Corresponds to the JSON property `sectionDetails`
|
|
18146
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail>]
|
|
18147
|
+
attr_accessor :section_details
|
|
18148
|
+
|
|
18149
|
+
def initialize(**args)
|
|
18150
|
+
update!(**args)
|
|
18151
|
+
end
|
|
18152
|
+
|
|
18153
|
+
# Update properties of this object
|
|
18154
|
+
def update!(**args)
|
|
18155
|
+
@metric = args[:metric] if args.key?(:metric)
|
|
18156
|
+
@score = args[:score] if args.key?(:score)
|
|
18157
|
+
@section_details = args[:section_details] if args.key?(:section_details)
|
|
18158
|
+
end
|
|
18159
|
+
end
|
|
18160
|
+
|
|
18161
|
+
# Section level result.
|
|
18162
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail
|
|
18163
|
+
include Google::Apis::Core::Hashable
|
|
18164
|
+
|
|
18165
|
+
# Output only. List of evaluation result. The list only contains one kind of the
|
|
18166
|
+
# evaluation result.
|
|
18167
|
+
# Corresponds to the JSON property `evaluationResults`
|
|
18168
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult>]
|
|
18169
|
+
attr_accessor :evaluation_results
|
|
18170
|
+
|
|
18171
|
+
# Output only. Aggregated(average) score on this section across all evaluation
|
|
18172
|
+
# results. Either decompositions or rubrics.
|
|
18173
|
+
# Corresponds to the JSON property `score`
|
|
18174
|
+
# @return [Float]
|
|
18175
|
+
attr_accessor :score
|
|
18176
|
+
|
|
18177
|
+
# Output only. The name of the summary instruction.
|
|
18178
|
+
# Corresponds to the JSON property `section`
|
|
18179
|
+
# @return [String]
|
|
18180
|
+
attr_accessor :section
|
|
18181
|
+
|
|
18182
|
+
# Output only. Summary for this section
|
|
18183
|
+
# Corresponds to the JSON property `sectionSummary`
|
|
18184
|
+
# @return [String]
|
|
18185
|
+
attr_accessor :section_summary
|
|
18186
|
+
|
|
18187
|
+
def initialize(**args)
|
|
18188
|
+
update!(**args)
|
|
18189
|
+
end
|
|
18190
|
+
|
|
18191
|
+
# Update properties of this object
|
|
18192
|
+
def update!(**args)
|
|
18193
|
+
@evaluation_results = args[:evaluation_results] if args.key?(:evaluation_results)
|
|
18194
|
+
@score = args[:score] if args.key?(:score)
|
|
18195
|
+
@section = args[:section] if args.key?(:section)
|
|
18196
|
+
@section_summary = args[:section_summary] if args.key?(:section_summary)
|
|
18197
|
+
end
|
|
18198
|
+
end
|
|
18199
|
+
|
|
18200
|
+
# Decomposition details
|
|
18201
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsDecomposition
|
|
18202
|
+
include Google::Apis::Core::Hashable
|
|
18203
|
+
|
|
18204
|
+
# Decomposition details for accuracy.
|
|
18205
|
+
# Corresponds to the JSON property `accuracyDecomposition`
|
|
18206
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition]
|
|
18207
|
+
attr_accessor :accuracy_decomposition
|
|
18208
|
+
|
|
18209
|
+
# Decomposition details for adherence.
|
|
18210
|
+
# Corresponds to the JSON property `adherenceDecomposition`
|
|
18211
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceDecomposition]
|
|
18212
|
+
attr_accessor :adherence_decomposition
|
|
18213
|
+
|
|
18214
|
+
def initialize(**args)
|
|
18215
|
+
update!(**args)
|
|
18216
|
+
end
|
|
18217
|
+
|
|
18218
|
+
# Update properties of this object
|
|
18219
|
+
def update!(**args)
|
|
18220
|
+
@accuracy_decomposition = args[:accuracy_decomposition] if args.key?(:accuracy_decomposition)
|
|
18221
|
+
@adherence_decomposition = args[:adherence_decomposition] if args.key?(:adherence_decomposition)
|
|
18222
|
+
end
|
|
18223
|
+
end
|
|
18224
|
+
|
|
18225
|
+
# Evaluation result that contains one of accuracy, adherence or completeness
|
|
18226
|
+
# evaluation result.
|
|
18227
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult
|
|
18228
|
+
include Google::Apis::Core::Hashable
|
|
18229
|
+
|
|
18230
|
+
# Decomposition details for accuracy.
|
|
18231
|
+
# Corresponds to the JSON property `accuracyDecomposition`
|
|
18232
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition]
|
|
18233
|
+
attr_accessor :accuracy_decomposition
|
|
18234
|
+
|
|
18235
|
+
# Rubric result of the adherence evaluation. A rubric is ued to determine if the
|
|
18236
|
+
# summary adheres to all aspects of the given instructions.
|
|
18237
|
+
# Corresponds to the JSON property `adherenceRubric`
|
|
18238
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric]
|
|
18239
|
+
attr_accessor :adherence_rubric
|
|
18240
|
+
|
|
18241
|
+
# Rubric details of the completeness evaluation result.
|
|
18242
|
+
# Corresponds to the JSON property `completenessRubric`
|
|
18243
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric]
|
|
18244
|
+
attr_accessor :completeness_rubric
|
|
18245
|
+
|
|
18246
|
+
def initialize(**args)
|
|
18247
|
+
update!(**args)
|
|
18248
|
+
end
|
|
18249
|
+
|
|
18250
|
+
# Update properties of this object
|
|
18251
|
+
def update!(**args)
|
|
18252
|
+
@accuracy_decomposition = args[:accuracy_decomposition] if args.key?(:accuracy_decomposition)
|
|
18253
|
+
@adherence_rubric = args[:adherence_rubric] if args.key?(:adherence_rubric)
|
|
18254
|
+
@completeness_rubric = args[:completeness_rubric] if args.key?(:completeness_rubric)
|
|
18255
|
+
end
|
|
18256
|
+
end
|
|
18257
|
+
|
|
18258
|
+
# Overall performance per metric. This is the aggregated score for each metric
|
|
18259
|
+
# across all conversations that are selected for summarization evaluation.
|
|
18260
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsOverallScoresByMetric
|
|
18261
|
+
include Google::Apis::Core::Hashable
|
|
18262
|
+
|
|
18263
|
+
# Output only. Metric name. e.g. accuracy, adherence, completeness.
|
|
18264
|
+
# Corresponds to the JSON property `metric`
|
|
18265
|
+
# @return [String]
|
|
18266
|
+
attr_accessor :metric
|
|
18267
|
+
|
|
18268
|
+
def initialize(**args)
|
|
18269
|
+
update!(**args)
|
|
18270
|
+
end
|
|
18271
|
+
|
|
18272
|
+
# Update properties of this object
|
|
18273
|
+
def update!(**args)
|
|
18274
|
+
@metric = args[:metric] if args.key?(:metric)
|
|
18275
|
+
end
|
|
18276
|
+
end
|
|
18277
|
+
|
|
18278
|
+
# A pair of section name and input token count of the input summary section.
|
|
18279
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken
|
|
18280
|
+
include Google::Apis::Core::Hashable
|
|
17038
18281
|
|
|
17039
|
-
# The
|
|
17040
|
-
# Corresponds to the JSON property `
|
|
17041
|
-
# @return [
|
|
17042
|
-
attr_accessor :
|
|
18282
|
+
# Output only. The name of the summary instruction.
|
|
18283
|
+
# Corresponds to the JSON property `section`
|
|
18284
|
+
# @return [String]
|
|
18285
|
+
attr_accessor :section
|
|
17043
18286
|
|
|
17044
|
-
#
|
|
17045
|
-
# Corresponds to the JSON property `
|
|
17046
|
-
# @return [
|
|
17047
|
-
attr_accessor :
|
|
18287
|
+
# Output only. Token count.
|
|
18288
|
+
# Corresponds to the JSON property `tokenCount`
|
|
18289
|
+
# @return [Fixnum]
|
|
18290
|
+
attr_accessor :token_count
|
|
17048
18291
|
|
|
17049
18292
|
def initialize(**args)
|
|
17050
18293
|
update!(**args)
|
|
@@ -17052,42 +18295,49 @@ module Google
|
|
|
17052
18295
|
|
|
17053
18296
|
# Update properties of this object
|
|
17054
18297
|
def update!(**args)
|
|
17055
|
-
@
|
|
17056
|
-
@
|
|
17057
|
-
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
|
17058
|
-
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
|
17059
|
-
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
|
17060
|
-
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
|
18298
|
+
@section = args[:section] if args.key?(:section)
|
|
18299
|
+
@token_count = args[:token_count] if args.key?(:token_count)
|
|
17061
18300
|
end
|
|
17062
18301
|
end
|
|
17063
18302
|
|
|
17064
|
-
#
|
|
17065
|
-
class
|
|
18303
|
+
# Evaluation result per conversation(&summary), metric and section.
|
|
18304
|
+
class GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult
|
|
17066
18305
|
include Google::Apis::Core::Hashable
|
|
17067
18306
|
|
|
17068
|
-
#
|
|
17069
|
-
# Corresponds to the JSON property `
|
|
17070
|
-
# @return [Array<Google::Apis::DialogflowV2::
|
|
17071
|
-
attr_accessor :
|
|
18307
|
+
# Output only. List of decompostion details
|
|
18308
|
+
# Corresponds to the JSON property `decompositions`
|
|
18309
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsDecomposition>]
|
|
18310
|
+
attr_accessor :decompositions
|
|
17072
18311
|
|
|
17073
|
-
#
|
|
17074
|
-
#
|
|
17075
|
-
#
|
|
17076
|
-
|
|
18312
|
+
# Output only. List of evaluation results.
|
|
18313
|
+
# Corresponds to the JSON property `evaluationResults`
|
|
18314
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult>]
|
|
18315
|
+
attr_accessor :evaluation_results
|
|
18316
|
+
|
|
18317
|
+
# Output only. metric name, e.g. accuracy, completeness, adherence, etc.
|
|
18318
|
+
# Corresponds to the JSON property `metric`
|
|
17077
18319
|
# @return [String]
|
|
17078
|
-
attr_accessor :
|
|
18320
|
+
attr_accessor :metric
|
|
17079
18321
|
|
|
17080
|
-
#
|
|
17081
|
-
#
|
|
17082
|
-
#
|
|
17083
|
-
|
|
17084
|
-
attr_accessor :summarization_sections
|
|
18322
|
+
# Output only. score calculated from decompositions
|
|
18323
|
+
# Corresponds to the JSON property `score`
|
|
18324
|
+
# @return [Float]
|
|
18325
|
+
attr_accessor :score
|
|
17085
18326
|
|
|
17086
|
-
#
|
|
17087
|
-
#
|
|
17088
|
-
# Corresponds to the JSON property `version`
|
|
18327
|
+
# Output only. section/task name, e.g. action, situation, etc
|
|
18328
|
+
# Corresponds to the JSON property `section`
|
|
17089
18329
|
# @return [String]
|
|
17090
|
-
attr_accessor :
|
|
18330
|
+
attr_accessor :section
|
|
18331
|
+
|
|
18332
|
+
# Output only. Summary of this section
|
|
18333
|
+
# Corresponds to the JSON property `sectionSummary`
|
|
18334
|
+
# @return [String]
|
|
18335
|
+
attr_accessor :section_summary
|
|
18336
|
+
|
|
18337
|
+
# Output only. conversation session id
|
|
18338
|
+
# Corresponds to the JSON property `sessionId`
|
|
18339
|
+
# @return [String]
|
|
18340
|
+
attr_accessor :session_id
|
|
17091
18341
|
|
|
17092
18342
|
def initialize(**args)
|
|
17093
18343
|
update!(**args)
|
|
@@ -17095,10 +18345,13 @@ module Google
|
|
|
17095
18345
|
|
|
17096
18346
|
# Update properties of this object
|
|
17097
18347
|
def update!(**args)
|
|
17098
|
-
@
|
|
17099
|
-
@
|
|
17100
|
-
@
|
|
17101
|
-
@
|
|
18348
|
+
@decompositions = args[:decompositions] if args.key?(:decompositions)
|
|
18349
|
+
@evaluation_results = args[:evaluation_results] if args.key?(:evaluation_results)
|
|
18350
|
+
@metric = args[:metric] if args.key?(:metric)
|
|
18351
|
+
@score = args[:score] if args.key?(:score)
|
|
18352
|
+
@section = args[:section] if args.key?(:section)
|
|
18353
|
+
@section_summary = args[:section_summary] if args.key?(:section_summary)
|
|
18354
|
+
@session_id = args[:session_id] if args.key?(:session_id)
|
|
17102
18355
|
end
|
|
17103
18356
|
end
|
|
17104
18357
|
|
|
@@ -17343,6 +18596,11 @@ module Google
|
|
|
17343
18596
|
# @return [String]
|
|
17344
18597
|
attr_accessor :action
|
|
17345
18598
|
|
|
18599
|
+
# Optional. The answer record associated with this tool call.
|
|
18600
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18601
|
+
# @return [String]
|
|
18602
|
+
attr_accessor :answer_record
|
|
18603
|
+
|
|
17346
18604
|
# Output only. Create time of the tool call.
|
|
17347
18605
|
# Corresponds to the JSON property `createTime`
|
|
17348
18606
|
# @return [String]
|
|
@@ -17353,12 +18611,27 @@ module Google
|
|
|
17353
18611
|
# @return [Hash<String,Object>]
|
|
17354
18612
|
attr_accessor :input_parameters
|
|
17355
18613
|
|
|
18614
|
+
# Output only. State of the tool call.
|
|
18615
|
+
# Corresponds to the JSON property `state`
|
|
18616
|
+
# @return [String]
|
|
18617
|
+
attr_accessor :state
|
|
18618
|
+
|
|
17356
18619
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
17357
18620
|
# tools/`.
|
|
17358
18621
|
# Corresponds to the JSON property `tool`
|
|
17359
18622
|
# @return [String]
|
|
17360
18623
|
attr_accessor :tool
|
|
17361
18624
|
|
|
18625
|
+
# Optional. A human readable description of the tool.
|
|
18626
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
18627
|
+
# @return [String]
|
|
18628
|
+
attr_accessor :tool_display_details
|
|
18629
|
+
|
|
18630
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
18631
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
18632
|
+
# @return [String]
|
|
18633
|
+
attr_accessor :tool_display_name
|
|
18634
|
+
|
|
17362
18635
|
def initialize(**args)
|
|
17363
18636
|
update!(**args)
|
|
17364
18637
|
end
|
|
@@ -17366,9 +18639,13 @@ module Google
|
|
|
17366
18639
|
# Update properties of this object
|
|
17367
18640
|
def update!(**args)
|
|
17368
18641
|
@action = args[:action] if args.key?(:action)
|
|
18642
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
17369
18643
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
17370
18644
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
18645
|
+
@state = args[:state] if args.key?(:state)
|
|
17371
18646
|
@tool = args[:tool] if args.key?(:tool)
|
|
18647
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
18648
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
17372
18649
|
end
|
|
17373
18650
|
end
|
|
17374
18651
|
|
|
@@ -17381,6 +18658,11 @@ module Google
|
|
|
17381
18658
|
# @return [String]
|
|
17382
18659
|
attr_accessor :action
|
|
17383
18660
|
|
|
18661
|
+
# Optional. The answer record associated with this tool call result.
|
|
18662
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18663
|
+
# @return [String]
|
|
18664
|
+
attr_accessor :answer_record
|
|
18665
|
+
|
|
17384
18666
|
# Only populated if the response content is utf-8 encoded.
|
|
17385
18667
|
# Corresponds to the JSON property `content`
|
|
17386
18668
|
# @return [String]
|
|
@@ -17416,6 +18698,7 @@ module Google
|
|
|
17416
18698
|
# Update properties of this object
|
|
17417
18699
|
def update!(**args)
|
|
17418
18700
|
@action = args[:action] if args.key?(:action)
|
|
18701
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
17419
18702
|
@content = args[:content] if args.key?(:content)
|
|
17420
18703
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
17421
18704
|
@error = args[:error] if args.key?(:error)
|
|
@@ -17769,6 +19052,282 @@ module Google
|
|
|
17769
19052
|
end
|
|
17770
19053
|
end
|
|
17771
19054
|
|
|
19055
|
+
# Agent Coaching instructions that customer can configure.
|
|
19056
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstruction
|
|
19057
|
+
include Google::Apis::Core::Hashable
|
|
19058
|
+
|
|
19059
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
|
19060
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
|
19061
|
+
# detection, agent_action can be empty
|
|
19062
|
+
# Corresponds to the JSON property `agentAction`
|
|
19063
|
+
# @return [String]
|
|
19064
|
+
attr_accessor :agent_action
|
|
19065
|
+
|
|
19066
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
|
19067
|
+
# to cancel an order". If the users want the instruction to be triggered
|
|
19068
|
+
# unconditionally, the condition can be empty.
|
|
19069
|
+
# Corresponds to the JSON property `condition`
|
|
19070
|
+
# @return [String]
|
|
19071
|
+
attr_accessor :condition
|
|
19072
|
+
|
|
19073
|
+
# Optional. The detailed description of this instruction.
|
|
19074
|
+
# Corresponds to the JSON property `displayDetails`
|
|
19075
|
+
# @return [String]
|
|
19076
|
+
attr_accessor :display_details
|
|
19077
|
+
|
|
19078
|
+
# Optional. Display name for the instruction.
|
|
19079
|
+
# Corresponds to the JSON property `displayName`
|
|
19080
|
+
# @return [String]
|
|
19081
|
+
attr_accessor :display_name
|
|
19082
|
+
|
|
19083
|
+
# Duplication check for the suggestion.
|
|
19084
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19085
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult]
|
|
19086
|
+
attr_accessor :duplicate_check_result
|
|
19087
|
+
|
|
19088
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
|
19089
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
|
19090
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
|
19091
|
+
# Corresponds to the JSON property `systemAction`
|
|
19092
|
+
# @return [String]
|
|
19093
|
+
attr_accessor :system_action
|
|
19094
|
+
|
|
19095
|
+
def initialize(**args)
|
|
19096
|
+
update!(**args)
|
|
19097
|
+
end
|
|
19098
|
+
|
|
19099
|
+
# Update properties of this object
|
|
19100
|
+
def update!(**args)
|
|
19101
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19102
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
19103
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
|
19104
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
19105
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19106
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
|
19107
|
+
end
|
|
19108
|
+
end
|
|
19109
|
+
|
|
19110
|
+
# Duplication check for the suggestion.
|
|
19111
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult
|
|
19112
|
+
include Google::Apis::Core::Hashable
|
|
19113
|
+
|
|
19114
|
+
# Output only. The duplicate suggestions.
|
|
19115
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19116
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
|
19117
|
+
attr_accessor :duplicate_suggestions
|
|
19118
|
+
|
|
19119
|
+
def initialize(**args)
|
|
19120
|
+
update!(**args)
|
|
19121
|
+
end
|
|
19122
|
+
|
|
19123
|
+
# Update properties of this object
|
|
19124
|
+
def update!(**args)
|
|
19125
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19126
|
+
end
|
|
19127
|
+
end
|
|
19128
|
+
|
|
19129
|
+
# The duplicate suggestion details.
|
|
19130
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
|
19131
|
+
include Google::Apis::Core::Hashable
|
|
19132
|
+
|
|
19133
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19134
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19135
|
+
# @return [String]
|
|
19136
|
+
attr_accessor :answer_record
|
|
19137
|
+
|
|
19138
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19139
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19140
|
+
# @return [Float]
|
|
19141
|
+
attr_accessor :similarity_score
|
|
19142
|
+
|
|
19143
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19144
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19145
|
+
# @return [Fixnum]
|
|
19146
|
+
attr_accessor :suggestion_index
|
|
19147
|
+
|
|
19148
|
+
def initialize(**args)
|
|
19149
|
+
update!(**args)
|
|
19150
|
+
end
|
|
19151
|
+
|
|
19152
|
+
# Update properties of this object
|
|
19153
|
+
def update!(**args)
|
|
19154
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19155
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19156
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19157
|
+
end
|
|
19158
|
+
end
|
|
19159
|
+
|
|
19160
|
+
# Suggestion for coaching agents.
|
|
19161
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestion
|
|
19162
|
+
include Google::Apis::Core::Hashable
|
|
19163
|
+
|
|
19164
|
+
# Optional. Suggested actions for the agent to take.
|
|
19165
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
|
19166
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion>]
|
|
19167
|
+
attr_accessor :agent_action_suggestions
|
|
19168
|
+
|
|
19169
|
+
# Optional. Instructions applicable based on the current context.
|
|
19170
|
+
# Corresponds to the JSON property `applicableInstructions`
|
|
19171
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
|
|
19172
|
+
attr_accessor :applicable_instructions
|
|
19173
|
+
|
|
19174
|
+
# Optional. Sample response for the Agent.
|
|
19175
|
+
# Corresponds to the JSON property `sampleResponses`
|
|
19176
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse>]
|
|
19177
|
+
attr_accessor :sample_responses
|
|
19178
|
+
|
|
19179
|
+
def initialize(**args)
|
|
19180
|
+
update!(**args)
|
|
19181
|
+
end
|
|
19182
|
+
|
|
19183
|
+
# Update properties of this object
|
|
19184
|
+
def update!(**args)
|
|
19185
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
|
19186
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
|
19187
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
|
19188
|
+
end
|
|
19189
|
+
end
|
|
19190
|
+
|
|
19191
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
|
19192
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion
|
|
19193
|
+
include Google::Apis::Core::Hashable
|
|
19194
|
+
|
|
19195
|
+
# Optional. The suggested action for the agent.
|
|
19196
|
+
# Corresponds to the JSON property `agentAction`
|
|
19197
|
+
# @return [String]
|
|
19198
|
+
attr_accessor :agent_action
|
|
19199
|
+
|
|
19200
|
+
# Duplication check for the suggestion.
|
|
19201
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19202
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19203
|
+
attr_accessor :duplicate_check_result
|
|
19204
|
+
|
|
19205
|
+
# Sources for the suggestion.
|
|
19206
|
+
# Corresponds to the JSON property `sources`
|
|
19207
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19208
|
+
attr_accessor :sources
|
|
19209
|
+
|
|
19210
|
+
def initialize(**args)
|
|
19211
|
+
update!(**args)
|
|
19212
|
+
end
|
|
19213
|
+
|
|
19214
|
+
# Update properties of this object
|
|
19215
|
+
def update!(**args)
|
|
19216
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19217
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19218
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19219
|
+
end
|
|
19220
|
+
end
|
|
19221
|
+
|
|
19222
|
+
# Duplication check for the suggestion.
|
|
19223
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult
|
|
19224
|
+
include Google::Apis::Core::Hashable
|
|
19225
|
+
|
|
19226
|
+
# Output only. The duplicate suggestions.
|
|
19227
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19228
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
|
19229
|
+
attr_accessor :duplicate_suggestions
|
|
19230
|
+
|
|
19231
|
+
def initialize(**args)
|
|
19232
|
+
update!(**args)
|
|
19233
|
+
end
|
|
19234
|
+
|
|
19235
|
+
# Update properties of this object
|
|
19236
|
+
def update!(**args)
|
|
19237
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19238
|
+
end
|
|
19239
|
+
end
|
|
19240
|
+
|
|
19241
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
|
19242
|
+
# as they are identifiers for duplicate suggestions.
|
|
19243
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
|
19244
|
+
include Google::Apis::Core::Hashable
|
|
19245
|
+
|
|
19246
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19247
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19248
|
+
# @return [String]
|
|
19249
|
+
attr_accessor :answer_record
|
|
19250
|
+
|
|
19251
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19252
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19253
|
+
# @return [Float]
|
|
19254
|
+
attr_accessor :similarity_score
|
|
19255
|
+
|
|
19256
|
+
# Sources for the suggestion.
|
|
19257
|
+
# Corresponds to the JSON property `sources`
|
|
19258
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19259
|
+
attr_accessor :sources
|
|
19260
|
+
|
|
19261
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19262
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19263
|
+
# @return [Fixnum]
|
|
19264
|
+
attr_accessor :suggestion_index
|
|
19265
|
+
|
|
19266
|
+
def initialize(**args)
|
|
19267
|
+
update!(**args)
|
|
19268
|
+
end
|
|
19269
|
+
|
|
19270
|
+
# Update properties of this object
|
|
19271
|
+
def update!(**args)
|
|
19272
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19273
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19274
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19275
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19276
|
+
end
|
|
19277
|
+
end
|
|
19278
|
+
|
|
19279
|
+
# Sample response that the agent can use. This could be based on applicable
|
|
19280
|
+
# instructions and ingested data from other systems.
|
|
19281
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse
|
|
19282
|
+
include Google::Apis::Core::Hashable
|
|
19283
|
+
|
|
19284
|
+
# Duplication check for the suggestion.
|
|
19285
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19286
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19287
|
+
attr_accessor :duplicate_check_result
|
|
19288
|
+
|
|
19289
|
+
# Optional. Sample response for Agent in text.
|
|
19290
|
+
# Corresponds to the JSON property `responseText`
|
|
19291
|
+
# @return [String]
|
|
19292
|
+
attr_accessor :response_text
|
|
19293
|
+
|
|
19294
|
+
# Sources for the suggestion.
|
|
19295
|
+
# Corresponds to the JSON property `sources`
|
|
19296
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19297
|
+
attr_accessor :sources
|
|
19298
|
+
|
|
19299
|
+
def initialize(**args)
|
|
19300
|
+
update!(**args)
|
|
19301
|
+
end
|
|
19302
|
+
|
|
19303
|
+
# Update properties of this object
|
|
19304
|
+
def update!(**args)
|
|
19305
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19306
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
|
19307
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19308
|
+
end
|
|
19309
|
+
end
|
|
19310
|
+
|
|
19311
|
+
# Sources for the suggestion.
|
|
19312
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources
|
|
19313
|
+
include Google::Apis::Core::Hashable
|
|
19314
|
+
|
|
19315
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
|
19316
|
+
# of the applicable_instructions field.
|
|
19317
|
+
# Corresponds to the JSON property `instructionIndexes`
|
|
19318
|
+
# @return [Array<Fixnum>]
|
|
19319
|
+
attr_accessor :instruction_indexes
|
|
19320
|
+
|
|
19321
|
+
def initialize(**args)
|
|
19322
|
+
update!(**args)
|
|
19323
|
+
end
|
|
19324
|
+
|
|
19325
|
+
# Update properties of this object
|
|
19326
|
+
def update!(**args)
|
|
19327
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
|
19328
|
+
end
|
|
19329
|
+
end
|
|
19330
|
+
|
|
17772
19331
|
# Represents a part of a message possibly annotated with an entity. The part can
|
|
17773
19332
|
# be an entity or purely a part of the message between two entities or message
|
|
17774
19333
|
# start/end.
|
|
@@ -18469,6 +20028,11 @@ module Google
|
|
|
18469
20028
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
|
18470
20029
|
include Google::Apis::Core::Hashable
|
|
18471
20030
|
|
|
20031
|
+
# Suggestion for coaching agents.
|
|
20032
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
|
20033
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AgentCoachingSuggestion]
|
|
20034
|
+
attr_accessor :agent_coaching_suggestion
|
|
20035
|
+
|
|
18472
20036
|
# Suggestion generated using free form generator.
|
|
18473
20037
|
# Corresponds to the JSON property `freeFormSuggestion`
|
|
18474
20038
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
|
@@ -18490,6 +20054,7 @@ module Google
|
|
|
18490
20054
|
|
|
18491
20055
|
# Update properties of this object
|
|
18492
20056
|
def update!(**args)
|
|
20057
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
|
18493
20058
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
|
18494
20059
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
|
18495
20060
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
|
@@ -21806,6 +23371,11 @@ module Google
|
|
|
21806
23371
|
# @return [String]
|
|
21807
23372
|
attr_accessor :action
|
|
21808
23373
|
|
|
23374
|
+
# Optional. The answer record associated with this tool call.
|
|
23375
|
+
# Corresponds to the JSON property `answerRecord`
|
|
23376
|
+
# @return [String]
|
|
23377
|
+
attr_accessor :answer_record
|
|
23378
|
+
|
|
21809
23379
|
# Output only. Create time of the tool call.
|
|
21810
23380
|
# Corresponds to the JSON property `createTime`
|
|
21811
23381
|
# @return [String]
|
|
@@ -21816,12 +23386,27 @@ module Google
|
|
|
21816
23386
|
# @return [Hash<String,Object>]
|
|
21817
23387
|
attr_accessor :input_parameters
|
|
21818
23388
|
|
|
23389
|
+
# Output only. State of the tool call
|
|
23390
|
+
# Corresponds to the JSON property `state`
|
|
23391
|
+
# @return [String]
|
|
23392
|
+
attr_accessor :state
|
|
23393
|
+
|
|
21819
23394
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
21820
23395
|
# tools/`.
|
|
21821
23396
|
# Corresponds to the JSON property `tool`
|
|
21822
23397
|
# @return [String]
|
|
21823
23398
|
attr_accessor :tool
|
|
21824
23399
|
|
|
23400
|
+
# Optional. A human readable description of the tool.
|
|
23401
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
23402
|
+
# @return [String]
|
|
23403
|
+
attr_accessor :tool_display_details
|
|
23404
|
+
|
|
23405
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
23406
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
23407
|
+
# @return [String]
|
|
23408
|
+
attr_accessor :tool_display_name
|
|
23409
|
+
|
|
21825
23410
|
def initialize(**args)
|
|
21826
23411
|
update!(**args)
|
|
21827
23412
|
end
|
|
@@ -21829,9 +23414,13 @@ module Google
|
|
|
21829
23414
|
# Update properties of this object
|
|
21830
23415
|
def update!(**args)
|
|
21831
23416
|
@action = args[:action] if args.key?(:action)
|
|
23417
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
21832
23418
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
21833
23419
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
23420
|
+
@state = args[:state] if args.key?(:state)
|
|
21834
23421
|
@tool = args[:tool] if args.key?(:tool)
|
|
23422
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
23423
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
21835
23424
|
end
|
|
21836
23425
|
end
|
|
21837
23426
|
|
|
@@ -21844,6 +23433,11 @@ module Google
|
|
|
21844
23433
|
# @return [String]
|
|
21845
23434
|
attr_accessor :action
|
|
21846
23435
|
|
|
23436
|
+
# Optional. The answer record associated with this tool call result.
|
|
23437
|
+
# Corresponds to the JSON property `answerRecord`
|
|
23438
|
+
# @return [String]
|
|
23439
|
+
attr_accessor :answer_record
|
|
23440
|
+
|
|
21847
23441
|
# Only populated if the response content is utf-8 encoded.
|
|
21848
23442
|
# Corresponds to the JSON property `content`
|
|
21849
23443
|
# @return [String]
|
|
@@ -21879,6 +23473,7 @@ module Google
|
|
|
21879
23473
|
# Update properties of this object
|
|
21880
23474
|
def update!(**args)
|
|
21881
23475
|
@action = args[:action] if args.key?(:action)
|
|
23476
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
21882
23477
|
@content = args[:content] if args.key?(:content)
|
|
21883
23478
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
21884
23479
|
@error = args[:error] if args.key?(:error)
|
|
@@ -22255,6 +23850,13 @@ module Google
|
|
|
22255
23850
|
# @return [Array<Google::Apis::DialogflowV2::GoogleLongrunningOperation>]
|
|
22256
23851
|
attr_accessor :operations
|
|
22257
23852
|
|
|
23853
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
23854
|
+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
|
|
23855
|
+
# when attempting to list all resources across all supported locations.
|
|
23856
|
+
# Corresponds to the JSON property `unreachable`
|
|
23857
|
+
# @return [Array<String>]
|
|
23858
|
+
attr_accessor :unreachable
|
|
23859
|
+
|
|
22258
23860
|
def initialize(**args)
|
|
22259
23861
|
update!(**args)
|
|
22260
23862
|
end
|
|
@@ -22263,6 +23865,7 @@ module Google
|
|
|
22263
23865
|
def update!(**args)
|
|
22264
23866
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
22265
23867
|
@operations = args[:operations] if args.key?(:operations)
|
|
23868
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
22266
23869
|
end
|
|
22267
23870
|
end
|
|
22268
23871
|
|