@@ -2254,9 +2254,10 @@ def update!(**args)
2254
2254
class GoogleCloudDialogflowCxV3EnvironmentVersionConfig
2255
2255
include Google::Apis::Core::Hashable
2256
2256
2257
- # Required. Both flow and playbook versions are supported. Format for flow
2257
+ # Required. Flow, playbook and tool versions are supported. Format for flow
2258
2258
# version: projects//locations//agents//flows//versions/. Format for playbook
2259
- # version: projects//locations//agents//playbooks//versions/.
2259
+ # version: projects//locations//agents//playbooks//versions/. Format for tool
2260
+ # version: projects//locations//agents//tools//versions/.
2260
2261
# Corresponds to the JSON property `version`
2261
2262
# @return [String]
2262
2263
attr_accessor :version
@@ -4225,6 +4226,110 @@ def update!(**args)
4225
4226
end
4226
4227
end
4227
4228
4229
+ # Handler can be used to define custom logic to be executed based on the user-
4230
+ # specified triggers.
4231
+ class GoogleCloudDialogflowCxV3Handler
4232
+ include Google::Apis::Core::Hashable
4233
+
4234
+ # A handler that is triggered by the specified event.
4235
+ # Corresponds to the JSON property `eventHandler`
4236
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerEventHandler]
4237
+ attr_accessor :event_handler
4238
+
4239
+ # A handler that is triggered on the specific lifecycle_stage of the playbook
4240
+ # execution.
4241
+ # Corresponds to the JSON property `lifecycleHandler`
4242
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3HandlerLifecycleHandler]
4243
+ attr_accessor :lifecycle_handler
4244
+
4245
+ def initialize(**args)
4246
+ update!(**args)
4247
+ end
4248
+
4249
+ # Update properties of this object
4250
+ def update!(**args)
4251
+ @event_handler = args[:event_handler] if args.key?(:event_handler)
4252
+ @lifecycle_handler = args[:lifecycle_handler] if args.key?(:lifecycle_handler)
4253
+ end
4254
+ end
4255
+
4256
+ # A handler that is triggered by the specified event.
4257
+ class GoogleCloudDialogflowCxV3HandlerEventHandler
4258
+ include Google::Apis::Core::Hashable
4259
+
4260
+ # Optional. The condition that must be satisfied to trigger this handler.
4261
+ # Corresponds to the JSON property `condition`
4262
+ # @return [String]
4263
+ attr_accessor :condition
4264
+
4265
+ # Required. The name of the event that triggers this handler.
4266
+ # Corresponds to the JSON property `event`
4267
+ # @return [String]
4268
+ attr_accessor :event
4269
+
4270
+ # A fulfillment can do one or more of the following actions at the same time: *
4271
+ # Generate rich message responses. * Set parameter values. * Call the webhook.
4272
+ # Fulfillments can be called at various stages in the Page or Form lifecycle.
4273
+ # For example, when a DetectIntentRequest drives a session to enter a new page,
4274
+ # the page's entry fulfillment can add a static response to the QueryResult in
4275
+ # the returning DetectIntentResponse, call the webhook (for example, to load
4276
+ # user data from a database), or both.
4277
+ # Corresponds to the JSON property `fulfillment`
4278
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment]
4279
+ attr_accessor :fulfillment
4280
+
4281
+ def initialize(**args)
4282
+ update!(**args)
4283
+ end
4284
+
4285
+ # Update properties of this object
4286
+ def update!(**args)
4287
+ @condition = args[:condition] if args.key?(:condition)
4288
+ @event = args[:event] if args.key?(:event)
4289
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
4290
+ end
4291
+ end
4292
+
4293
+ # A handler that is triggered on the specific lifecycle_stage of the playbook
4294
+ # execution.
4295
+ class GoogleCloudDialogflowCxV3HandlerLifecycleHandler
4296
+ include Google::Apis::Core::Hashable
4297
+
4298
+ # Optional. The condition that must be satisfied to trigger this handler.
4299
+ # Corresponds to the JSON property `condition`
4300
+ # @return [String]
4301
+ attr_accessor :condition
4302
+
4303
+ # A fulfillment can do one or more of the following actions at the same time: *
4304
+ # Generate rich message responses. * Set parameter values. * Call the webhook.
4305
+ # Fulfillments can be called at various stages in the Page or Form lifecycle.
4306
+ # For example, when a DetectIntentRequest drives a session to enter a new page,
4307
+ # the page's entry fulfillment can add a static response to the QueryResult in
4308
+ # the returning DetectIntentResponse, call the webhook (for example, to load
4309
+ # user data from a database), or both.
4310
+ # Corresponds to the JSON property `fulfillment`
4311
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment]
4312
+ attr_accessor :fulfillment
4313
+
4314
+ # Required. The name of the lifecycle stage that triggers this handler.
4315
+ # Supported values: * `playbook-start` * `pre-action-selection` * `pre-action-
4316
+ # execution`
4317
+ # Corresponds to the JSON property `lifecycleStage`
4318
+ # @return [String]
4319
+ attr_accessor :lifecycle_stage
4320
+
4321
+ def initialize(**args)
4322
+ update!(**args)
4323
+ end
4324
+
4325
+ # Update properties of this object
4326
+ def update!(**args)
4327
+ @condition = args[:condition] if args.key?(:condition)
4328
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
4329
+ @lifecycle_stage = args[:lifecycle_stage] if args.key?(:lifecycle_stage)
4330
+ end
4331
+ end
4332
+
4228
4333
# Metadata returned for the EntityTypes.ImportEntityTypes long running operation.
4229
4334
class GoogleCloudDialogflowCxV3ImportEntityTypesMetadata
4230
4335
include Google::Apis::Core::Hashable
@@ -5600,6 +5705,33 @@ def update!(**args)
5600
5705
end
5601
5706
end
5602
5707
5708
+ # The response message for Tools.ListToolVersions.
5709
+ class GoogleCloudDialogflowCxV3ListToolVersionsResponse
5710
+ include Google::Apis::Core::Hashable
5711
+
5712
+ # Token to retrieve the next page of results, or empty if there are no more
5713
+ # results in the list.
5714
+ # Corresponds to the JSON property `nextPageToken`
5715
+ # @return [String]
5716
+ attr_accessor :next_page_token
5717
+
5718
+ # The list of tool versions. There will be a maximum number of items returned
5719
+ # based on the page_size field in the request.
5720
+ # Corresponds to the JSON property `toolVersions`
5721
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolVersion>]
5722
+ attr_accessor :tool_versions
5723
+
5724
+ def initialize(**args)
5725
+ update!(**args)
5726
+ end
5727
+
5728
+ # Update properties of this object
5729
+ def update!(**args)
5730
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5731
+ @tool_versions = args[:tool_versions] if args.key?(:tool_versions)
5732
+ end
5733
+ end
5734
+
5603
5735
# The response message for Tools.ListTools.
5604
5736
class GoogleCloudDialogflowCxV3ListToolsResponse
5605
5737
include Google::Apis::Core::Hashable
@@ -6304,6 +6436,12 @@ class GoogleCloudDialogflowCxV3Playbook
6304
6436
# @return [String]
6305
6437
attr_accessor :goal
6306
6438
6439
+ # Optional. A list of registered handlers to execuate based on the specified
6440
+ # triggers.
6441
+ # Corresponds to the JSON property `handlers`
6442
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Handler>]
6443
+ attr_accessor :handlers
6444
+
6307
6445
# Message of the Instruction of the playbook.
6308
6446
# Corresponds to the JSON property `instruction`
6309
6447
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookInstruction]
@@ -6359,6 +6497,7 @@ def update!(**args)
6359
6497
@create_time = args[:create_time] if args.key?(:create_time)
6360
6498
@display_name = args[:display_name] if args.key?(:display_name)
6361
6499
@goal = args[:goal] if args.key?(:goal)
6500
+ @handlers = args[:handlers] if args.key?(:handlers)
6362
6501
@instruction = args[:instruction] if args.key?(:instruction)
6363
6502
@llm_model_settings = args[:llm_model_settings] if args.key?(:llm_model_settings)
6364
6503
@name = args[:name] if args.key?(:name)
@@ -7520,6 +7659,41 @@ def update!(**args)
7520
7659
end
7521
7660
end
7522
7661
7662
+ # The request message for Tools.RestoreToolVersion.
7663
+ class GoogleCloudDialogflowCxV3RestoreToolVersionRequest
7664
+ include Google::Apis::Core::Hashable
7665
+
7666
+ def initialize(**args)
7667
+ update!(**args)
7668
+ end
7669
+
7670
+ # Update properties of this object
7671
+ def update!(**args)
7672
+ end
7673
+ end
7674
+
7675
+ # The response message for Tools.RestoreToolVersion.
7676
+ class GoogleCloudDialogflowCxV3RestoreToolVersionResponse
7677
+ include Google::Apis::Core::Hashable
7678
+
7679
+ # A tool provides a list of actions which are available to the Playbook to
7680
+ # attain its goal. A Tool consists of a description of the tool's usage and a
7681
+ # specification of the tool which contains the schema and authentication
7682
+ # information.
7683
+ # Corresponds to the JSON property `tool`
7684
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
7685
+ attr_accessor :tool
7686
+
7687
+ def initialize(**args)
7688
+ update!(**args)
7689
+ end
7690
+
7691
+ # Update properties of this object
7692
+ def update!(**args)
7693
+ @tool = args[:tool] if args.key?(:tool)
7694
+ end
7695
+ end
7696
+
7523
7697
# The configuration for auto rollout.
7524
7698
class GoogleCloudDialogflowCxV3RolloutConfig
7525
7699
include Google::Apis::Core::Hashable
@@ -9079,6 +9253,53 @@ def update!(**args)
9079
9253
end
9080
9254
end
9081
9255
9256
+ # Tool version is a snapshot of the tool at certain timestamp.
9257
+ class GoogleCloudDialogflowCxV3ToolVersion
9258
+ include Google::Apis::Core::Hashable
9259
+
9260
+ # Output only. Last time the tool version was created or modified.
9261
+ # Corresponds to the JSON property `createTime`
9262
+ # @return [String]
9263
+ attr_accessor :create_time
9264
+
9265
+ # Required. The display name of the tool version.
9266
+ # Corresponds to the JSON property `displayName`
9267
+ # @return [String]
9268
+ attr_accessor :display_name
9269
+
9270
+ # Identifier. The unique identifier of the tool version. Format: `projects//
9271
+ # locations//agents//tools//versions/`.
9272
+ # Corresponds to the JSON property `name`
9273
+ # @return [String]
9274
+ attr_accessor :name
9275
+
9276
+ # A tool provides a list of actions which are available to the Playbook to
9277
+ # attain its goal. A Tool consists of a description of the tool's usage and a
9278
+ # specification of the tool which contains the schema and authentication
9279
+ # information.
9280
+ # Corresponds to the JSON property `tool`
9281
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
9282
+ attr_accessor :tool
9283
+
9284
+ # Output only. Last time the tool version was created or modified.
9285
+ # Corresponds to the JSON property `updateTime`
9286
+ # @return [String]
9287
+ attr_accessor :update_time
9288
+
9289
+ def initialize(**args)
9290
+ update!(**args)
9291
+ end
9292
+
9293
+ # Update properties of this object
9294
+ def update!(**args)
9295
+ @create_time = args[:create_time] if args.key?(:create_time)
9296
+ @display_name = args[:display_name] if args.key?(:display_name)
9297
+ @name = args[:name] if args.key?(:name)
9298
+ @tool = args[:tool] if args.key?(:tool)
9299
+ @update_time = args[:update_time] if args.key?(:update_time)
9300
+ end
9301
+ end
9302
+
9082
9303
# The request message for Flows.TrainFlow.
9083
9304
class GoogleCloudDialogflowCxV3TrainFlowRequest
9084
9305
include Google::Apis::Core::Hashable
@@ -11074,9 +11295,10 @@ def update!(**args)
11074
11295
class GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
11075
11296
include Google::Apis::Core::Hashable
11076
11297
11077
- # Required. Both flow and playbook versions are supported. Format for flow
11298
+ # Required. Flow, playbook and tool versions are supported. Format for flow
11078
11299
# version: projects//locations//agents//flows//versions/. Format for playbook
11079
- # version: projects//locations//agents//playbooks//versions/.
11300
+ # version: projects//locations//agents//playbooks//versions/. Format for tool
11301
+ # version: projects//locations//agents//tools//versions/.
11080
11302
# Corresponds to the JSON property `version`
11081
11303
# @return [String]
11082
11304
attr_accessor :version
0 commit comments