google-apis-dialogflow_v2beta1 0.85.0 → 0.87.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,13 +119,13 @@ module Google
119
119
  class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
120
120
  include Google::Apis::Core::Hashable
121
121
 
122
- # If true, DF Interaction logging is currently enabled.
122
+ # Enables DF Interaction logging.
123
123
  # Corresponds to the JSON property `enableInteractionLogging`
124
124
  # @return [Boolean]
125
125
  attr_accessor :enable_interaction_logging
126
126
  alias_method :enable_interaction_logging?, :enable_interaction_logging
127
127
 
128
- # If true, StackDriver logging is currently enabled.
128
+ # Enables StackDriver logging.
129
129
  # Corresponds to the JSON property `enableStackdriverLogging`
130
130
  # @return [Boolean]
131
131
  attr_accessor :enable_stackdriver_logging
@@ -3965,13 +3965,13 @@ module Google
3965
3965
  class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
3966
3966
  include Google::Apis::Core::Hashable
3967
3967
 
3968
- # If true, DF Interaction logging is currently enabled.
3968
+ # Enables DF Interaction logging.
3969
3969
  # Corresponds to the JSON property `enableInteractionLogging`
3970
3970
  # @return [Boolean]
3971
3971
  attr_accessor :enable_interaction_logging
3972
3972
  alias_method :enable_interaction_logging?, :enable_interaction_logging
3973
3973
 
3974
- # If true, StackDriver logging is currently enabled.
3974
+ # Enables StackDriver logging.
3975
3975
  # Corresponds to the JSON property `enableStackdriverLogging`
3976
3976
  # @return [Boolean]
3977
3977
  attr_accessor :enable_stackdriver_logging
@@ -6238,6 +6238,11 @@ module Google
6238
6238
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1TextInput]
6239
6239
  attr_accessor :text
6240
6240
 
6241
+ # The result of calling a tool's action that has been executed by the client.
6242
+ # Corresponds to the JSON property `toolCallResult`
6243
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult]
6244
+ attr_accessor :tool_call_result
6245
+
6241
6246
  def initialize(**args)
6242
6247
  update!(**args)
6243
6248
  end
@@ -6250,6 +6255,7 @@ module Google
6250
6255
  @intent = args[:intent] if args.key?(:intent)
6251
6256
  @language_code = args[:language_code] if args.key?(:language_code)
6252
6257
  @text = args[:text] if args.key?(:text)
6258
+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
6253
6259
  end
6254
6260
  end
6255
6261
 
@@ -6366,6 +6372,11 @@ module Google
6366
6372
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessageText]
6367
6373
  attr_accessor :text
6368
6374
 
6375
+ # Represents a call of a specific tool's action with the specified inputs.
6376
+ # Corresponds to the JSON property `toolCall`
6377
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCall]
6378
+ attr_accessor :tool_call
6379
+
6369
6380
  def initialize(**args)
6370
6381
  update!(**args)
6371
6382
  end
@@ -6383,6 +6394,7 @@ module Google
6383
6394
  @play_audio = args[:play_audio] if args.key?(:play_audio)
6384
6395
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
6385
6396
  @text = args[:text] if args.key?(:text)
6397
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
6386
6398
  end
6387
6399
  end
6388
6400
 
@@ -7005,6 +7017,95 @@ module Google
7005
7017
  end
7006
7018
  end
7007
7019
 
7020
+ # Represents a call of a specific tool's action with the specified inputs.
7021
+ class GoogleCloudDialogflowCxV3beta1ToolCall
7022
+ include Google::Apis::Core::Hashable
7023
+
7024
+ # Required. The name of the tool's action associated with this call.
7025
+ # Corresponds to the JSON property `action`
7026
+ # @return [String]
7027
+ attr_accessor :action
7028
+
7029
+ # Optional. The action's input parameters.
7030
+ # Corresponds to the JSON property `inputParameters`
7031
+ # @return [Hash<String,Object>]
7032
+ attr_accessor :input_parameters
7033
+
7034
+ # Required. The tool associated with this call. Format: `projects//locations//
7035
+ # agents//tools/`.
7036
+ # Corresponds to the JSON property `tool`
7037
+ # @return [String]
7038
+ attr_accessor :tool
7039
+
7040
+ def initialize(**args)
7041
+ update!(**args)
7042
+ end
7043
+
7044
+ # Update properties of this object
7045
+ def update!(**args)
7046
+ @action = args[:action] if args.key?(:action)
7047
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
7048
+ @tool = args[:tool] if args.key?(:tool)
7049
+ end
7050
+ end
7051
+
7052
+ # The result of calling a tool's action that has been executed by the client.
7053
+ class GoogleCloudDialogflowCxV3beta1ToolCallResult
7054
+ include Google::Apis::Core::Hashable
7055
+
7056
+ # Required. The name of the tool's action associated with this call.
7057
+ # Corresponds to the JSON property `action`
7058
+ # @return [String]
7059
+ attr_accessor :action
7060
+
7061
+ # An error produced by the tool call.
7062
+ # Corresponds to the JSON property `error`
7063
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResultError]
7064
+ attr_accessor :error
7065
+
7066
+ # The tool call's output parameters.
7067
+ # Corresponds to the JSON property `outputParameters`
7068
+ # @return [Hash<String,Object>]
7069
+ attr_accessor :output_parameters
7070
+
7071
+ # Required. The tool associated with this call. Format: `projects//locations//
7072
+ # agents//tools/`.
7073
+ # Corresponds to the JSON property `tool`
7074
+ # @return [String]
7075
+ attr_accessor :tool
7076
+
7077
+ def initialize(**args)
7078
+ update!(**args)
7079
+ end
7080
+
7081
+ # Update properties of this object
7082
+ def update!(**args)
7083
+ @action = args[:action] if args.key?(:action)
7084
+ @error = args[:error] if args.key?(:error)
7085
+ @output_parameters = args[:output_parameters] if args.key?(:output_parameters)
7086
+ @tool = args[:tool] if args.key?(:tool)
7087
+ end
7088
+ end
7089
+
7090
+ # An error produced by the tool call.
7091
+ class GoogleCloudDialogflowCxV3beta1ToolCallResultError
7092
+ include Google::Apis::Core::Hashable
7093
+
7094
+ # Optional. The error message of the function.
7095
+ # Corresponds to the JSON property `message`
7096
+ # @return [String]
7097
+ attr_accessor :message
7098
+
7099
+ def initialize(**args)
7100
+ update!(**args)
7101
+ end
7102
+
7103
+ # Update properties of this object
7104
+ def update!(**args)
7105
+ @message = args[:message] if args.key?(:message)
7106
+ end
7107
+ end
7108
+
7008
7109
  # A transition route specifies a intent that can be matched and/or a data
7009
7110
  # condition that can be evaluated during a session. When a specified transition
7010
7111
  # is matched, the following actions are taken in order: * If there is a `
@@ -9871,6 +9972,159 @@ module Google
9871
9972
  end
9872
9973
  end
9873
9974
 
9975
+ # Represents a Knowledge Assist answer.
9976
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswer
9977
+ include Google::Apis::Core::Hashable
9978
+
9979
+ # The name of the answer record. Format: `projects//locations//answer Records/`.
9980
+ # Corresponds to the JSON property `answerRecord`
9981
+ # @return [String]
9982
+ attr_accessor :answer_record
9983
+
9984
+ # Represents a suggested query.
9985
+ # Corresponds to the JSON property `suggestedQuery`
9986
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery]
9987
+ attr_accessor :suggested_query
9988
+
9989
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
9990
+ # answers.
9991
+ # Corresponds to the JSON property `suggestedQueryAnswer`
9992
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer]
9993
+ attr_accessor :suggested_query_answer
9994
+
9995
+ def initialize(**args)
9996
+ update!(**args)
9997
+ end
9998
+
9999
+ # Update properties of this object
10000
+ def update!(**args)
10001
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10002
+ @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
10003
+ @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
10004
+ end
10005
+ end
10006
+
10007
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
10008
+ # answers.
10009
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer
10010
+ include Google::Apis::Core::Hashable
10011
+
10012
+ # The piece of text from the `source` that answers this suggested query.
10013
+ # Corresponds to the JSON property `answerText`
10014
+ # @return [String]
10015
+ attr_accessor :answer_text
10016
+
10017
+ # Details about source of FAQ answer.
10018
+ # Corresponds to the JSON property `faqSource`
10019
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
10020
+ attr_accessor :faq_source
10021
+
10022
+ # Details about source of Generative answer.
10023
+ # Corresponds to the JSON property `generativeSource`
10024
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
10025
+ attr_accessor :generative_source
10026
+
10027
+ def initialize(**args)
10028
+ update!(**args)
10029
+ end
10030
+
10031
+ # Update properties of this object
10032
+ def update!(**args)
10033
+ @answer_text = args[:answer_text] if args.key?(:answer_text)
10034
+ @faq_source = args[:faq_source] if args.key?(:faq_source)
10035
+ @generative_source = args[:generative_source] if args.key?(:generative_source)
10036
+ end
10037
+ end
10038
+
10039
+ # Details about source of FAQ answer.
10040
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
10041
+ include Google::Apis::Core::Hashable
10042
+
10043
+ # The corresponding FAQ question.
10044
+ # Corresponds to the JSON property `question`
10045
+ # @return [String]
10046
+ attr_accessor :question
10047
+
10048
+ def initialize(**args)
10049
+ update!(**args)
10050
+ end
10051
+
10052
+ # Update properties of this object
10053
+ def update!(**args)
10054
+ @question = args[:question] if args.key?(:question)
10055
+ end
10056
+ end
10057
+
10058
+ # Details about source of Generative answer.
10059
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
10060
+ include Google::Apis::Core::Hashable
10061
+
10062
+ # All snippets used for this Generative Prediction, with their source URI and
10063
+ # data.
10064
+ # Corresponds to the JSON property `snippets`
10065
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
10066
+ attr_accessor :snippets
10067
+
10068
+ def initialize(**args)
10069
+ update!(**args)
10070
+ end
10071
+
10072
+ # Update properties of this object
10073
+ def update!(**args)
10074
+ @snippets = args[:snippets] if args.key?(:snippets)
10075
+ end
10076
+ end
10077
+
10078
+ # Snippet Source for a Generative Prediction.
10079
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
10080
+ include Google::Apis::Core::Hashable
10081
+
10082
+ # Text taken from that URI.
10083
+ # Corresponds to the JSON property `text`
10084
+ # @return [String]
10085
+ attr_accessor :text
10086
+
10087
+ # Title of the document.
10088
+ # Corresponds to the JSON property `title`
10089
+ # @return [String]
10090
+ attr_accessor :title
10091
+
10092
+ # URI the data is sourced from.
10093
+ # Corresponds to the JSON property `uri`
10094
+ # @return [String]
10095
+ attr_accessor :uri
10096
+
10097
+ def initialize(**args)
10098
+ update!(**args)
10099
+ end
10100
+
10101
+ # Update properties of this object
10102
+ def update!(**args)
10103
+ @text = args[:text] if args.key?(:text)
10104
+ @title = args[:title] if args.key?(:title)
10105
+ @uri = args[:uri] if args.key?(:uri)
10106
+ end
10107
+ end
10108
+
10109
+ # Represents a suggested query.
10110
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery
10111
+ include Google::Apis::Core::Hashable
10112
+
10113
+ # Suggested query text.
10114
+ # Corresponds to the JSON property `queryText`
10115
+ # @return [String]
10116
+ attr_accessor :query_text
10117
+
10118
+ def initialize(**args)
10119
+ update!(**args)
10120
+ end
10121
+
10122
+ # Update properties of this object
10123
+ def update!(**args)
10124
+ @query_text = args[:query_text] if args.key?(:query_text)
10125
+ end
10126
+ end
10127
+
9874
10128
  # Metadata in google::longrunning::Operation for Knowledge operations.
9875
10129
  class GoogleCloudDialogflowV2KnowledgeOperationMetadata
9876
10130
  include Google::Apis::Core::Hashable
@@ -10471,6 +10725,41 @@ module Google
10471
10725
  end
10472
10726
  end
10473
10727
 
10728
+ # The response message for Participants.SuggestKnowledgeAssist.
10729
+ class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
10730
+ include Google::Apis::Core::Hashable
10731
+
10732
+ # Number of messages prior to and including latest_message to compile the
10733
+ # suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
10734
+ # context_size field in the request if there are fewer messages in the
10735
+ # conversation.
10736
+ # Corresponds to the JSON property `contextSize`
10737
+ # @return [Fixnum]
10738
+ attr_accessor :context_size
10739
+
10740
+ # Represents a Knowledge Assist answer.
10741
+ # Corresponds to the JSON property `knowledgeAssistAnswer`
10742
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswer]
10743
+ attr_accessor :knowledge_assist_answer
10744
+
10745
+ # The name of the latest conversation message used to compile suggestion for.
10746
+ # Format: `projects//locations//conversations//messages/`.
10747
+ # Corresponds to the JSON property `latestMessage`
10748
+ # @return [String]
10749
+ attr_accessor :latest_message
10750
+
10751
+ def initialize(**args)
10752
+ update!(**args)
10753
+ end
10754
+
10755
+ # Update properties of this object
10756
+ def update!(**args)
10757
+ @context_size = args[:context_size] if args.key?(:context_size)
10758
+ @knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
10759
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
10760
+ end
10761
+ end
10762
+
10474
10763
  # The response message for Participants.SuggestSmartReplies.
10475
10764
  class GoogleCloudDialogflowV2SuggestSmartRepliesResponse
10476
10765
  include Google::Apis::Core::Hashable
@@ -10533,6 +10822,11 @@ module Google
10533
10822
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
10534
10823
  attr_accessor :suggest_faq_answers_response
10535
10824
 
10825
+ # The response message for Participants.SuggestKnowledgeAssist.
10826
+ # Corresponds to the JSON property `suggestKnowledgeAssistResponse`
10827
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
10828
+ attr_accessor :suggest_knowledge_assist_response
10829
+
10536
10830
  # The response message for Participants.SuggestSmartReplies.
10537
10831
  # Corresponds to the JSON property `suggestSmartRepliesResponse`
10538
10832
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
@@ -10547,6 +10841,7 @@ module Google
10547
10841
  @error = args[:error] if args.key?(:error)
10548
10842
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
10549
10843
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
10844
+ @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
10550
10845
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
10551
10846
  end
10552
10847
  end
@@ -10842,6 +11137,11 @@ module Google
10842
11137
  # @return [String]
10843
11138
  attr_accessor :document_efficiency
10844
11139
 
11140
+ # Feedback for knowledge assist.
11141
+ # Corresponds to the JSON property `knowledgeAssistFeedback`
11142
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback]
11143
+ attr_accessor :knowledge_assist_feedback
11144
+
10845
11145
  # Feedback for knowledge search.
10846
11146
  # Corresponds to the JSON property `knowledgeSearchFeedback`
10847
11147
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback]
@@ -10861,11 +11161,41 @@ module Google
10861
11161
  @answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
10862
11162
  @document_correctness = args[:document_correctness] if args.key?(:document_correctness)
10863
11163
  @document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
11164
+ @knowledge_assist_feedback = args[:knowledge_assist_feedback] if args.key?(:knowledge_assist_feedback)
10864
11165
  @knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
10865
11166
  @summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
10866
11167
  end
10867
11168
  end
10868
11169
 
11170
+ # Feedback for knowledge assist.
11171
+ class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback
11172
+ include Google::Apis::Core::Hashable
11173
+
11174
+ # Whether the suggested answer was copied by the human agent. If the value is
11175
+ # set to be true, AnswerFeedback.clicked will be updated to be true.
11176
+ # Corresponds to the JSON property `answerCopied`
11177
+ # @return [Boolean]
11178
+ attr_accessor :answer_copied
11179
+ alias_method :answer_copied?, :answer_copied
11180
+
11181
+ # The URIs clicked by the human agent. The value is appended for each
11182
+ # UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked
11183
+ # will be updated to be true.
11184
+ # Corresponds to the JSON property `clickedUris`
11185
+ # @return [Array<String>]
11186
+ attr_accessor :clicked_uris
11187
+
11188
+ def initialize(**args)
11189
+ update!(**args)
11190
+ end
11191
+
11192
+ # Update properties of this object
11193
+ def update!(**args)
11194
+ @answer_copied = args[:answer_copied] if args.key?(:answer_copied)
11195
+ @clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
11196
+ end
11197
+ end
11198
+
10869
11199
  # Feedback for knowledge search.
10870
11200
  class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
10871
11201
  include Google::Apis::Core::Hashable
@@ -11429,6 +11759,12 @@ module Google
11429
11759
  # @return [String]
11430
11760
  attr_accessor :automated_agent_reply_type
11431
11761
 
11762
+ # The auth code for accessing Call Companion UI.
11763
+ # Corresponds to the JSON property `callCompanionAuthCode`
11764
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
11765
+ # @return [String]
11766
+ attr_accessor :call_companion_auth_code
11767
+
11432
11768
  # The unique identifier of the current Dialogflow CX conversation page. Format: `
11433
11769
  # projects//locations//agents//flows//pages/`.
11434
11770
  # Corresponds to the JSON property `cxCurrentPage`
@@ -11485,6 +11821,7 @@ module Google
11485
11821
  def update!(**args)
11486
11822
  @allow_cancellation = args[:allow_cancellation] if args.key?(:allow_cancellation)
11487
11823
  @automated_agent_reply_type = args[:automated_agent_reply_type] if args.key?(:automated_agent_reply_type)
11824
+ @call_companion_auth_code = args[:call_companion_auth_code] if args.key?(:call_companion_auth_code)
11488
11825
  @cx_current_page = args[:cx_current_page] if args.key?(:cx_current_page)
11489
11826
  @cx_session_parameters = args[:cx_session_parameters] if args.key?(:cx_session_parameters)
11490
11827
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
@@ -12110,6 +12447,25 @@ module Google
12110
12447
  end
12111
12448
  end
12112
12449
 
12450
+ # Context of the conversation, including transcripts.
12451
+ class GoogleCloudDialogflowV2beta1ConversationContext
12452
+ include Google::Apis::Core::Hashable
12453
+
12454
+ # Optional. List of message transcripts in the conversation.
12455
+ # Corresponds to the JSON property `messageEntries`
12456
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry>]
12457
+ attr_accessor :message_entries
12458
+
12459
+ def initialize(**args)
12460
+ update!(**args)
12461
+ end
12462
+
12463
+ # Update properties of this object
12464
+ def update!(**args)
12465
+ @message_entries = args[:message_entries] if args.key?(:message_entries)
12466
+ end
12467
+ end
12468
+
12113
12469
  # Represents a notification sent to Pub/Sub subscribers for conversation
12114
12470
  # lifecycle events.
12115
12471
  class GoogleCloudDialogflowV2beta1ConversationEvent
@@ -13054,6 +13410,46 @@ module Google
13054
13410
  end
13055
13411
  end
13056
13412
 
13413
+ # Providing examples in the generator (i.e. building a few-shot generator) helps
13414
+ # convey the desired format of the LLM response. NEXT_ID: 10
13415
+ class GoogleCloudDialogflowV2beta1FewShotExample
13416
+ include Google::Apis::Core::Hashable
13417
+
13418
+ # Context of the conversation, including transcripts.
13419
+ # Corresponds to the JSON property `conversationContext`
13420
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
13421
+ attr_accessor :conversation_context
13422
+
13423
+ # Optional. Key is the placeholder field name in input, value is the value of
13424
+ # the placeholder. E.g. instruction contains "@price", and ingested data has <"
13425
+ # price", "10">
13426
+ # Corresponds to the JSON property `extraInfo`
13427
+ # @return [Hash<String,String>]
13428
+ attr_accessor :extra_info
13429
+
13430
+ # Suggestion generated using a Generator.
13431
+ # Corresponds to the JSON property `output`
13432
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
13433
+ attr_accessor :output
13434
+
13435
+ # List of summarization sections.
13436
+ # Corresponds to the JSON property `summarizationSectionList`
13437
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSectionList]
13438
+ attr_accessor :summarization_section_list
13439
+
13440
+ def initialize(**args)
13441
+ update!(**args)
13442
+ end
13443
+
13444
+ # Update properties of this object
13445
+ def update!(**args)
13446
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
13447
+ @extra_info = args[:extra_info] if args.key?(:extra_info)
13448
+ @output = args[:output] if args.key?(:output)
13449
+ @summarization_section_list = args[:summarization_section_list] if args.key?(:summarization_section_list)
13450
+ end
13451
+ end
13452
+
13057
13453
  # By default, your agent responds to a matched intent with a static response. As
13058
13454
  # an alternative, you can provide a more dynamic response by using fulfillment.
13059
13455
  # When you enable fulfillment for an intent, Dialogflow responds to that intent
@@ -13245,11 +13641,69 @@ module Google
13245
13641
  end
13246
13642
  end
13247
13643
 
13248
- # The request message for Conversations.GenerateStatelessSummary.
13249
- class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
13644
+ # The request message for Conversations.GenerateStatelessSuggestion.
13645
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
13250
13646
  include Google::Apis::Core::Hashable
13251
13647
 
13252
- # Defines the services to connect to incoming Dialogflow conversations.
13648
+ # Context of the conversation, including transcripts.
13649
+ # Corresponds to the JSON property `conversationContext`
13650
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
13651
+ attr_accessor :conversation_context
13652
+
13653
+ # LLM generator.
13654
+ # Corresponds to the JSON property `generator`
13655
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
13656
+ attr_accessor :generator
13657
+
13658
+ # The resource name of the existing created generator. Format: `projects//
13659
+ # locations//generators/`
13660
+ # Corresponds to the JSON property `generatorName`
13661
+ # @return [String]
13662
+ attr_accessor :generator_name
13663
+
13664
+ # Optional. A list of trigger events. Generator will be triggered only if it's
13665
+ # trigger event is included here.
13666
+ # Corresponds to the JSON property `triggerEvents`
13667
+ # @return [Array<String>]
13668
+ attr_accessor :trigger_events
13669
+
13670
+ def initialize(**args)
13671
+ update!(**args)
13672
+ end
13673
+
13674
+ # Update properties of this object
13675
+ def update!(**args)
13676
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
13677
+ @generator = args[:generator] if args.key?(:generator)
13678
+ @generator_name = args[:generator_name] if args.key?(:generator_name)
13679
+ @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
13680
+ end
13681
+ end
13682
+
13683
+ # The response message for Conversations.GenerateStatelessSuggestion.
13684
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
13685
+ include Google::Apis::Core::Hashable
13686
+
13687
+ # Suggestion generated using a Generator.
13688
+ # Corresponds to the JSON property `generatorSuggestion`
13689
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
13690
+ attr_accessor :generator_suggestion
13691
+
13692
+ def initialize(**args)
13693
+ update!(**args)
13694
+ end
13695
+
13696
+ # Update properties of this object
13697
+ def update!(**args)
13698
+ @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
13699
+ end
13700
+ end
13701
+
13702
+ # The request message for Conversations.GenerateStatelessSummary.
13703
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
13704
+ include Google::Apis::Core::Hashable
13705
+
13706
+ # Defines the services to connect to incoming Dialogflow conversations.
13253
13707
  # Corresponds to the JSON property `conversationProfile`
13254
13708
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
13255
13709
  attr_accessor :conversation_profile
@@ -13380,6 +13834,82 @@ module Google
13380
13834
  end
13381
13835
  end
13382
13836
 
13837
+ # LLM generator.
13838
+ class GoogleCloudDialogflowV2beta1Generator
13839
+ include Google::Apis::Core::Hashable
13840
+
13841
+ # Output only. Creation time of this generator.
13842
+ # Corresponds to the JSON property `createTime`
13843
+ # @return [String]
13844
+ attr_accessor :create_time
13845
+
13846
+ # Optional. Human readable description of the generator.
13847
+ # Corresponds to the JSON property `description`
13848
+ # @return [String]
13849
+ attr_accessor :description
13850
+
13851
+ # The parameters of inference.
13852
+ # Corresponds to the JSON property `inferenceParameter`
13853
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter]
13854
+ attr_accessor :inference_parameter
13855
+
13856
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
13857
+ # /locations//generators/`
13858
+ # Corresponds to the JSON property `name`
13859
+ # @return [String]
13860
+ attr_accessor :name
13861
+
13862
+ # Summarization context that customer can configure.
13863
+ # Corresponds to the JSON property `summarizationContext`
13864
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
13865
+ attr_accessor :summarization_context
13866
+
13867
+ # Optional. The trigger event of the generator. It defines when the generator is
13868
+ # triggered in a conversation.
13869
+ # Corresponds to the JSON property `triggerEvent`
13870
+ # @return [String]
13871
+ attr_accessor :trigger_event
13872
+
13873
+ # Output only. Update time of this generator.
13874
+ # Corresponds to the JSON property `updateTime`
13875
+ # @return [String]
13876
+ attr_accessor :update_time
13877
+
13878
+ def initialize(**args)
13879
+ update!(**args)
13880
+ end
13881
+
13882
+ # Update properties of this object
13883
+ def update!(**args)
13884
+ @create_time = args[:create_time] if args.key?(:create_time)
13885
+ @description = args[:description] if args.key?(:description)
13886
+ @inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
13887
+ @name = args[:name] if args.key?(:name)
13888
+ @summarization_context = args[:summarization_context] if args.key?(:summarization_context)
13889
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
13890
+ @update_time = args[:update_time] if args.key?(:update_time)
13891
+ end
13892
+ end
13893
+
13894
+ # Suggestion generated using a Generator.
13895
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestion
13896
+ include Google::Apis::Core::Hashable
13897
+
13898
+ # Suggested summary of the conversation.
13899
+ # Corresponds to the JSON property `summarySuggestion`
13900
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion]
13901
+ attr_accessor :summary_suggestion
13902
+
13903
+ def initialize(**args)
13904
+ update!(**args)
13905
+ end
13906
+
13907
+ # Update properties of this object
13908
+ def update!(**args)
13909
+ @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
13910
+ end
13911
+ end
13912
+
13383
13913
  # Defines the Human Agent Assistant to connect to a conversation.
13384
13914
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
13385
13915
  include Google::Apis::Core::Hashable
@@ -13511,12 +14041,29 @@ module Google
13511
14041
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
13512
14042
  include Google::Apis::Core::Hashable
13513
14043
 
14044
+ # Optional. When disable_high_latency_features_sync_delivery is true and using
14045
+ # the AnalyzeContent API, we will not deliver the responses from high latency
14046
+ # features in the API response. The human_agent_assistant_config.
14047
+ # notification_config must be configured and enable_event_based_suggestion must
14048
+ # be set to true to receive the responses from high latency features in Pub/Sub.
14049
+ # High latency feature(s): KNOWLEDGE_ASSIST.
14050
+ # Corresponds to the JSON property `disableHighLatencyFeaturesSyncDelivery`
14051
+ # @return [Boolean]
14052
+ attr_accessor :disable_high_latency_features_sync_delivery
14053
+ alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
14054
+
13514
14055
  # Configuration of different suggestion features. One feature can have only one
13515
14056
  # config.
13516
14057
  # Corresponds to the JSON property `featureConfigs`
13517
14058
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig>]
13518
14059
  attr_accessor :feature_configs
13519
14060
 
14061
+ # Optional. List of various generator resource names used in the conversation
14062
+ # profile.
14063
+ # Corresponds to the JSON property `generators`
14064
+ # @return [Array<String>]
14065
+ attr_accessor :generators
14066
+
13520
14067
  # If `group_suggestion_responses` is false, and there are multiple `
13521
14068
  # feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we
13522
14069
  # will try to deliver suggestions to customers as soon as we get new suggestion.
@@ -13536,7 +14083,9 @@ module Google
13536
14083
 
13537
14084
  # Update properties of this object
13538
14085
  def update!(**args)
14086
+ @disable_high_latency_features_sync_delivery = args[:disable_high_latency_features_sync_delivery] if args.key?(:disable_high_latency_features_sync_delivery)
13539
14087
  @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
14088
+ @generators = args[:generators] if args.key?(:generators)
13540
14089
  @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
13541
14090
  end
13542
14091
  end
@@ -13579,6 +14128,20 @@ module Google
13579
14128
  attr_accessor :enable_event_based_suggestion
13580
14129
  alias_method :enable_event_based_suggestion?, :enable_event_based_suggestion
13581
14130
 
14131
+ # Optional. Enable query suggestion only. Supported features: KNOWLEDGE_ASSIST
14132
+ # Corresponds to the JSON property `enableQuerySuggestionOnly`
14133
+ # @return [Boolean]
14134
+ attr_accessor :enable_query_suggestion_only
14135
+ alias_method :enable_query_suggestion_only?, :enable_query_suggestion_only
14136
+
14137
+ # Optional. Enable query suggestion even if we can't find its answer. By default,
14138
+ # queries are suggested only if we find its answer. Supported features:
14139
+ # KNOWLEDGE_ASSIST
14140
+ # Corresponds to the JSON property `enableQuerySuggestionWhenNoAnswer`
14141
+ # @return [Boolean]
14142
+ attr_accessor :enable_query_suggestion_when_no_answer
14143
+ alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
14144
+
13582
14145
  # Config for suggestion query.
13583
14146
  # Corresponds to the JSON property `queryConfig`
13584
14147
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig]
@@ -13607,6 +14170,8 @@ module Google
13607
14170
  @disable_agent_query_logging = args[:disable_agent_query_logging] if args.key?(:disable_agent_query_logging)
13608
14171
  @enable_conversation_augmented_query = args[:enable_conversation_augmented_query] if args.key?(:enable_conversation_augmented_query)
13609
14172
  @enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
14173
+ @enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
14174
+ @enable_query_suggestion_when_no_answer = args[:enable_query_suggestion_when_no_answer] if args.key?(:enable_query_suggestion_when_no_answer)
13610
14175
  @query_config = args[:query_config] if args.key?(:query_config)
13611
14176
  @suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
13612
14177
  @suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
@@ -13902,7 +14467,7 @@ module Google
13902
14467
  class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
13903
14468
  include Google::Apis::Core::Hashable
13904
14469
 
13905
- # Configuration specific to LivePerson (https://www.liveperson.com).
14470
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
13906
14471
  # Corresponds to the JSON property `livePersonConfig`
13907
14472
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig]
13908
14473
  attr_accessor :live_person_config
@@ -13923,7 +14488,7 @@ module Google
13923
14488
  end
13924
14489
  end
13925
14490
 
13926
- # Configuration specific to LivePerson (https://www.liveperson.com).
14491
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
13927
14492
  class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
13928
14493
  include Google::Apis::Core::Hashable
13929
14494
 
@@ -14100,6 +14665,60 @@ module Google
14100
14665
  end
14101
14666
  end
14102
14667
 
14668
+ # The parameters of inference.
14669
+ class GoogleCloudDialogflowV2beta1InferenceParameter
14670
+ include Google::Apis::Core::Hashable
14671
+
14672
+ # Optional. Maximum number of the output tokens for the generator.
14673
+ # Corresponds to the JSON property `maxOutputTokens`
14674
+ # @return [Fixnum]
14675
+ attr_accessor :max_output_tokens
14676
+
14677
+ # Optional. Controls the randomness of LLM predictions. Low temperature = less
14678
+ # random. High temperature = more random. If unset (or 0), uses a default value
14679
+ # of 0.
14680
+ # Corresponds to the JSON property `temperature`
14681
+ # @return [Float]
14682
+ attr_accessor :temperature
14683
+
14684
+ # Optional. Top-k changes how the model selects tokens for output. A top-k of 1
14685
+ # means the selected token is the most probable among all tokens in the model's
14686
+ # vocabulary (also called greedy decoding), while a top-k of 3 means that the
14687
+ # next token is selected from among the 3 most probable tokens (using
14688
+ # temperature). For each token selection step, the top K tokens with the highest
14689
+ # probabilities are sampled. Then tokens are further filtered based on topP with
14690
+ # the final token selected using temperature sampling. Specify a lower value for
14691
+ # less random responses and a higher value for more random responses. Acceptable
14692
+ # value is [1, 40], default to 40.
14693
+ # Corresponds to the JSON property `topK`
14694
+ # @return [Fixnum]
14695
+ attr_accessor :top_k
14696
+
14697
+ # Optional. Top-p changes how the model selects tokens for output. Tokens are
14698
+ # selected from most K (see topK parameter) probable to least until the sum of
14699
+ # their probabilities equals the top-p value. For example, if tokens A, B, and C
14700
+ # have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5, then the
14701
+ # model will select either A or B as the next token (using temperature) and
14702
+ # doesn't consider C. The default top-p value is 0.95. Specify a lower value for
14703
+ # less random responses and a higher value for more random responses. Acceptable
14704
+ # value is [0.0, 1.0], default to 0.95.
14705
+ # Corresponds to the JSON property `topP`
14706
+ # @return [Float]
14707
+ attr_accessor :top_p
14708
+
14709
+ def initialize(**args)
14710
+ update!(**args)
14711
+ end
14712
+
14713
+ # Update properties of this object
14714
+ def update!(**args)
14715
+ @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
14716
+ @temperature = args[:temperature] if args.key?(:temperature)
14717
+ @top_k = args[:top_k] if args.key?(:top_k)
14718
+ @top_p = args[:top_p] if args.key?(:top_p)
14719
+ end
14720
+ end
14721
+
14103
14722
  # Instructs the speech recognizer on how to process the audio content.
14104
14723
  class GoogleCloudDialogflowV2beta1InputAudioConfig
14105
14724
  include Google::Apis::Core::Hashable
@@ -14132,6 +14751,12 @@ module Google
14132
14751
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig]
14133
14752
  attr_accessor :barge_in_config
14134
14753
 
14754
+ # If set, use this no-speech timeout when the agent does not provide a no-speech
14755
+ # timeout itself.
14756
+ # Corresponds to the JSON property `defaultNoSpeechTimeout`
14757
+ # @return [String]
14758
+ attr_accessor :default_no_speech_timeout
14759
+
14135
14760
  # Only used in Participants.AnalyzeContent and Participants.
14136
14761
  # StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
14137
14762
  # trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
@@ -14230,6 +14855,7 @@ module Google
14230
14855
  def update!(**args)
14231
14856
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
14232
14857
  @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
14858
+ @default_no_speech_timeout = args[:default_no_speech_timeout] if args.key?(:default_no_speech_timeout)
14233
14859
  @disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
14234
14860
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
14235
14861
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
@@ -16123,6 +16749,159 @@ module Google
16123
16749
  end
16124
16750
  end
16125
16751
 
16752
+ # Represents a Knowledge Assist answer.
16753
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
16754
+ include Google::Apis::Core::Hashable
16755
+
16756
+ # The name of the answer record. Format: `projects//locations//answer Records/`.
16757
+ # Corresponds to the JSON property `answerRecord`
16758
+ # @return [String]
16759
+ attr_accessor :answer_record
16760
+
16761
+ # Represents a suggested query.
16762
+ # Corresponds to the JSON property `suggestedQuery`
16763
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery]
16764
+ attr_accessor :suggested_query
16765
+
16766
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
16767
+ # answers.
16768
+ # Corresponds to the JSON property `suggestedQueryAnswer`
16769
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer]
16770
+ attr_accessor :suggested_query_answer
16771
+
16772
+ def initialize(**args)
16773
+ update!(**args)
16774
+ end
16775
+
16776
+ # Update properties of this object
16777
+ def update!(**args)
16778
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
16779
+ @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
16780
+ @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
16781
+ end
16782
+ end
16783
+
16784
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
16785
+ # answers.
16786
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
16787
+ include Google::Apis::Core::Hashable
16788
+
16789
+ # The piece of text from the `source` that answers this suggested query.
16790
+ # Corresponds to the JSON property `answerText`
16791
+ # @return [String]
16792
+ attr_accessor :answer_text
16793
+
16794
+ # Details about source of FAQ answer.
16795
+ # Corresponds to the JSON property `faqSource`
16796
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
16797
+ attr_accessor :faq_source
16798
+
16799
+ # Details about source of Generative answer.
16800
+ # Corresponds to the JSON property `generativeSource`
16801
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
16802
+ attr_accessor :generative_source
16803
+
16804
+ def initialize(**args)
16805
+ update!(**args)
16806
+ end
16807
+
16808
+ # Update properties of this object
16809
+ def update!(**args)
16810
+ @answer_text = args[:answer_text] if args.key?(:answer_text)
16811
+ @faq_source = args[:faq_source] if args.key?(:faq_source)
16812
+ @generative_source = args[:generative_source] if args.key?(:generative_source)
16813
+ end
16814
+ end
16815
+
16816
+ # Details about source of FAQ answer.
16817
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource
16818
+ include Google::Apis::Core::Hashable
16819
+
16820
+ # The corresponding FAQ question.
16821
+ # Corresponds to the JSON property `question`
16822
+ # @return [String]
16823
+ attr_accessor :question
16824
+
16825
+ def initialize(**args)
16826
+ update!(**args)
16827
+ end
16828
+
16829
+ # Update properties of this object
16830
+ def update!(**args)
16831
+ @question = args[:question] if args.key?(:question)
16832
+ end
16833
+ end
16834
+
16835
+ # Details about source of Generative answer.
16836
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
16837
+ include Google::Apis::Core::Hashable
16838
+
16839
+ # All snippets used for this Generative Prediction, with their source URI and
16840
+ # data.
16841
+ # Corresponds to the JSON property `snippets`
16842
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
16843
+ attr_accessor :snippets
16844
+
16845
+ def initialize(**args)
16846
+ update!(**args)
16847
+ end
16848
+
16849
+ # Update properties of this object
16850
+ def update!(**args)
16851
+ @snippets = args[:snippets] if args.key?(:snippets)
16852
+ end
16853
+ end
16854
+
16855
+ # Snippet Source for a Generative Prediction.
16856
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
16857
+ include Google::Apis::Core::Hashable
16858
+
16859
+ # Text taken from that URI.
16860
+ # Corresponds to the JSON property `text`
16861
+ # @return [String]
16862
+ attr_accessor :text
16863
+
16864
+ # Title of the document.
16865
+ # Corresponds to the JSON property `title`
16866
+ # @return [String]
16867
+ attr_accessor :title
16868
+
16869
+ # URI the data is sourced from.
16870
+ # Corresponds to the JSON property `uri`
16871
+ # @return [String]
16872
+ attr_accessor :uri
16873
+
16874
+ def initialize(**args)
16875
+ update!(**args)
16876
+ end
16877
+
16878
+ # Update properties of this object
16879
+ def update!(**args)
16880
+ @text = args[:text] if args.key?(:text)
16881
+ @title = args[:title] if args.key?(:title)
16882
+ @uri = args[:uri] if args.key?(:uri)
16883
+ end
16884
+ end
16885
+
16886
+ # Represents a suggested query.
16887
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
16888
+ include Google::Apis::Core::Hashable
16889
+
16890
+ # Suggested query text.
16891
+ # Corresponds to the JSON property `queryText`
16892
+ # @return [String]
16893
+ attr_accessor :query_text
16894
+
16895
+ def initialize(**args)
16896
+ update!(**args)
16897
+ end
16898
+
16899
+ # Update properties of this object
16900
+ def update!(**args)
16901
+ @query_text = args[:query_text] if args.key?(:query_text)
16902
+ end
16903
+ end
16904
+
16126
16905
  # A knowledge base represents a collection of knowledge documents that you
16127
16906
  # provide to Dialogflow. Your knowledge documents contain information that may
16128
16907
  # be useful during conversations with end-users. Some Dialogflow features use
@@ -16384,6 +17163,32 @@ module Google
16384
17163
  end
16385
17164
  end
16386
17165
 
17166
+ # Response of ListGenerators.
17167
+ class GoogleCloudDialogflowV2beta1ListGeneratorsResponse
17168
+ include Google::Apis::Core::Hashable
17169
+
17170
+ # List of generators retrieved.
17171
+ # Corresponds to the JSON property `generators`
17172
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator>]
17173
+ attr_accessor :generators
17174
+
17175
+ # Token to retrieve the next page of results, or empty if there are no more
17176
+ # results in the list.
17177
+ # Corresponds to the JSON property `nextPageToken`
17178
+ # @return [String]
17179
+ attr_accessor :next_page_token
17180
+
17181
+ def initialize(**args)
17182
+ update!(**args)
17183
+ end
17184
+
17185
+ # Update properties of this object
17186
+ def update!(**args)
17187
+ @generators = args[:generators] if args.key?(:generators)
17188
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
17189
+ end
17190
+ end
17191
+
16387
17192
  # The response message for Intents.ListIntents.
16388
17193
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
16389
17194
  include Google::Apis::Core::Hashable
@@ -16699,6 +17504,45 @@ module Google
16699
17504
  end
16700
17505
  end
16701
17506
 
17507
+ # Represents a message entry of a conversation.
17508
+ class GoogleCloudDialogflowV2beta1MessageEntry
17509
+ include Google::Apis::Core::Hashable
17510
+
17511
+ # Optional. Create time of the message entry.
17512
+ # Corresponds to the JSON property `createTime`
17513
+ # @return [String]
17514
+ attr_accessor :create_time
17515
+
17516
+ # Optional. The language of the text. See [Language Support](https://cloud.
17517
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
17518
+ # supported language codes.
17519
+ # Corresponds to the JSON property `languageCode`
17520
+ # @return [String]
17521
+ attr_accessor :language_code
17522
+
17523
+ # Optional. Participant role of the message.
17524
+ # Corresponds to the JSON property `role`
17525
+ # @return [String]
17526
+ attr_accessor :role
17527
+
17528
+ # Optional. Transcript content of the message.
17529
+ # Corresponds to the JSON property `text`
17530
+ # @return [String]
17531
+ attr_accessor :text
17532
+
17533
+ def initialize(**args)
17534
+ update!(**args)
17535
+ end
17536
+
17537
+ # Update properties of this object
17538
+ def update!(**args)
17539
+ @create_time = args[:create_time] if args.key?(:create_time)
17540
+ @language_code = args[:language_code] if args.key?(:language_code)
17541
+ @role = args[:role] if args.key?(:role)
17542
+ @text = args[:text] if args.key?(:text)
17543
+ end
17544
+ end
17545
+
16702
17546
  # Defines notification behavior.
16703
17547
  class GoogleCloudDialogflowV2beta1NotificationConfig
16704
17548
  include Google::Apis::Core::Hashable
@@ -18266,6 +19110,79 @@ module Google
18266
19110
  end
18267
19111
  end
18268
19112
 
19113
+ # The request message for Participants.SuggestKnowledgeAssist.
19114
+ class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest
19115
+ include Google::Apis::Core::Hashable
19116
+
19117
+ # Optional. Max number of messages prior to and including latest_message to use
19118
+ # as context when compiling the suggestion. The context size is by default 100
19119
+ # and at most 100.
19120
+ # Corresponds to the JSON property `contextSize`
19121
+ # @return [Fixnum]
19122
+ attr_accessor :context_size
19123
+
19124
+ # Optional. The name of the latest conversation message to compile suggestions
19125
+ # for. If empty, it will be the latest message of the conversation. Format: `
19126
+ # projects//locations//conversations//messages/`.
19127
+ # Corresponds to the JSON property `latestMessage`
19128
+ # @return [String]
19129
+ attr_accessor :latest_message
19130
+
19131
+ # Optional. The previously suggested query for the given conversation. This
19132
+ # helps identify whether the next suggestion we generate is resonably different
19133
+ # from the previous one. This is useful to avoid similar suggestions within the
19134
+ # conversation.
19135
+ # Corresponds to the JSON property `previousSuggestedQuery`
19136
+ # @return [String]
19137
+ attr_accessor :previous_suggested_query
19138
+
19139
+ def initialize(**args)
19140
+ update!(**args)
19141
+ end
19142
+
19143
+ # Update properties of this object
19144
+ def update!(**args)
19145
+ @context_size = args[:context_size] if args.key?(:context_size)
19146
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
19147
+ @previous_suggested_query = args[:previous_suggested_query] if args.key?(:previous_suggested_query)
19148
+ end
19149
+ end
19150
+
19151
+ # The response message for Participants.SuggestKnowledgeAssist.
19152
+ class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
19153
+ include Google::Apis::Core::Hashable
19154
+
19155
+ # Number of messages prior to and including latest_message to compile the
19156
+ # suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
19157
+ # context_size field in the request if there are fewer messages in the
19158
+ # conversation.
19159
+ # Corresponds to the JSON property `contextSize`
19160
+ # @return [Fixnum]
19161
+ attr_accessor :context_size
19162
+
19163
+ # Represents a Knowledge Assist answer.
19164
+ # Corresponds to the JSON property `knowledgeAssistAnswer`
19165
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer]
19166
+ attr_accessor :knowledge_assist_answer
19167
+
19168
+ # The name of the latest conversation message used to compile suggestion for.
19169
+ # Format: `projects//locations//conversations//messages/`.
19170
+ # Corresponds to the JSON property `latestMessage`
19171
+ # @return [String]
19172
+ attr_accessor :latest_message
19173
+
19174
+ def initialize(**args)
19175
+ update!(**args)
19176
+ end
19177
+
19178
+ # Update properties of this object
19179
+ def update!(**args)
19180
+ @context_size = args[:context_size] if args.key?(:context_size)
19181
+ @knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
19182
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
19183
+ end
19184
+ end
19185
+
18269
19186
  # The request message for Participants.SuggestSmartReplies.
18270
19187
  class GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
18271
19188
  include Google::Apis::Core::Hashable
@@ -18588,6 +19505,11 @@ module Google
18588
19505
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
18589
19506
  attr_accessor :suggest_faq_answers_response
18590
19507
 
19508
+ # The response message for Participants.SuggestKnowledgeAssist.
19509
+ # Corresponds to the JSON property `suggestKnowledgeAssistResponse`
19510
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse]
19511
+ attr_accessor :suggest_knowledge_assist_response
19512
+
18591
19513
  # The response message for Participants.SuggestSmartReplies.
18592
19514
  # Corresponds to the JSON property `suggestSmartRepliesResponse`
18593
19515
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
@@ -18604,10 +19526,147 @@ module Google
18604
19526
  @suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
18605
19527
  @suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
18606
19528
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
19529
+ @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
18607
19530
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
18608
19531
  end
18609
19532
  end
18610
19533
 
19534
+ # Summarization context that customer can configure.
19535
+ class GoogleCloudDialogflowV2beta1SummarizationContext
19536
+ include Google::Apis::Core::Hashable
19537
+
19538
+ # Optional. List of few shot examples.
19539
+ # Corresponds to the JSON property `fewShotExamples`
19540
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FewShotExample>]
19541
+ attr_accessor :few_shot_examples
19542
+
19543
+ # Optional. The target language of the generated summary. The language code for
19544
+ # conversation will be used if this field is empty. Supported 2.0 and later
19545
+ # versions.
19546
+ # Corresponds to the JSON property `outputLanguageCode`
19547
+ # @return [String]
19548
+ attr_accessor :output_language_code
19549
+
19550
+ # Optional. List of sections. Note it contains both predefined section sand
19551
+ # customer defined sections.
19552
+ # Corresponds to the JSON property `summarizationSections`
19553
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
19554
+ attr_accessor :summarization_sections
19555
+
19556
+ # Optional. Version of the feature. If not set, default to latest version.
19557
+ # Current candidates are ["1.0"].
19558
+ # Corresponds to the JSON property `version`
19559
+ # @return [String]
19560
+ attr_accessor :version
19561
+
19562
+ def initialize(**args)
19563
+ update!(**args)
19564
+ end
19565
+
19566
+ # Update properties of this object
19567
+ def update!(**args)
19568
+ @few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
19569
+ @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
19570
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
19571
+ @version = args[:version] if args.key?(:version)
19572
+ end
19573
+ end
19574
+
19575
+ # Represents the section of summarization.
19576
+ class GoogleCloudDialogflowV2beta1SummarizationSection
19577
+ include Google::Apis::Core::Hashable
19578
+
19579
+ # Optional. Definition of the section, for example, "what the customer needs
19580
+ # help with or has question about."
19581
+ # Corresponds to the JSON property `definition`
19582
+ # @return [String]
19583
+ attr_accessor :definition
19584
+
19585
+ # Optional. Name of the section, for example, "situation".
19586
+ # Corresponds to the JSON property `key`
19587
+ # @return [String]
19588
+ attr_accessor :key
19589
+
19590
+ # Optional. Type of the summarization section.
19591
+ # Corresponds to the JSON property `type`
19592
+ # @return [String]
19593
+ attr_accessor :type
19594
+
19595
+ def initialize(**args)
19596
+ update!(**args)
19597
+ end
19598
+
19599
+ # Update properties of this object
19600
+ def update!(**args)
19601
+ @definition = args[:definition] if args.key?(:definition)
19602
+ @key = args[:key] if args.key?(:key)
19603
+ @type = args[:type] if args.key?(:type)
19604
+ end
19605
+ end
19606
+
19607
+ # List of summarization sections.
19608
+ class GoogleCloudDialogflowV2beta1SummarizationSectionList
19609
+ include Google::Apis::Core::Hashable
19610
+
19611
+ # Optional. Summarization sections.
19612
+ # Corresponds to the JSON property `summarizationSections`
19613
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
19614
+ attr_accessor :summarization_sections
19615
+
19616
+ def initialize(**args)
19617
+ update!(**args)
19618
+ end
19619
+
19620
+ # Update properties of this object
19621
+ def update!(**args)
19622
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
19623
+ end
19624
+ end
19625
+
19626
+ # Suggested summary of the conversation.
19627
+ class GoogleCloudDialogflowV2beta1SummarySuggestion
19628
+ include Google::Apis::Core::Hashable
19629
+
19630
+ # Required. All the parts of generated summary.
19631
+ # Corresponds to the JSON property `summarySections`
19632
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
19633
+ attr_accessor :summary_sections
19634
+
19635
+ def initialize(**args)
19636
+ update!(**args)
19637
+ end
19638
+
19639
+ # Update properties of this object
19640
+ def update!(**args)
19641
+ @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
19642
+ end
19643
+ end
19644
+
19645
+ # A component of the generated summary.
19646
+ class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
19647
+ include Google::Apis::Core::Hashable
19648
+
19649
+ # Required. Name of the section.
19650
+ # Corresponds to the JSON property `section`
19651
+ # @return [String]
19652
+ attr_accessor :section
19653
+
19654
+ # Required. Summary text for the section.
19655
+ # Corresponds to the JSON property `summary`
19656
+ # @return [String]
19657
+ attr_accessor :summary
19658
+
19659
+ def initialize(**args)
19660
+ update!(**args)
19661
+ end
19662
+
19663
+ # Update properties of this object
19664
+ def update!(**args)
19665
+ @section = args[:section] if args.key?(:section)
19666
+ @summary = args[:summary] if args.key?(:summary)
19667
+ end
19668
+ end
19669
+
18611
19670
  # Configuration of how speech should be synthesized.
18612
19671
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
18613
19672
  include Google::Apis::Core::Hashable