@@ -2323,6 +2323,11 @@ class GoogleCloudDialogflowCxV3QueryInput
23232323 # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput]
23242324 attr_accessor :text
23252325
2326+ # The result of calling a tool's action that has been executed by the client.
2327+ # Corresponds to the JSON property `toolCallResult`
2328+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResult]
2329+ attr_accessor :tool_call_result
2330+
23262331 def initialize(**args)
23272332 update!(**args)
23282333 end
@@ -2335,6 +2340,7 @@ def update!(**args)
23352340 @intent = args[:intent] if args.key?(:intent)
23362341 @language_code = args[:language_code] if args.key?(:language_code)
23372342 @text = args[:text] if args.key?(:text)
2343+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
23382344 end
23392345 end
23402346
@@ -2437,6 +2443,11 @@ class GoogleCloudDialogflowCxV3ResponseMessage
24372443 # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText]
24382444 attr_accessor :text
24392445
2446+ # Represents a call of a specific tool's action with the specified inputs.
2447+ # Corresponds to the JSON property `toolCall`
2448+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall]
2449+ attr_accessor :tool_call
2450+
24402451 def initialize(**args)
24412452 update!(**args)
24422453 end
@@ -2455,6 +2466,7 @@ def update!(**args)
24552466 @response_type = args[:response_type] if args.key?(:response_type)
24562467 @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
24572468 @text = args[:text] if args.key?(:text)
2469+ @tool_call = args[:tool_call] if args.key?(:tool_call)
24582470 end
24592471 end
24602472
@@ -3076,6 +3088,95 @@ def update!(**args)
30763088 end
30773089 end
30783090
3091+ # Represents a call of a specific tool's action with the specified inputs.
3092+ class GoogleCloudDialogflowCxV3ToolCall
3093+ include Google::Apis::Core::Hashable
3094+
3095+ # Required. The name of the tool's action associated with this call.
3096+ # Corresponds to the JSON property `action`
3097+ # @return [String]
3098+ attr_accessor :action
3099+
3100+ # Optional. The action's input parameters.
3101+ # Corresponds to the JSON property `inputParameters`
3102+ # @return [Hash<String,Object>]
3103+ attr_accessor :input_parameters
3104+
3105+ # Required. The tool associated with this call. Format: `projects//locations//
3106+ # agents//tools/`.
3107+ # Corresponds to the JSON property `tool`
3108+ # @return [String]
3109+ attr_accessor :tool
3110+
3111+ def initialize(**args)
3112+ update!(**args)
3113+ end
3114+
3115+ # Update properties of this object
3116+ def update!(**args)
3117+ @action = args[:action] if args.key?(:action)
3118+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
3119+ @tool = args[:tool] if args.key?(:tool)
3120+ end
3121+ end
3122+
3123+ # The result of calling a tool's action that has been executed by the client.
3124+ class GoogleCloudDialogflowCxV3ToolCallResult
3125+ include Google::Apis::Core::Hashable
3126+
3127+ # Required. The name of the tool's action associated with this call.
3128+ # Corresponds to the JSON property `action`
3129+ # @return [String]
3130+ attr_accessor :action
3131+
3132+ # An error produced by the tool call.
3133+ # Corresponds to the JSON property `error`
3134+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCallResultError]
3135+ attr_accessor :error
3136+
3137+ # The tool call's output parameters.
3138+ # Corresponds to the JSON property `outputParameters`
3139+ # @return [Hash<String,Object>]
3140+ attr_accessor :output_parameters
3141+
3142+ # Required. The tool associated with this call. Format: `projects//locations//
3143+ # agents//tools/`.
3144+ # Corresponds to the JSON property `tool`
3145+ # @return [String]
3146+ attr_accessor :tool
3147+
3148+ def initialize(**args)
3149+ update!(**args)
3150+ end
3151+
3152+ # Update properties of this object
3153+ def update!(**args)
3154+ @action = args[:action] if args.key?(:action)
3155+ @error = args[:error] if args.key?(:error)
3156+ @output_parameters = args[:output_parameters] if args.key?(:output_parameters)
3157+ @tool = args[:tool] if args.key?(:tool)
3158+ end
3159+ end
3160+
3161+ # An error produced by the tool call.
3162+ class GoogleCloudDialogflowCxV3ToolCallResultError
3163+ include Google::Apis::Core::Hashable
3164+
3165+ # Optional. The error message of the function.
3166+ # Corresponds to the JSON property `message`
3167+ # @return [String]
3168+ attr_accessor :message
3169+
3170+ def initialize(**args)
3171+ update!(**args)
3172+ end
3173+
3174+ # Update properties of this object
3175+ def update!(**args)
3176+ @message = args[:message] if args.key?(:message)
3177+ end
3178+ end
3179+
30793180 # A transition route specifies a intent that can be matched and/or a data
30803181 # condition that can be evaluated during a session. When a specified transition
30813182 # is matched, the following actions are taken in order: * If there is a `
@@ -9692,6 +9793,39 @@ def update!(**args)
96929793 end
96939794 end
96949795
9796+ # Pronunciation customization for a phrase.
9797+ class GoogleCloudDialogflowV2CustomPronunciationParams
9798+ include Google::Apis::Core::Hashable
9799+
9800+ # The phonetic encoding of the phrase.
9801+ # Corresponds to the JSON property `phoneticEncoding`
9802+ # @return [String]
9803+ attr_accessor :phonetic_encoding
9804+
9805+ # The phrase to which the customization is applied. The phrase can be multiple
9806+ # words, such as proper nouns, but shouldn't span the length of the sentence.
9807+ # Corresponds to the JSON property `phrase`
9808+ # @return [String]
9809+ attr_accessor :phrase
9810+
9811+ # The pronunciation of the phrase. This must be in the phonetic encoding
9812+ # specified above.
9813+ # Corresponds to the JSON property `pronunciation`
9814+ # @return [String]
9815+ attr_accessor :pronunciation
9816+
9817+ def initialize(**args)
9818+ update!(**args)
9819+ end
9820+
9821+ # Update properties of this object
9822+ def update!(**args)
9823+ @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
9824+ @phrase = args[:phrase] if args.key?(:phrase)
9825+ @pronunciation = args[:pronunciation] if args.key?(:pronunciation)
9826+ end
9827+ end
9828+
96959829 # Metadata for DeleteConversationDataset.
96969830 class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
96979831 include Google::Apis::Core::Hashable
@@ -12326,7 +12460,8 @@ class GoogleCloudDialogflowV2InputAudioConfig
1232612460 # translations. See [Language Support](https://cloud.google.com/dialogflow/docs/
1232712461 # reference/language) for a list of the currently supported language codes. Note
1232812462 # that queries in the same session do not necessarily need to specify the same
12329- # language.
12463+ # language. If not set, the language is inferred from the ConversationProfile.
12464+ # stt_config.
1233012465 # Corresponds to the JSON property `languageCode`
1233112466 # @return [String]
1233212467 attr_accessor :language_code
@@ -15978,7 +16113,8 @@ class GoogleCloudDialogflowV2SpeechToTextConfig
1597816113 # The language of the supplied audio. Dialogflow does not do translations. See [
1597916114 # Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
1598016115 # for a list of the currently supported language codes. Note that queries in the
15981- # same session do not necessarily need to specify the same language.
16116+ # same session do not necessarily need to specify the same language. If not
16117+ # specified, the default language configured at ConversationProfile is used.
1598216118 # Corresponds to the JSON property `languageCode`
1598316119 # @return [String]
1598416120 attr_accessor :language_code
@@ -16821,6 +16957,11 @@ class GoogleCloudDialogflowV2SynthesizeSpeechConfig
1682116957 # @return [Float]
1682216958 attr_accessor :pitch
1682316959
16960+ # Optional. The custom pronunciations for the synthesized audio.
16961+ # Corresponds to the JSON property `pronunciations`
16962+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CustomPronunciationParams>]
16963+ attr_accessor :pronunciations
16964+
1682416965 # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
1682516966 # native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is
1682616967 # half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other
@@ -16854,6 +16995,7 @@ def initialize(**args)
1685416995 def update!(**args)
1685516996 @effects_profile_id = args[:effects_profile_id] if args.key?(:effects_profile_id)
1685616997 @pitch = args[:pitch] if args.key?(:pitch)
16998+ @pronunciations = args[:pronunciations] if args.key?(:pronunciations)
1685716999 @speaking_rate = args[:speaking_rate] if args.key?(:speaking_rate)
1685817000 @voice = args[:voice] if args.key?(:voice)
1685917001 @volume_gain_db = args[:volume_gain_db] if args.key?(:volume_gain_db)
0 commit comments