google-apis-dialogflow_v2beta1 0.111.0 → 0.112.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.
@@ -7878,6 +7878,282 @@ module Google
7878
7878
  end
7879
7879
  end
7880
7880
 
7881
+ # Agent Coaching instructions that customer can configure.
7882
+ class GoogleCloudDialogflowV2AgentCoachingInstruction
7883
+ include Google::Apis::Core::Hashable
7884
+
7885
+ # Optional. The action that human agent should take. For example, "apologize for
7886
+ # the slow shipping". If the users only want to use agent coaching for intent
7887
+ # detection, agent_action can be empty
7888
+ # Corresponds to the JSON property `agentAction`
7889
+ # @return [String]
7890
+ attr_accessor :agent_action
7891
+
7892
+ # Optional. The condition of the instruction. For example, "the customer wants
7893
+ # to cancel an order". If the users want the instruction to be triggered
7894
+ # unconditionally, the condition can be empty.
7895
+ # Corresponds to the JSON property `condition`
7896
+ # @return [String]
7897
+ attr_accessor :condition
7898
+
7899
+ # Optional. The detailed description of this instruction.
7900
+ # Corresponds to the JSON property `displayDetails`
7901
+ # @return [String]
7902
+ attr_accessor :display_details
7903
+
7904
+ # Optional. Display name for the instruction.
7905
+ # Corresponds to the JSON property `displayName`
7906
+ # @return [String]
7907
+ attr_accessor :display_name
7908
+
7909
+ # Duplication check for the suggestion.
7910
+ # Corresponds to the JSON property `duplicateCheckResult`
7911
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult]
7912
+ attr_accessor :duplicate_check_result
7913
+
7914
+ # Optional. The action that system should take. For example, "call GetOrderTime
7915
+ # with order_number=`order number provided by the customer`". If the users don't
7916
+ # have plugins or don't want to trigger plugins, the system_action can be empty
7917
+ # Corresponds to the JSON property `systemAction`
7918
+ # @return [String]
7919
+ attr_accessor :system_action
7920
+
7921
+ def initialize(**args)
7922
+ update!(**args)
7923
+ end
7924
+
7925
+ # Update properties of this object
7926
+ def update!(**args)
7927
+ @agent_action = args[:agent_action] if args.key?(:agent_action)
7928
+ @condition = args[:condition] if args.key?(:condition)
7929
+ @display_details = args[:display_details] if args.key?(:display_details)
7930
+ @display_name = args[:display_name] if args.key?(:display_name)
7931
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
7932
+ @system_action = args[:system_action] if args.key?(:system_action)
7933
+ end
7934
+ end
7935
+
7936
+ # Duplication check for the suggestion.
7937
+ class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult
7938
+ include Google::Apis::Core::Hashable
7939
+
7940
+ # Output only. The duplicate suggestions.
7941
+ # Corresponds to the JSON property `duplicateSuggestions`
7942
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
7943
+ attr_accessor :duplicate_suggestions
7944
+
7945
+ def initialize(**args)
7946
+ update!(**args)
7947
+ end
7948
+
7949
+ # Update properties of this object
7950
+ def update!(**args)
7951
+ @duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
7952
+ end
7953
+ end
7954
+
7955
+ # The duplicate suggestion details.
7956
+ class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
7957
+ include Google::Apis::Core::Hashable
7958
+
7959
+ # Output only. The answer record id of the past duplicate suggestion.
7960
+ # Corresponds to the JSON property `answerRecord`
7961
+ # @return [String]
7962
+ attr_accessor :answer_record
7963
+
7964
+ # Output only. The similarity score of between the past and current suggestion.
7965
+ # Corresponds to the JSON property `similarityScore`
7966
+ # @return [Float]
7967
+ attr_accessor :similarity_score
7968
+
7969
+ # Output only. The index of the duplicate suggestion in the past suggestion list.
7970
+ # Corresponds to the JSON property `suggestionIndex`
7971
+ # @return [Fixnum]
7972
+ attr_accessor :suggestion_index
7973
+
7974
+ def initialize(**args)
7975
+ update!(**args)
7976
+ end
7977
+
7978
+ # Update properties of this object
7979
+ def update!(**args)
7980
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
7981
+ @similarity_score = args[:similarity_score] if args.key?(:similarity_score)
7982
+ @suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
7983
+ end
7984
+ end
7985
+
7986
+ # Suggestion for coaching agents.
7987
+ class GoogleCloudDialogflowV2AgentCoachingSuggestion
7988
+ include Google::Apis::Core::Hashable
7989
+
7990
+ # Optional. Suggested actions for the agent to take.
7991
+ # Corresponds to the JSON property `agentActionSuggestions`
7992
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion>]
7993
+ attr_accessor :agent_action_suggestions
7994
+
7995
+ # Optional. Instructions applicable based on the current context.
7996
+ # Corresponds to the JSON property `applicableInstructions`
7997
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingInstruction>]
7998
+ attr_accessor :applicable_instructions
7999
+
8000
+ # Optional. Sample response for the Agent.
8001
+ # Corresponds to the JSON property `sampleResponses`
8002
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse>]
8003
+ attr_accessor :sample_responses
8004
+
8005
+ def initialize(**args)
8006
+ update!(**args)
8007
+ end
8008
+
8009
+ # Update properties of this object
8010
+ def update!(**args)
8011
+ @agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
8012
+ @applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
8013
+ @sample_responses = args[:sample_responses] if args.key?(:sample_responses)
8014
+ end
8015
+ end
8016
+
8017
+ # Actions suggested for the agent. This is based on applicable instructions.
8018
+ class GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion
8019
+ include Google::Apis::Core::Hashable
8020
+
8021
+ # Optional. The suggested action for the agent.
8022
+ # Corresponds to the JSON property `agentAction`
8023
+ # @return [String]
8024
+ attr_accessor :agent_action
8025
+
8026
+ # Duplication check for the suggestion.
8027
+ # Corresponds to the JSON property `duplicateCheckResult`
8028
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
8029
+ attr_accessor :duplicate_check_result
8030
+
8031
+ # Sources for the suggestion.
8032
+ # Corresponds to the JSON property `sources`
8033
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
8034
+ attr_accessor :sources
8035
+
8036
+ def initialize(**args)
8037
+ update!(**args)
8038
+ end
8039
+
8040
+ # Update properties of this object
8041
+ def update!(**args)
8042
+ @agent_action = args[:agent_action] if args.key?(:agent_action)
8043
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
8044
+ @sources = args[:sources] if args.key?(:sources)
8045
+ end
8046
+ end
8047
+
8048
+ # Duplication check for the suggestion.
8049
+ class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult
8050
+ include Google::Apis::Core::Hashable
8051
+
8052
+ # Output only. The duplicate suggestions.
8053
+ # Corresponds to the JSON property `duplicateSuggestions`
8054
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
8055
+ attr_accessor :duplicate_suggestions
8056
+
8057
+ def initialize(**args)
8058
+ update!(**args)
8059
+ end
8060
+
8061
+ # Update properties of this object
8062
+ def update!(**args)
8063
+ @duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
8064
+ end
8065
+ end
8066
+
8067
+ # The duplicate suggestion details. Keeping answer_record and sources together
8068
+ # as they are identifiers for duplicate suggestions.
8069
+ class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
8070
+ include Google::Apis::Core::Hashable
8071
+
8072
+ # Output only. The answer record id of the past duplicate suggestion.
8073
+ # Corresponds to the JSON property `answerRecord`
8074
+ # @return [String]
8075
+ attr_accessor :answer_record
8076
+
8077
+ # Output only. The similarity score of between the past and current suggestion.
8078
+ # Corresponds to the JSON property `similarityScore`
8079
+ # @return [Float]
8080
+ attr_accessor :similarity_score
8081
+
8082
+ # Sources for the suggestion.
8083
+ # Corresponds to the JSON property `sources`
8084
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
8085
+ attr_accessor :sources
8086
+
8087
+ # Output only. The index of the duplicate suggestion in the past suggestion list.
8088
+ # Corresponds to the JSON property `suggestionIndex`
8089
+ # @return [Fixnum]
8090
+ attr_accessor :suggestion_index
8091
+
8092
+ def initialize(**args)
8093
+ update!(**args)
8094
+ end
8095
+
8096
+ # Update properties of this object
8097
+ def update!(**args)
8098
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
8099
+ @similarity_score = args[:similarity_score] if args.key?(:similarity_score)
8100
+ @sources = args[:sources] if args.key?(:sources)
8101
+ @suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
8102
+ end
8103
+ end
8104
+
8105
+ # Sample response that the agent can use. This could be based on applicable
8106
+ # instructions and ingested data from other systems.
8107
+ class GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse
8108
+ include Google::Apis::Core::Hashable
8109
+
8110
+ # Duplication check for the suggestion.
8111
+ # Corresponds to the JSON property `duplicateCheckResult`
8112
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
8113
+ attr_accessor :duplicate_check_result
8114
+
8115
+ # Optional. Sample response for Agent in text.
8116
+ # Corresponds to the JSON property `responseText`
8117
+ # @return [String]
8118
+ attr_accessor :response_text
8119
+
8120
+ # Sources for the suggestion.
8121
+ # Corresponds to the JSON property `sources`
8122
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
8123
+ attr_accessor :sources
8124
+
8125
+ def initialize(**args)
8126
+ update!(**args)
8127
+ end
8128
+
8129
+ # Update properties of this object
8130
+ def update!(**args)
8131
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
8132
+ @response_text = args[:response_text] if args.key?(:response_text)
8133
+ @sources = args[:sources] if args.key?(:sources)
8134
+ end
8135
+ end
8136
+
8137
+ # Sources for the suggestion.
8138
+ class GoogleCloudDialogflowV2AgentCoachingSuggestionSources
8139
+ include Google::Apis::Core::Hashable
8140
+
8141
+ # Output only. Source instruction indexes for the suggestion. This is the index
8142
+ # of the applicable_instructions field.
8143
+ # Corresponds to the JSON property `instructionIndexes`
8144
+ # @return [Array<Fixnum>]
8145
+ attr_accessor :instruction_indexes
8146
+
8147
+ def initialize(**args)
8148
+ update!(**args)
8149
+ end
8150
+
8151
+ # Update properties of this object
8152
+ def update!(**args)
8153
+ @instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
8154
+ end
8155
+ end
8156
+
7881
8157
  # Represents a part of a message possibly annotated with an entity. The part can
7882
8158
  # be an entity or purely a part of the message between two entities or message
7883
8159
  # start/end.
@@ -8831,6 +9107,11 @@ module Google
8831
9107
  class GoogleCloudDialogflowV2GeneratorSuggestion
8832
9108
  include Google::Apis::Core::Hashable
8833
9109
 
9110
+ # Suggestion for coaching agents.
9111
+ # Corresponds to the JSON property `agentCoachingSuggestion`
9112
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestion]
9113
+ attr_accessor :agent_coaching_suggestion
9114
+
8834
9115
  # Suggestion generated using free form generator.
8835
9116
  # Corresponds to the JSON property `freeFormSuggestion`
8836
9117
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FreeFormSuggestion]
@@ -8852,6 +9133,7 @@ module Google
8852
9133
 
8853
9134
  # Update properties of this object
8854
9135
  def update!(**args)
9136
+ @agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
8855
9137
  @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
8856
9138
  @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
8857
9139
  @tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
@@ -11384,6 +11666,11 @@ module Google
11384
11666
  # @return [String]
11385
11667
  attr_accessor :action
11386
11668
 
11669
+ # Optional. The answer record associated with this tool call.
11670
+ # Corresponds to the JSON property `answerRecord`
11671
+ # @return [String]
11672
+ attr_accessor :answer_record
11673
+
11387
11674
  # Output only. Create time of the tool call.
11388
11675
  # Corresponds to the JSON property `createTime`
11389
11676
  # @return [String]
@@ -11394,12 +11681,27 @@ module Google
11394
11681
  # @return [Hash<String,Object>]
11395
11682
  attr_accessor :input_parameters
11396
11683
 
11684
+ # Output only. State of the tool call.
11685
+ # Corresponds to the JSON property `state`
11686
+ # @return [String]
11687
+ attr_accessor :state
11688
+
11397
11689
  # Optional. The tool associated with this call. Format: `projects//locations//
11398
11690
  # tools/`.
11399
11691
  # Corresponds to the JSON property `tool`
11400
11692
  # @return [String]
11401
11693
  attr_accessor :tool
11402
11694
 
11695
+ # Optional. A human readable description of the tool.
11696
+ # Corresponds to the JSON property `toolDisplayDetails`
11697
+ # @return [String]
11698
+ attr_accessor :tool_display_details
11699
+
11700
+ # Optional. A human readable short name of the tool, to be shown on the UI.
11701
+ # Corresponds to the JSON property `toolDisplayName`
11702
+ # @return [String]
11703
+ attr_accessor :tool_display_name
11704
+
11403
11705
  def initialize(**args)
11404
11706
  update!(**args)
11405
11707
  end
@@ -11407,9 +11709,13 @@ module Google
11407
11709
  # Update properties of this object
11408
11710
  def update!(**args)
11409
11711
  @action = args[:action] if args.key?(:action)
11712
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
11410
11713
  @create_time = args[:create_time] if args.key?(:create_time)
11411
11714
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
11715
+ @state = args[:state] if args.key?(:state)
11412
11716
  @tool = args[:tool] if args.key?(:tool)
11717
+ @tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
11718
+ @tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
11413
11719
  end
11414
11720
  end
11415
11721
 
@@ -11422,6 +11728,11 @@ module Google
11422
11728
  # @return [String]
11423
11729
  attr_accessor :action
11424
11730
 
11731
+ # Optional. The answer record associated with this tool call result.
11732
+ # Corresponds to the JSON property `answerRecord`
11733
+ # @return [String]
11734
+ attr_accessor :answer_record
11735
+
11425
11736
  # Only populated if the response content is utf-8 encoded.
11426
11737
  # Corresponds to the JSON property `content`
11427
11738
  # @return [String]
@@ -11457,6 +11768,7 @@ module Google
11457
11768
  # Update properties of this object
11458
11769
  def update!(**args)
11459
11770
  @action = args[:action] if args.key?(:action)
11771
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
11460
11772
  @content = args[:content] if args.key?(:content)
11461
11773
  @create_time = args[:create_time] if args.key?(:create_time)
11462
11774
  @error = args[:error] if args.key?(:error)
@@ -11943,6 +12255,321 @@ module Google
11943
12255
  end
11944
12256
  end
11945
12257
 
12258
+ # Agent Coaching context that customer can configure.
12259
+ class GoogleCloudDialogflowV2beta1AgentCoachingContext
12260
+ include Google::Apis::Core::Hashable
12261
+
12262
+ # Optional. Customized instructions for agent coaching.
12263
+ # Corresponds to the JSON property `instructions`
12264
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
12265
+ attr_accessor :instructions
12266
+
12267
+ # Optional. Output language code.
12268
+ # Corresponds to the JSON property `outputLanguageCode`
12269
+ # @return [String]
12270
+ attr_accessor :output_language_code
12271
+
12272
+ # Optional. The overarching guidance for the agent coaching. This should be set
12273
+ # only for v1.5 and later versions.
12274
+ # Corresponds to the JSON property `overarchingGuidance`
12275
+ # @return [String]
12276
+ attr_accessor :overarching_guidance
12277
+
12278
+ # Optional. Version of the feature. If not set, default to latest version.
12279
+ # Current candidates are ["2.5"].
12280
+ # Corresponds to the JSON property `version`
12281
+ # @return [String]
12282
+ attr_accessor :version
12283
+
12284
+ def initialize(**args)
12285
+ update!(**args)
12286
+ end
12287
+
12288
+ # Update properties of this object
12289
+ def update!(**args)
12290
+ @instructions = args[:instructions] if args.key?(:instructions)
12291
+ @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
12292
+ @overarching_guidance = args[:overarching_guidance] if args.key?(:overarching_guidance)
12293
+ @version = args[:version] if args.key?(:version)
12294
+ end
12295
+ end
12296
+
12297
+ # Agent Coaching instructions that customer can configure.
12298
+ class GoogleCloudDialogflowV2beta1AgentCoachingInstruction
12299
+ include Google::Apis::Core::Hashable
12300
+
12301
+ # Optional. The action that human agent should take. For example, "apologize for
12302
+ # the slow shipping". If the users only want to use agent coaching for intent
12303
+ # detection, agent_action can be empty
12304
+ # Corresponds to the JSON property `agentAction`
12305
+ # @return [String]
12306
+ attr_accessor :agent_action
12307
+
12308
+ # Optional. The condition of the instruction. For example, "the customer wants
12309
+ # to cancel an order". If the users want the instruction to be triggered
12310
+ # unconditionally, the condition can be empty.
12311
+ # Corresponds to the JSON property `condition`
12312
+ # @return [String]
12313
+ attr_accessor :condition
12314
+
12315
+ # Optional. The detailed description of this instruction.
12316
+ # Corresponds to the JSON property `displayDetails`
12317
+ # @return [String]
12318
+ attr_accessor :display_details
12319
+
12320
+ # Optional. Display name for the instruction.
12321
+ # Corresponds to the JSON property `displayName`
12322
+ # @return [String]
12323
+ attr_accessor :display_name
12324
+
12325
+ # Duplication check for the suggestion.
12326
+ # Corresponds to the JSON property `duplicateCheckResult`
12327
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult]
12328
+ attr_accessor :duplicate_check_result
12329
+
12330
+ # Optional. The action that system should take. For example, "call GetOrderTime
12331
+ # with order_number=`order number provided by the customer`". If the users don't
12332
+ # have plugins or don't want to trigger plugins, the system_action can be empty
12333
+ # Corresponds to the JSON property `systemAction`
12334
+ # @return [String]
12335
+ attr_accessor :system_action
12336
+
12337
+ def initialize(**args)
12338
+ update!(**args)
12339
+ end
12340
+
12341
+ # Update properties of this object
12342
+ def update!(**args)
12343
+ @agent_action = args[:agent_action] if args.key?(:agent_action)
12344
+ @condition = args[:condition] if args.key?(:condition)
12345
+ @display_details = args[:display_details] if args.key?(:display_details)
12346
+ @display_name = args[:display_name] if args.key?(:display_name)
12347
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
12348
+ @system_action = args[:system_action] if args.key?(:system_action)
12349
+ end
12350
+ end
12351
+
12352
+ # Duplication check for the suggestion.
12353
+ class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult
12354
+ include Google::Apis::Core::Hashable
12355
+
12356
+ # Output only. The duplicate suggestions.
12357
+ # Corresponds to the JSON property `duplicateSuggestions`
12358
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
12359
+ attr_accessor :duplicate_suggestions
12360
+
12361
+ def initialize(**args)
12362
+ update!(**args)
12363
+ end
12364
+
12365
+ # Update properties of this object
12366
+ def update!(**args)
12367
+ @duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
12368
+ end
12369
+ end
12370
+
12371
+ # The duplicate suggestion details.
12372
+ class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
12373
+ include Google::Apis::Core::Hashable
12374
+
12375
+ # Output only. The answer record id of the past duplicate suggestion.
12376
+ # Corresponds to the JSON property `answerRecord`
12377
+ # @return [String]
12378
+ attr_accessor :answer_record
12379
+
12380
+ # Output only. The similarity score of between the past and current suggestion.
12381
+ # Corresponds to the JSON property `similarityScore`
12382
+ # @return [Float]
12383
+ attr_accessor :similarity_score
12384
+
12385
+ # Output only. The index of the duplicate suggestion in the past suggestion list.
12386
+ # Corresponds to the JSON property `suggestionIndex`
12387
+ # @return [Fixnum]
12388
+ attr_accessor :suggestion_index
12389
+
12390
+ def initialize(**args)
12391
+ update!(**args)
12392
+ end
12393
+
12394
+ # Update properties of this object
12395
+ def update!(**args)
12396
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
12397
+ @similarity_score = args[:similarity_score] if args.key?(:similarity_score)
12398
+ @suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
12399
+ end
12400
+ end
12401
+
12402
+ # Suggestion for coaching agents.
12403
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestion
12404
+ include Google::Apis::Core::Hashable
12405
+
12406
+ # Optional. Suggested actions for the agent to take.
12407
+ # Corresponds to the JSON property `agentActionSuggestions`
12408
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion>]
12409
+ attr_accessor :agent_action_suggestions
12410
+
12411
+ # Optional. Instructions applicable based on the current context.
12412
+ # Corresponds to the JSON property `applicableInstructions`
12413
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
12414
+ attr_accessor :applicable_instructions
12415
+
12416
+ # Optional. Sample response for the Agent.
12417
+ # Corresponds to the JSON property `sampleResponses`
12418
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse>]
12419
+ attr_accessor :sample_responses
12420
+
12421
+ def initialize(**args)
12422
+ update!(**args)
12423
+ end
12424
+
12425
+ # Update properties of this object
12426
+ def update!(**args)
12427
+ @agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
12428
+ @applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
12429
+ @sample_responses = args[:sample_responses] if args.key?(:sample_responses)
12430
+ end
12431
+ end
12432
+
12433
+ # Actions suggested for the agent. This is based on applicable instructions.
12434
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion
12435
+ include Google::Apis::Core::Hashable
12436
+
12437
+ # Optional. The suggested action for the agent.
12438
+ # Corresponds to the JSON property `agentAction`
12439
+ # @return [String]
12440
+ attr_accessor :agent_action
12441
+
12442
+ # Duplication check for the suggestion.
12443
+ # Corresponds to the JSON property `duplicateCheckResult`
12444
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
12445
+ attr_accessor :duplicate_check_result
12446
+
12447
+ # Sources for the suggestion.
12448
+ # Corresponds to the JSON property `sources`
12449
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
12450
+ attr_accessor :sources
12451
+
12452
+ def initialize(**args)
12453
+ update!(**args)
12454
+ end
12455
+
12456
+ # Update properties of this object
12457
+ def update!(**args)
12458
+ @agent_action = args[:agent_action] if args.key?(:agent_action)
12459
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
12460
+ @sources = args[:sources] if args.key?(:sources)
12461
+ end
12462
+ end
12463
+
12464
+ # Duplication check for the suggestion.
12465
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult
12466
+ include Google::Apis::Core::Hashable
12467
+
12468
+ # Output only. The duplicate suggestions.
12469
+ # Corresponds to the JSON property `duplicateSuggestions`
12470
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
12471
+ attr_accessor :duplicate_suggestions
12472
+
12473
+ def initialize(**args)
12474
+ update!(**args)
12475
+ end
12476
+
12477
+ # Update properties of this object
12478
+ def update!(**args)
12479
+ @duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
12480
+ end
12481
+ end
12482
+
12483
+ # The duplicate suggestion details. Keeping answer_record and sources together
12484
+ # as they are identifiers for duplicate suggestions.
12485
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
12486
+ include Google::Apis::Core::Hashable
12487
+
12488
+ # Output only. The answer record id of the past duplicate suggestion.
12489
+ # Corresponds to the JSON property `answerRecord`
12490
+ # @return [String]
12491
+ attr_accessor :answer_record
12492
+
12493
+ # Output only. The similarity score of between the past and current suggestion.
12494
+ # Corresponds to the JSON property `similarityScore`
12495
+ # @return [Float]
12496
+ attr_accessor :similarity_score
12497
+
12498
+ # Sources for the suggestion.
12499
+ # Corresponds to the JSON property `sources`
12500
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
12501
+ attr_accessor :sources
12502
+
12503
+ # Output only. The index of the duplicate suggestion in the past suggestion list.
12504
+ # Corresponds to the JSON property `suggestionIndex`
12505
+ # @return [Fixnum]
12506
+ attr_accessor :suggestion_index
12507
+
12508
+ def initialize(**args)
12509
+ update!(**args)
12510
+ end
12511
+
12512
+ # Update properties of this object
12513
+ def update!(**args)
12514
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
12515
+ @similarity_score = args[:similarity_score] if args.key?(:similarity_score)
12516
+ @sources = args[:sources] if args.key?(:sources)
12517
+ @suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
12518
+ end
12519
+ end
12520
+
12521
+ # Sample response that the agent can use. This could be based on applicable
12522
+ # instructions and ingested data from other systems.
12523
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse
12524
+ include Google::Apis::Core::Hashable
12525
+
12526
+ # Duplication check for the suggestion.
12527
+ # Corresponds to the JSON property `duplicateCheckResult`
12528
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
12529
+ attr_accessor :duplicate_check_result
12530
+
12531
+ # Optional. Sample response for Agent in text.
12532
+ # Corresponds to the JSON property `responseText`
12533
+ # @return [String]
12534
+ attr_accessor :response_text
12535
+
12536
+ # Sources for the suggestion.
12537
+ # Corresponds to the JSON property `sources`
12538
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
12539
+ attr_accessor :sources
12540
+
12541
+ def initialize(**args)
12542
+ update!(**args)
12543
+ end
12544
+
12545
+ # Update properties of this object
12546
+ def update!(**args)
12547
+ @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
12548
+ @response_text = args[:response_text] if args.key?(:response_text)
12549
+ @sources = args[:sources] if args.key?(:sources)
12550
+ end
12551
+ end
12552
+
12553
+ # Sources for the suggestion.
12554
+ class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources
12555
+ include Google::Apis::Core::Hashable
12556
+
12557
+ # Output only. Source instruction indexes for the suggestion. This is the index
12558
+ # of the applicable_instructions field.
12559
+ # Corresponds to the JSON property `instructionIndexes`
12560
+ # @return [Array<Fixnum>]
12561
+ attr_accessor :instruction_indexes
12562
+
12563
+ def initialize(**args)
12564
+ update!(**args)
12565
+ end
12566
+
12567
+ # Update properties of this object
12568
+ def update!(**args)
12569
+ @instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
12570
+ end
12571
+ end
12572
+
11946
12573
  # The request message for Participants.AnalyzeContent.
11947
12574
  class GoogleCloudDialogflowV2beta1AnalyzeContentRequest
11948
12575
  include Google::Apis::Core::Hashable
@@ -12023,7 +12650,7 @@ module Google
12023
12650
  # @return [String]
12024
12651
  attr_accessor :request_id
12025
12652
 
12026
- # Represents the selection of a suggestion.
12653
+ # Represents the action to take for a tool call that requires confirmation.
12027
12654
  # Corresponds to the JSON property `suggestionInput`
12028
12655
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput]
12029
12656
  attr_accessor :suggestion_input
@@ -13234,6 +13861,13 @@ module Google
13234
13861
  class GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent
13235
13862
  include Google::Apis::Core::Hashable
13236
13863
 
13864
+ # If the context content was generated from a tool call, specify the answer
13865
+ # record associated with the tool call. Format: `projects//locations//
13866
+ # answerRecords/`.
13867
+ # Corresponds to the JSON property `answerRecord`
13868
+ # @return [String]
13869
+ attr_accessor :answer_record
13870
+
13237
13871
  # Required. The information ingested in a single request.
13238
13872
  # Corresponds to the JSON property `content`
13239
13873
  # @return [String]
@@ -13256,6 +13890,7 @@ module Google
13256
13890
 
13257
13891
  # Update properties of this object
13258
13892
  def update!(**args)
13893
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
13259
13894
  @content = args[:content] if args.key?(:content)
13260
13895
  @content_format = args[:content_format] if args.key?(:content_format)
13261
13896
  @ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
@@ -15005,6 +15640,11 @@ module Google
15005
15640
  class GoogleCloudDialogflowV2beta1Generator
15006
15641
  include Google::Apis::Core::Hashable
15007
15642
 
15643
+ # Agent Coaching context that customer can configure.
15644
+ # Corresponds to the JSON property `agentCoachingContext`
15645
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingContext]
15646
+ attr_accessor :agent_coaching_context
15647
+
15008
15648
  # Output only. Creation time of this generator.
15009
15649
  # Corresponds to the JSON property `createTime`
15010
15650
  # @return [String]
@@ -15039,6 +15679,11 @@ module Google
15039
15679
  # @return [String]
15040
15680
  attr_accessor :published_model
15041
15681
 
15682
+ # Config for suggestion deduping. NEXT_ID: 3
15683
+ # Corresponds to the JSON property `suggestionDedupingConfig`
15684
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionDedupingConfig]
15685
+ attr_accessor :suggestion_deduping_config
15686
+
15042
15687
  # Summarization context that customer can configure.
15043
15688
  # Corresponds to the JSON property `summarizationContext`
15044
15689
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
@@ -15067,12 +15712,14 @@ module Google
15067
15712
 
15068
15713
  # Update properties of this object
15069
15714
  def update!(**args)
15715
+ @agent_coaching_context = args[:agent_coaching_context] if args.key?(:agent_coaching_context)
15070
15716
  @create_time = args[:create_time] if args.key?(:create_time)
15071
15717
  @description = args[:description] if args.key?(:description)
15072
15718
  @free_form_context = args[:free_form_context] if args.key?(:free_form_context)
15073
15719
  @inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
15074
15720
  @name = args[:name] if args.key?(:name)
15075
15721
  @published_model = args[:published_model] if args.key?(:published_model)
15722
+ @suggestion_deduping_config = args[:suggestion_deduping_config] if args.key?(:suggestion_deduping_config)
15076
15723
  @summarization_context = args[:summarization_context] if args.key?(:summarization_context)
15077
15724
  @tools = args[:tools] if args.key?(:tools)
15078
15725
  @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
@@ -15120,6 +15767,22 @@ module Google
15120
15767
  # @return [String]
15121
15768
  attr_accessor :name
15122
15769
 
15770
+ # Output only. A read only boolean field reflecting Zone Isolation status of the
15771
+ # model. The field is an aggregated value of ZI status of its underlying
15772
+ # dependencies. See more details in go/zicy-resource-placement#resource-status
15773
+ # Corresponds to the JSON property `satisfiesPzi`
15774
+ # @return [Boolean]
15775
+ attr_accessor :satisfies_pzi
15776
+ alias_method :satisfies_pzi?, :satisfies_pzi
15777
+
15778
+ # Output only. A read only boolean field reflecting Zone Separation status of
15779
+ # the model. The field is an aggregated value of ZS status of its underlying
15780
+ # dependencies. See more details in go/zicy-resource-placement#resource-status
15781
+ # Corresponds to the JSON property `satisfiesPzs`
15782
+ # @return [Boolean]
15783
+ attr_accessor :satisfies_pzs
15784
+ alias_method :satisfies_pzs?, :satisfies_pzs
15785
+
15123
15786
  # Evaluation metrics for summarization generator.
15124
15787
  # Corresponds to the JSON property `summarizationMetrics`
15125
15788
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetrics]
@@ -15138,6 +15801,8 @@ module Google
15138
15801
  @generator_evaluation_config = args[:generator_evaluation_config] if args.key?(:generator_evaluation_config)
15139
15802
  @initial_generator = args[:initial_generator] if args.key?(:initial_generator)
15140
15803
  @name = args[:name] if args.key?(:name)
15804
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
15805
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
15141
15806
  @summarization_metrics = args[:summarization_metrics] if args.key?(:summarization_metrics)
15142
15807
  end
15143
15808
  end
@@ -15339,6 +16004,11 @@ module Google
15339
16004
  class GoogleCloudDialogflowV2beta1GeneratorSuggestion
15340
16005
  include Google::Apis::Core::Hashable
15341
16006
 
16007
+ # Suggestion for coaching agents.
16008
+ # Corresponds to the JSON property `agentCoachingSuggestion`
16009
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestion]
16010
+ attr_accessor :agent_coaching_suggestion
16011
+
15342
16012
  # Suggestion generated using free form generator.
15343
16013
  # Corresponds to the JSON property `freeFormSuggestion`
15344
16014
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
@@ -15360,6 +16030,7 @@ module Google
15360
16030
 
15361
16031
  # Update properties of this object
15362
16032
  def update!(**args)
16033
+ @agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
15363
16034
  @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
15364
16035
  @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
15365
16036
  @tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
@@ -15533,6 +16204,12 @@ module Google
15533
16204
  attr_accessor :disable_high_latency_features_sync_delivery
15534
16205
  alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
15535
16206
 
16207
+ # Optional. If true, enable asynchronous execution of tools.
16208
+ # Corresponds to the JSON property `enableAsyncToolCall`
16209
+ # @return [Boolean]
16210
+ attr_accessor :enable_async_tool_call
16211
+ alias_method :enable_async_tool_call?, :enable_async_tool_call
16212
+
15536
16213
  # Configuration of different suggestion features. One feature can have only one
15537
16214
  # config.
15538
16215
  # Corresponds to the JSON property `featureConfigs`
@@ -15558,6 +16235,23 @@ module Google
15558
16235
  attr_accessor :group_suggestion_responses
15559
16236
  alias_method :group_suggestion_responses?, :group_suggestion_responses
15560
16237
 
16238
+ # Optional. Enable skipping event based suggestion if the suggestion is empty.
16239
+ # For example, with this field disabled, Knowledge Assist feature sends a Pub/
16240
+ # Sub message when there are no suggestions. Enabling this field will change the
16241
+ # behavior to skip the Pub/Sub message in this situation.
16242
+ # Corresponds to the JSON property `skipEmptyEventBasedSuggestion`
16243
+ # @return [Boolean]
16244
+ attr_accessor :skip_empty_event_based_suggestion
16245
+ alias_method :skip_empty_event_based_suggestion?, :skip_empty_event_based_suggestion
16246
+
16247
+ # Optional. If true, use unredacted transcript data (Supported features:
16248
+ # AI_COACH) and use unredacted ingested context (Supported features: All Agent
16249
+ # Assist features)
16250
+ # Corresponds to the JSON property `useUnredactedConversationData`
16251
+ # @return [Boolean]
16252
+ attr_accessor :use_unredacted_conversation_data
16253
+ alias_method :use_unredacted_conversation_data?, :use_unredacted_conversation_data
16254
+
15561
16255
  def initialize(**args)
15562
16256
  update!(**args)
15563
16257
  end
@@ -15565,9 +16259,12 @@ module Google
15565
16259
  # Update properties of this object
15566
16260
  def update!(**args)
15567
16261
  @disable_high_latency_features_sync_delivery = args[:disable_high_latency_features_sync_delivery] if args.key?(:disable_high_latency_features_sync_delivery)
16262
+ @enable_async_tool_call = args[:enable_async_tool_call] if args.key?(:enable_async_tool_call)
15568
16263
  @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
15569
16264
  @generators = args[:generators] if args.key?(:generators)
15570
16265
  @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
16266
+ @skip_empty_event_based_suggestion = args[:skip_empty_event_based_suggestion] if args.key?(:skip_empty_event_based_suggestion)
16267
+ @use_unredacted_conversation_data = args[:use_unredacted_conversation_data] if args.key?(:use_unredacted_conversation_data)
15571
16268
  end
15572
16269
  end
15573
16270
 
@@ -15623,11 +16320,27 @@ module Google
15623
16320
  attr_accessor :enable_query_suggestion_when_no_answer
15624
16321
  alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
15625
16322
 
16323
+ # Optional. Enable returning detailed reasons for suggestion results. For
16324
+ # example, with this field disabled, Knowledge Search feature returns NotFound
16325
+ # error when no answer is found for the input query. Enabling this field will
16326
+ # change the behavior to return an OK response with detailed information
16327
+ # indicating the lack of results. Supported features: KNOWLEDGE_SEARCH,
16328
+ # KNOWLEDGE_ASSIST
16329
+ # Corresponds to the JSON property `enableResponseDebugInfo`
16330
+ # @return [Boolean]
16331
+ attr_accessor :enable_response_debug_info
16332
+ alias_method :enable_response_debug_info?, :enable_response_debug_info
16333
+
15626
16334
  # Config for suggestion query.
15627
16335
  # Corresponds to the JSON property `queryConfig`
15628
16336
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig]
15629
16337
  attr_accessor :query_config
15630
16338
 
16339
+ # Settings for Responsible AI checks.
16340
+ # Corresponds to the JSON property `raiSettings`
16341
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1RaiSettings]
16342
+ attr_accessor :rai_settings
16343
+
15631
16344
  # The type of Human Agent Assistant API suggestion to perform, and the maximum
15632
16345
  # number of results to return for that type. Multiple `Feature` objects can be
15633
16346
  # specified in the `features` list.
@@ -15653,7 +16366,9 @@ module Google
15653
16366
  @enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
15654
16367
  @enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
15655
16368
  @enable_query_suggestion_when_no_answer = args[:enable_query_suggestion_when_no_answer] if args.key?(:enable_query_suggestion_when_no_answer)
16369
+ @enable_response_debug_info = args[:enable_response_debug_info] if args.key?(:enable_response_debug_info)
15656
16370
  @query_config = args[:query_config] if args.key?(:query_config)
16371
+ @rai_settings = args[:rai_settings] if args.key?(:rai_settings)
15657
16372
  @suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
15658
16373
  @suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
15659
16374
  end
@@ -19776,6 +20491,50 @@ module Google
19776
20491
  end
19777
20492
  end
19778
20493
 
20494
+ # Settings for Responsible AI checks.
20495
+ class GoogleCloudDialogflowV2beta1RaiSettings
20496
+ include Google::Apis::Core::Hashable
20497
+
20498
+ # Configuration for a set of RAI categories.
20499
+ # Corresponds to the JSON property `raiCategoryConfigs`
20500
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig>]
20501
+ attr_accessor :rai_category_configs
20502
+
20503
+ def initialize(**args)
20504
+ update!(**args)
20505
+ end
20506
+
20507
+ # Update properties of this object
20508
+ def update!(**args)
20509
+ @rai_category_configs = args[:rai_category_configs] if args.key?(:rai_category_configs)
20510
+ end
20511
+ end
20512
+
20513
+ # Configuration for a specific RAI category.
20514
+ class GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig
20515
+ include Google::Apis::Core::Hashable
20516
+
20517
+ # Optional. The RAI category.
20518
+ # Corresponds to the JSON property `category`
20519
+ # @return [String]
20520
+ attr_accessor :category
20521
+
20522
+ # Optional. The sensitivity level for this category.
20523
+ # Corresponds to the JSON property `sensitivityLevel`
20524
+ # @return [String]
20525
+ attr_accessor :sensitivity_level
20526
+
20527
+ def initialize(**args)
20528
+ update!(**args)
20529
+ end
20530
+
20531
+ # Update properties of this object
20532
+ def update!(**args)
20533
+ @category = args[:category] if args.key?(:category)
20534
+ @sensitivity_level = args[:sensitivity_level] if args.key?(:sensitivity_level)
20535
+ end
20536
+ end
20537
+
19779
20538
  # Request message for Documents.ReloadDocument.
19780
20539
  class GoogleCloudDialogflowV2beta1ReloadDocumentRequest
19781
20540
  include Google::Apis::Core::Hashable
@@ -21569,6 +22328,33 @@ module Google
21569
22328
  end
21570
22329
  end
21571
22330
 
22331
+ # Config for suggestion deduping. NEXT_ID: 3
22332
+ class GoogleCloudDialogflowV2beta1SuggestionDedupingConfig
22333
+ include Google::Apis::Core::Hashable
22334
+
22335
+ # Optional. Whether to enable suggestion deduping.
22336
+ # Corresponds to the JSON property `enableDeduping`
22337
+ # @return [Boolean]
22338
+ attr_accessor :enable_deduping
22339
+ alias_method :enable_deduping?, :enable_deduping
22340
+
22341
+ # Optional. The threshold for similarity between two suggestions. Acceptable
22342
+ # value is [0.0, 1.0], default to 0.8
22343
+ # Corresponds to the JSON property `similarityThreshold`
22344
+ # @return [Float]
22345
+ attr_accessor :similarity_threshold
22346
+
22347
+ def initialize(**args)
22348
+ update!(**args)
22349
+ end
22350
+
22351
+ # Update properties of this object
22352
+ def update!(**args)
22353
+ @enable_deduping = args[:enable_deduping] if args.key?(:enable_deduping)
22354
+ @similarity_threshold = args[:similarity_threshold] if args.key?(:similarity_threshold)
22355
+ end
22356
+ end
22357
+
21572
22358
  # Represents suggested answer from "frequently asked questions".
21573
22359
  class GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
21574
22360
  include Google::Apis::Core::Hashable
@@ -21644,13 +22430,17 @@ module Google
21644
22430
  end
21645
22431
  end
21646
22432
 
21647
- # Represents the selection of a suggestion.
22433
+ # Represents the action to take for a tool call that requires confirmation.
21648
22434
  class GoogleCloudDialogflowV2beta1SuggestionInput
21649
22435
  include Google::Apis::Core::Hashable
21650
22436
 
21651
- # Required. The ID of a suggestion selected by the human agent. The suggestion(s)
21652
- # were generated in a previous call to request Dialogflow assist. The format is:
21653
- # `projects//locations//answerRecords/` where is an alphanumeric string.
22437
+ # Optional. The type of action to take with the tool.
22438
+ # Corresponds to the JSON property `action`
22439
+ # @return [String]
22440
+ attr_accessor :action
22441
+
22442
+ # Required. Format: `projects//locations//answerRecords/` The answer record
22443
+ # associated with the tool call.
21654
22444
  # Corresponds to the JSON property `answerRecord`
21655
22445
  # @return [String]
21656
22446
  attr_accessor :answer_record
@@ -21661,22 +22451,19 @@ module Google
21661
22451
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput]
21662
22452
  attr_accessor :intent_input
21663
22453
 
21664
- # In Dialogflow assist for v3, the user can submit a form by sending a
21665
- # SuggestionInput. The form is uniquely determined by the answer_record field,
21666
- # which identifies a v3 QueryResult containing the current page. The form
21667
- # parameters are specified via the parameters field. Depending on your protocol
21668
- # or client library language, this is a map, associative array, symbol table,
21669
- # dictionary, or JSON object composed of a collection of (MapKey, MapValue)
21670
- # pairs: * MapKey type: string * MapKey value: parameter name * MapValue type:
21671
- # If parameter's entity type is a composite entity then use map, otherwise,
21672
- # depending on the parameter value type, it could be one of string, number,
21673
- # boolean, null, list or map. * MapValue value: If parameter's entity type is a
21674
- # composite entity then use map from composite entity property names to property
21675
- # values, otherwise, use parameter value.
22454
+ # Parameters to be used for the tool call. If not provided, the tool will be
22455
+ # called without any parameters.
21676
22456
  # Corresponds to the JSON property `parameters`
21677
22457
  # @return [Hash<String,Object>]
21678
22458
  attr_accessor :parameters
21679
22459
 
22460
+ # Optional. Time when the current suggest input is sent. For tool calls, this
22461
+ # timestamp (along with the answer record) will be included in the corresponding
22462
+ # tool call result so that it can be identified.
22463
+ # Corresponds to the JSON property `sendTime`
22464
+ # @return [String]
22465
+ attr_accessor :send_time
22466
+
21680
22467
  # Represents the natural language text to be processed.
21681
22468
  # Corresponds to the JSON property `textOverride`
21682
22469
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
@@ -21688,9 +22475,11 @@ module Google
21688
22475
 
21689
22476
  # Update properties of this object
21690
22477
  def update!(**args)
22478
+ @action = args[:action] if args.key?(:action)
21691
22479
  @answer_record = args[:answer_record] if args.key?(:answer_record)
21692
22480
  @intent_input = args[:intent_input] if args.key?(:intent_input)
21693
22481
  @parameters = args[:parameters] if args.key?(:parameters)
22482
+ @send_time = args[:send_time] if args.key?(:send_time)
21694
22483
  @text_override = args[:text_override] if args.key?(:text_override)
21695
22484
  end
21696
22485
  end
@@ -22509,6 +23298,11 @@ module Google
22509
23298
  # @return [String]
22510
23299
  attr_accessor :action
22511
23300
 
23301
+ # Optional. The answer record associated with this tool call.
23302
+ # Corresponds to the JSON property `answerRecord`
23303
+ # @return [String]
23304
+ attr_accessor :answer_record
23305
+
22512
23306
  # Output only. Create time of the tool call.
22513
23307
  # Corresponds to the JSON property `createTime`
22514
23308
  # @return [String]
@@ -22519,12 +23313,27 @@ module Google
22519
23313
  # @return [Hash<String,Object>]
22520
23314
  attr_accessor :input_parameters
22521
23315
 
23316
+ # Output only. State of the tool call
23317
+ # Corresponds to the JSON property `state`
23318
+ # @return [String]
23319
+ attr_accessor :state
23320
+
22522
23321
  # Optional. The tool associated with this call. Format: `projects//locations//
22523
23322
  # tools/`.
22524
23323
  # Corresponds to the JSON property `tool`
22525
23324
  # @return [String]
22526
23325
  attr_accessor :tool
22527
23326
 
23327
+ # Optional. A human readable description of the tool.
23328
+ # Corresponds to the JSON property `toolDisplayDetails`
23329
+ # @return [String]
23330
+ attr_accessor :tool_display_details
23331
+
23332
+ # Optional. A human readable short name of the tool, to be shown on the UI.
23333
+ # Corresponds to the JSON property `toolDisplayName`
23334
+ # @return [String]
23335
+ attr_accessor :tool_display_name
23336
+
22528
23337
  def initialize(**args)
22529
23338
  update!(**args)
22530
23339
  end
@@ -22532,9 +23341,13 @@ module Google
22532
23341
  # Update properties of this object
22533
23342
  def update!(**args)
22534
23343
  @action = args[:action] if args.key?(:action)
23344
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
22535
23345
  @create_time = args[:create_time] if args.key?(:create_time)
22536
23346
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
23347
+ @state = args[:state] if args.key?(:state)
22537
23348
  @tool = args[:tool] if args.key?(:tool)
23349
+ @tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
23350
+ @tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
22538
23351
  end
22539
23352
  end
22540
23353
 
@@ -22547,6 +23360,11 @@ module Google
22547
23360
  # @return [String]
22548
23361
  attr_accessor :action
22549
23362
 
23363
+ # Optional. The answer record associated with this tool call result.
23364
+ # Corresponds to the JSON property `answerRecord`
23365
+ # @return [String]
23366
+ attr_accessor :answer_record
23367
+
22550
23368
  # Only populated if the response content is utf-8 encoded.
22551
23369
  # Corresponds to the JSON property `content`
22552
23370
  # @return [String]
@@ -22582,6 +23400,7 @@ module Google
22582
23400
  # Update properties of this object
22583
23401
  def update!(**args)
22584
23402
  @action = args[:action] if args.key?(:action)
23403
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
22585
23404
  @content = args[:content] if args.key?(:content)
22586
23405
  @create_time = args[:create_time] if args.key?(:create_time)
22587
23406
  @error = args[:error] if args.key?(:error)
@@ -23127,6 +23946,13 @@ module Google
23127
23946
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation>]
23128
23947
  attr_accessor :operations
23129
23948
 
23949
+ # Unordered list. Unreachable resources. Populated when the request sets `
23950
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
23951
+ # when attempting to list all resources across all supported locations.
23952
+ # Corresponds to the JSON property `unreachable`
23953
+ # @return [Array<String>]
23954
+ attr_accessor :unreachable
23955
+
23130
23956
  def initialize(**args)
23131
23957
  update!(**args)
23132
23958
  end
@@ -23135,6 +23961,7 @@ module Google
23135
23961
  def update!(**args)
23136
23962
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
23137
23963
  @operations = args[:operations] if args.key?(:operations)
23964
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
23138
23965
  end
23139
23966
  end
23140
23967