google-apis-dialogflow_v2 0.80.0 → 0.81.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a50b8786a8a19cc719a0cf92c67117e74b18efc1c7934b22a90b337cf4950c9f
4
- data.tar.gz: 40f1c547ebefe8254cc70277e56b7616c2193cac83a4b7f66a4dcec3e453d339
3
+ metadata.gz: 778b76b4fff4d5a35f3d64888f7a7933bbc60da24adfc836127e3750dfcd20f3
4
+ data.tar.gz: 0ebc0115af13c6bed934fad4705e3c6c62f945ae057f514fa5785becf858f3e9
5
5
  SHA512:
6
- metadata.gz: 1ab8a802196d578b7094882d3fa91e10a1a2ddf7f50ed037fc6def175e1a4dd6e121d593a8a15501dc35e3bda435b59b24693b4dea71fb47b15922633a7440e7
7
- data.tar.gz: 137137e346931adbd46eb87d6880ded4388b91973a3be876e3d462d16b3d3b0b9f29f9f27ec26865e447fca802ea038cf5123978a62db617708f31249db8f34c
6
+ metadata.gz: 35b5eb57989b533e367bc4499fbe69ce46d126744d58037b6e64748a022aaee107d1b252c6a4e430dadc82094bcdab19efb07216b87fb7c31745a6f4c9d8aa75
7
+ data.tar.gz: cc91cf28b22d8cd066216d7ef781bb29ac144da7d4e9516ea3fe74d767cad45b2678dbed0aac49143f26616bf1a833f6882dfdb20dce9a9191870a46de0b0638
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.81.0 (2024-02-18)
4
+
5
+ * Regenerated from discovery document revision 20240215
6
+
3
7
  ### v0.80.0 (2024-02-11)
4
8
 
5
9
  * Regenerated from discovery document revision 20240131
@@ -2433,6 +2433,11 @@ module Google
2433
2433
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText]
2434
2434
  attr_accessor :text
2435
2435
 
2436
+ # Represents a call of a specific tool's action with the specified inputs.
2437
+ # Corresponds to the JSON property `toolCall`
2438
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall]
2439
+ attr_accessor :tool_call
2440
+
2436
2441
  def initialize(**args)
2437
2442
  update!(**args)
2438
2443
  end
@@ -2451,6 +2456,7 @@ module Google
2451
2456
  @response_type = args[:response_type] if args.key?(:response_type)
2452
2457
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
2453
2458
  @text = args[:text] if args.key?(:text)
2459
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
2454
2460
  end
2455
2461
  end
2456
2462
 
@@ -3073,6 +3079,38 @@ module Google
3073
3079
  end
3074
3080
  end
3075
3081
 
3082
+ # Represents a call of a specific tool's action with the specified inputs.
3083
+ class GoogleCloudDialogflowCxV3ToolCall
3084
+ include Google::Apis::Core::Hashable
3085
+
3086
+ # Required. The name of the tool's action associated with this call.
3087
+ # Corresponds to the JSON property `action`
3088
+ # @return [String]
3089
+ attr_accessor :action
3090
+
3091
+ # Optional. The action's input parameters.
3092
+ # Corresponds to the JSON property `inputParameters`
3093
+ # @return [Hash<String,Object>]
3094
+ attr_accessor :input_parameters
3095
+
3096
+ # Required. The tool associated with this call. Format: `projects//locations//
3097
+ # agents//tools/`.
3098
+ # Corresponds to the JSON property `tool`
3099
+ # @return [String]
3100
+ attr_accessor :tool
3101
+
3102
+ def initialize(**args)
3103
+ update!(**args)
3104
+ end
3105
+
3106
+ # Update properties of this object
3107
+ def update!(**args)
3108
+ @action = args[:action] if args.key?(:action)
3109
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
3110
+ @tool = args[:tool] if args.key?(:tool)
3111
+ end
3112
+ end
3113
+
3076
3114
  # A transition route specifies a intent that can be matched and/or a data
3077
3115
  # condition that can be evaluated during a session. When a specified transition
3078
3116
  # is matched, the following actions are taken in order: * If there is a `
@@ -5994,6 +6032,11 @@ module Google
5994
6032
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TextInput]
5995
6033
  attr_accessor :text
5996
6034
 
6035
+ # The result of calling a tool's action that has been executed by the client.
6036
+ # Corresponds to the JSON property `toolCallResult`
6037
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResult]
6038
+ attr_accessor :tool_call_result
6039
+
5997
6040
  def initialize(**args)
5998
6041
  update!(**args)
5999
6042
  end
@@ -6006,6 +6049,7 @@ module Google
6006
6049
  @intent = args[:intent] if args.key?(:intent)
6007
6050
  @language_code = args[:language_code] if args.key?(:language_code)
6008
6051
  @text = args[:text] if args.key?(:text)
6052
+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
6009
6053
  end
6010
6054
  end
6011
6055
 
@@ -6122,6 +6166,11 @@ module Google
6122
6166
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText]
6123
6167
  attr_accessor :text
6124
6168
 
6169
+ # Represents a call of a specific tool's action with the specified inputs.
6170
+ # Corresponds to the JSON property `toolCall`
6171
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall]
6172
+ attr_accessor :tool_call
6173
+
6125
6174
  def initialize(**args)
6126
6175
  update!(**args)
6127
6176
  end
@@ -6139,6 +6188,7 @@ module Google
6139
6188
  @play_audio = args[:play_audio] if args.key?(:play_audio)
6140
6189
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
6141
6190
  @text = args[:text] if args.key?(:text)
6191
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
6142
6192
  end
6143
6193
  end
6144
6194
 
@@ -6761,6 +6811,95 @@ module Google
6761
6811
  end
6762
6812
  end
6763
6813
 
6814
+ # Represents a call of a specific tool's action with the specified inputs.
6815
+ class GoogleCloudDialogflowCxV3beta1ToolCall
6816
+ include Google::Apis::Core::Hashable
6817
+
6818
+ # Required. The name of the tool's action associated with this call.
6819
+ # Corresponds to the JSON property `action`
6820
+ # @return [String]
6821
+ attr_accessor :action
6822
+
6823
+ # Optional. The action's input parameters.
6824
+ # Corresponds to the JSON property `inputParameters`
6825
+ # @return [Hash<String,Object>]
6826
+ attr_accessor :input_parameters
6827
+
6828
+ # Required. The tool associated with this call. Format: `projects//locations//
6829
+ # agents//tools/`.
6830
+ # Corresponds to the JSON property `tool`
6831
+ # @return [String]
6832
+ attr_accessor :tool
6833
+
6834
+ def initialize(**args)
6835
+ update!(**args)
6836
+ end
6837
+
6838
+ # Update properties of this object
6839
+ def update!(**args)
6840
+ @action = args[:action] if args.key?(:action)
6841
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
6842
+ @tool = args[:tool] if args.key?(:tool)
6843
+ end
6844
+ end
6845
+
6846
+ # The result of calling a tool's action that has been executed by the client.
6847
+ class GoogleCloudDialogflowCxV3beta1ToolCallResult
6848
+ include Google::Apis::Core::Hashable
6849
+
6850
+ # Required. The name of the tool's action associated with this call.
6851
+ # Corresponds to the JSON property `action`
6852
+ # @return [String]
6853
+ attr_accessor :action
6854
+
6855
+ # An error produced by the tool call.
6856
+ # Corresponds to the JSON property `error`
6857
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResultError]
6858
+ attr_accessor :error
6859
+
6860
+ # The tool call's output parameters.
6861
+ # Corresponds to the JSON property `outputParameters`
6862
+ # @return [Hash<String,Object>]
6863
+ attr_accessor :output_parameters
6864
+
6865
+ # Required. The tool associated with this call. Format: `projects//locations//
6866
+ # agents//tools/`.
6867
+ # Corresponds to the JSON property `tool`
6868
+ # @return [String]
6869
+ attr_accessor :tool
6870
+
6871
+ def initialize(**args)
6872
+ update!(**args)
6873
+ end
6874
+
6875
+ # Update properties of this object
6876
+ def update!(**args)
6877
+ @action = args[:action] if args.key?(:action)
6878
+ @error = args[:error] if args.key?(:error)
6879
+ @output_parameters = args[:output_parameters] if args.key?(:output_parameters)
6880
+ @tool = args[:tool] if args.key?(:tool)
6881
+ end
6882
+ end
6883
+
6884
+ # An error produced by the tool call.
6885
+ class GoogleCloudDialogflowCxV3beta1ToolCallResultError
6886
+ include Google::Apis::Core::Hashable
6887
+
6888
+ # Optional. The error message of the function.
6889
+ # Corresponds to the JSON property `message`
6890
+ # @return [String]
6891
+ attr_accessor :message
6892
+
6893
+ def initialize(**args)
6894
+ update!(**args)
6895
+ end
6896
+
6897
+ # Update properties of this object
6898
+ def update!(**args)
6899
+ @message = args[:message] if args.key?(:message)
6900
+ end
6901
+ end
6902
+
6764
6903
  # A transition route specifies a intent that can be matched and/or a data
6765
6904
  # condition that can be evaluated during a session. When a specified transition
6766
6905
  # is matched, the following actions are taken in order: * If there is a `
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2
18
18
  # Version of the google-apis-dialogflow_v2 gem
19
- GEM_VERSION = "0.80.0"
19
+ GEM_VERSION = "0.81.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240131"
25
+ REVISION = "20240215"
26
26
  end
27
27
  end
28
28
  end
@@ -568,6 +568,12 @@ module Google
568
568
  include Google::Apis::Core::JsonObjectSupport
569
569
  end
570
570
 
571
+ class GoogleCloudDialogflowCxV3ToolCall
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
571
577
  class GoogleCloudDialogflowCxV3TransitionRoute
572
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
579
 
@@ -1192,6 +1198,24 @@ module Google
1192
1198
  include Google::Apis::Core::JsonObjectSupport
1193
1199
  end
1194
1200
 
1201
+ class GoogleCloudDialogflowCxV3beta1ToolCall
1202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1203
+
1204
+ include Google::Apis::Core::JsonObjectSupport
1205
+ end
1206
+
1207
+ class GoogleCloudDialogflowCxV3beta1ToolCallResult
1208
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1209
+
1210
+ include Google::Apis::Core::JsonObjectSupport
1211
+ end
1212
+
1213
+ class GoogleCloudDialogflowCxV3beta1ToolCallResultError
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1195
1219
  class GoogleCloudDialogflowCxV3beta1TransitionRoute
1196
1220
  class Representation < Google::Apis::Core::JsonRepresentation; end
1197
1221
 
@@ -3791,6 +3815,8 @@ module Google
3791
3815
 
3792
3816
  property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText::Representation
3793
3817
 
3818
+ property :tool_call, as: 'toolCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ToolCall::Representation
3819
+
3794
3820
  end
3795
3821
  end
3796
3822
 
@@ -3980,6 +4006,15 @@ module Google
3980
4006
  end
3981
4007
  end
3982
4008
 
4009
+ class GoogleCloudDialogflowCxV3ToolCall
4010
+ # @private
4011
+ class Representation < Google::Apis::Core::JsonRepresentation
4012
+ property :action, as: 'action'
4013
+ hash :input_parameters, as: 'inputParameters'
4014
+ property :tool, as: 'tool'
4015
+ end
4016
+ end
4017
+
3983
4018
  class GoogleCloudDialogflowCxV3TransitionRoute
3984
4019
  # @private
3985
4020
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4772,6 +4807,8 @@ module Google
4772
4807
  property :language_code, as: 'languageCode'
4773
4808
  property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TextInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TextInput::Representation
4774
4809
 
4810
+ property :tool_call_result, as: 'toolCallResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResult::Representation
4811
+
4775
4812
  end
4776
4813
  end
4777
4814
 
@@ -4806,6 +4843,8 @@ module Google
4806
4843
 
4807
4844
  property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText::Representation
4808
4845
 
4846
+ property :tool_call, as: 'toolCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall::Representation
4847
+
4809
4848
  end
4810
4849
  end
4811
4850
 
@@ -4995,6 +5034,33 @@ module Google
4995
5034
  end
4996
5035
  end
4997
5036
 
5037
+ class GoogleCloudDialogflowCxV3beta1ToolCall
5038
+ # @private
5039
+ class Representation < Google::Apis::Core::JsonRepresentation
5040
+ property :action, as: 'action'
5041
+ hash :input_parameters, as: 'inputParameters'
5042
+ property :tool, as: 'tool'
5043
+ end
5044
+ end
5045
+
5046
+ class GoogleCloudDialogflowCxV3beta1ToolCallResult
5047
+ # @private
5048
+ class Representation < Google::Apis::Core::JsonRepresentation
5049
+ property :action, as: 'action'
5050
+ property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResultError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResultError::Representation
5051
+
5052
+ hash :output_parameters, as: 'outputParameters'
5053
+ property :tool, as: 'tool'
5054
+ end
5055
+ end
5056
+
5057
+ class GoogleCloudDialogflowCxV3beta1ToolCallResultError
5058
+ # @private
5059
+ class Representation < Google::Apis::Core::JsonRepresentation
5060
+ property :message, as: 'message'
5061
+ end
5062
+ end
5063
+
4998
5064
  class GoogleCloudDialogflowCxV3beta1TransitionRoute
4999
5065
  # @private
5000
5066
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.80.0
4
+ version: 0.81.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-11 00:00:00.000000000 Z
11
+ date: 2024-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.80.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.81.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
63
63
  post_install_message:
64
64
  rdoc_options: []