google-cloud-dialogflow 1.8.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- data/lib/google/cloud/dialogflow.rb +72 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1070d13c9e9f76dd374b1b2522676c4691f030b6bfb17c486c505695b343e1b6
|
4
|
+
data.tar.gz: 225de54f2cf6e09c0e87aa128b72bb4fc79e5ce01c9fc653c8470d0b70e45070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1680bc1010f1978f757e83f61a9ea21abc750174aa87a8582d42cdd1ec6099b9cb169c816963725756d5cc3896b71230685da6926d13c9847345956fe8a99fcf
|
7
|
+
data.tar.gz: eca9c1fb74cb54d47df2cf7dba36c32415096be415682b8a879b88457b5c1232ee0389f4d3149ab050e7fc4ecbb95130d58d2efe05b7d3b873c385f316596a73
|
@@ -357,6 +357,44 @@ module Google
|
|
357
357
|
service_module.const_get(:Client).new(&block)
|
358
358
|
end
|
359
359
|
|
360
|
+
##
|
361
|
+
# Create a new client object for Generators.
|
362
|
+
#
|
363
|
+
# By default, this returns an instance of
|
364
|
+
# [Google::Cloud::Dialogflow::V2::Generators::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Generators-Client)
|
365
|
+
# for a gRPC client for version V2 of the API.
|
366
|
+
# However, you can specify a different API version by passing it in the
|
367
|
+
# `version` parameter. If the Generators service is
|
368
|
+
# supported by that API version, and the corresponding gem is available, the
|
369
|
+
# appropriate versioned client will be returned.
|
370
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
371
|
+
# the `transport` parameter.
|
372
|
+
#
|
373
|
+
# ## About Generators
|
374
|
+
#
|
375
|
+
# Generator Service for LLM powered Agent Assist. This service manages the
|
376
|
+
# configurations of user owned Generators, such as description, context and
|
377
|
+
# instruction, input/output format, etc. The generator resources will be used
|
378
|
+
# inside a conversation and will be triggered by TriggerEvent to query LLM for
|
379
|
+
# answers.
|
380
|
+
#
|
381
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
382
|
+
# Defaults to `:v2`.
|
383
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
384
|
+
# @return [::Object] A client object for the specified version.
|
385
|
+
#
|
386
|
+
def self.generators version: :v2, transport: :grpc, &block
|
387
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
388
|
+
|
389
|
+
package_name = Google::Cloud::Dialogflow
|
390
|
+
.constants
|
391
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
392
|
+
.first
|
393
|
+
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Generators)
|
394
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
395
|
+
service_module.const_get(:Client).new(&block)
|
396
|
+
end
|
397
|
+
|
360
398
|
##
|
361
399
|
# Create a new client object for Conversations.
|
362
400
|
#
|
@@ -498,6 +536,40 @@ module Google
|
|
498
536
|
service_module.const_get(:Client).new(&block)
|
499
537
|
end
|
500
538
|
|
539
|
+
##
|
540
|
+
# Create a new client object for EncryptionSpecService.
|
541
|
+
#
|
542
|
+
# By default, this returns an instance of
|
543
|
+
# [Google::Cloud::Dialogflow::V2::EncryptionSpecService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-EncryptionSpecService-Client)
|
544
|
+
# for a gRPC client for version V2 of the API.
|
545
|
+
# However, you can specify a different API version by passing it in the
|
546
|
+
# `version` parameter. If the EncryptionSpecService service is
|
547
|
+
# supported by that API version, and the corresponding gem is available, the
|
548
|
+
# appropriate versioned client will be returned.
|
549
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
550
|
+
# the `transport` parameter.
|
551
|
+
#
|
552
|
+
# ## About EncryptionSpecService
|
553
|
+
#
|
554
|
+
# Manages encryption spec settings for Dialogflow and Agent Assist.
|
555
|
+
#
|
556
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
557
|
+
# Defaults to `:v2`.
|
558
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
559
|
+
# @return [::Object] A client object for the specified version.
|
560
|
+
#
|
561
|
+
def self.encryption_spec_service version: :v2, transport: :grpc, &block
|
562
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
563
|
+
|
564
|
+
package_name = Google::Cloud::Dialogflow
|
565
|
+
.constants
|
566
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
567
|
+
.first
|
568
|
+
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:EncryptionSpecService)
|
569
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
570
|
+
service_module.const_get(:Client).new(&block)
|
571
|
+
end
|
572
|
+
|
501
573
|
##
|
502
574
|
# Create a new client object for Fulfillments.
|
503
575
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.1
|
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-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|