google-cloud-dialogflow 1.10.0 → 1.11.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 +4 -4
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- data/lib/google/cloud/dialogflow.rb +74 -74
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b912ab99fc7bc2ea024ee33b193ced65ba3f3e035f10d6d21dd132f50f51bc5d
|
4
|
+
data.tar.gz: 796a726cd2bd15ec2a661ae4c0a17e1124ef739e901357d51aefe008b97abf96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3209e324e207c845f4665189eb31a3b64964462bccb647ba1b4536ed5e6afa5135ee0fd6b90e7ad5143fdb3c5361b978a4a00276c0e421ccd927b244831f9e7
|
7
|
+
data.tar.gz: 4c2b2f8528c1b6a58c61b364bfbaef16d626de65d54a0c2e318b1b6e85b43f03b69a95165ed735a3fb5e55bfc61e8f03a90aa6a8a1595c2fff7af4b43284a864
|
@@ -115,6 +115,80 @@ module Google
|
|
115
115
|
false
|
116
116
|
end
|
117
117
|
|
118
|
+
##
|
119
|
+
# Create a new client object for Generators.
|
120
|
+
#
|
121
|
+
# By default, this returns an instance of
|
122
|
+
# [Google::Cloud::Dialogflow::V2::Generators::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Generators-Client)
|
123
|
+
# for a gRPC client for version V2 of the API.
|
124
|
+
# However, you can specify a different API version by passing it in the
|
125
|
+
# `version` parameter. If the Generators service is
|
126
|
+
# supported by that API version, and the corresponding gem is available, the
|
127
|
+
# appropriate versioned client will be returned.
|
128
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
129
|
+
# the `transport` parameter.
|
130
|
+
#
|
131
|
+
# Raises an exception if the currently installed versioned client gem for the
|
132
|
+
# given API version does not support the given transport of the Generators service.
|
133
|
+
# You can determine whether the method will succeed by calling
|
134
|
+
# {Google::Cloud::Dialogflow.generators_available?}.
|
135
|
+
#
|
136
|
+
# ## About Generators
|
137
|
+
#
|
138
|
+
# Generator Service for LLM powered Agent Assist. This service manages the
|
139
|
+
# configurations of user owned Generators, such as description, context and
|
140
|
+
# instruction, input/output format, etc. The generator resources will be used
|
141
|
+
# inside a conversation and will be triggered by TriggerEvent to query LLM for
|
142
|
+
# answers.
|
143
|
+
#
|
144
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
145
|
+
# Defaults to `:v2`.
|
146
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
147
|
+
# @return [::Object] A client object for the specified version.
|
148
|
+
#
|
149
|
+
def self.generators version: :v2, transport: :grpc, &block
|
150
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
151
|
+
|
152
|
+
package_name = Google::Cloud::Dialogflow
|
153
|
+
.constants
|
154
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
155
|
+
.first
|
156
|
+
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Generators)
|
157
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
158
|
+
service_module.const_get(:Client).new(&block)
|
159
|
+
end
|
160
|
+
|
161
|
+
##
|
162
|
+
# Determines whether the Generators service is supported by the current client.
|
163
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.generators}.
|
164
|
+
# If false, that method will raise an exception. This could happen if the given
|
165
|
+
# API version does not exist or does not support the Generators service,
|
166
|
+
# or if the versioned client gem needs an update to support the Generators service.
|
167
|
+
#
|
168
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
169
|
+
# Defaults to `:v2`.
|
170
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
171
|
+
# @return [boolean] Whether the service is available.
|
172
|
+
#
|
173
|
+
def self.generators_available? version: :v2, transport: :grpc
|
174
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
175
|
+
package_name = Google::Cloud::Dialogflow
|
176
|
+
.constants
|
177
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
178
|
+
.first
|
179
|
+
return false unless package_name
|
180
|
+
service_module = Google::Cloud::Dialogflow.const_get package_name
|
181
|
+
return false unless service_module.const_defined? :Generators
|
182
|
+
service_module = service_module.const_get :Generators
|
183
|
+
if transport == :rest
|
184
|
+
return false unless service_module.const_defined? :Rest
|
185
|
+
service_module = service_module.const_get :Rest
|
186
|
+
end
|
187
|
+
service_module.const_defined? :Client
|
188
|
+
rescue ::LoadError
|
189
|
+
false
|
190
|
+
end
|
191
|
+
|
118
192
|
##
|
119
193
|
# Create a new client object for Contexts.
|
120
194
|
#
|
@@ -681,80 +755,6 @@ module Google
|
|
681
755
|
false
|
682
756
|
end
|
683
757
|
|
684
|
-
##
|
685
|
-
# Create a new client object for Generators.
|
686
|
-
#
|
687
|
-
# By default, this returns an instance of
|
688
|
-
# [Google::Cloud::Dialogflow::V2::Generators::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Generators-Client)
|
689
|
-
# for a gRPC client for version V2 of the API.
|
690
|
-
# However, you can specify a different API version by passing it in the
|
691
|
-
# `version` parameter. If the Generators service is
|
692
|
-
# supported by that API version, and the corresponding gem is available, the
|
693
|
-
# appropriate versioned client will be returned.
|
694
|
-
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
695
|
-
# the `transport` parameter.
|
696
|
-
#
|
697
|
-
# Raises an exception if the currently installed versioned client gem for the
|
698
|
-
# given API version does not support the given transport of the Generators service.
|
699
|
-
# You can determine whether the method will succeed by calling
|
700
|
-
# {Google::Cloud::Dialogflow.generators_available?}.
|
701
|
-
#
|
702
|
-
# ## About Generators
|
703
|
-
#
|
704
|
-
# Generator Service for LLM powered Agent Assist. This service manages the
|
705
|
-
# configurations of user owned Generators, such as description, context and
|
706
|
-
# instruction, input/output format, etc. The generator resources will be used
|
707
|
-
# inside a conversation and will be triggered by TriggerEvent to query LLM for
|
708
|
-
# answers.
|
709
|
-
#
|
710
|
-
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
711
|
-
# Defaults to `:v2`.
|
712
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
713
|
-
# @return [::Object] A client object for the specified version.
|
714
|
-
#
|
715
|
-
def self.generators version: :v2, transport: :grpc, &block
|
716
|
-
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
717
|
-
|
718
|
-
package_name = Google::Cloud::Dialogflow
|
719
|
-
.constants
|
720
|
-
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
721
|
-
.first
|
722
|
-
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Generators)
|
723
|
-
service_module = service_module.const_get(:Rest) if transport == :rest
|
724
|
-
service_module.const_get(:Client).new(&block)
|
725
|
-
end
|
726
|
-
|
727
|
-
##
|
728
|
-
# Determines whether the Generators service is supported by the current client.
|
729
|
-
# If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.generators}.
|
730
|
-
# If false, that method will raise an exception. This could happen if the given
|
731
|
-
# API version does not exist or does not support the Generators service,
|
732
|
-
# or if the versioned client gem needs an update to support the Generators service.
|
733
|
-
#
|
734
|
-
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
735
|
-
# Defaults to `:v2`.
|
736
|
-
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
737
|
-
# @return [boolean] Whether the service is available.
|
738
|
-
#
|
739
|
-
def self.generators_available? version: :v2, transport: :grpc
|
740
|
-
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
741
|
-
package_name = Google::Cloud::Dialogflow
|
742
|
-
.constants
|
743
|
-
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
744
|
-
.first
|
745
|
-
return false unless package_name
|
746
|
-
service_module = Google::Cloud::Dialogflow.const_get package_name
|
747
|
-
return false unless service_module.const_defined? :Generators
|
748
|
-
service_module = service_module.const_get :Generators
|
749
|
-
if transport == :rest
|
750
|
-
return false unless service_module.const_defined? :Rest
|
751
|
-
service_module = service_module.const_get :Rest
|
752
|
-
end
|
753
|
-
service_module.const_defined? :Client
|
754
|
-
rescue ::LoadError
|
755
|
-
false
|
756
|
-
end
|
757
|
-
|
758
758
|
##
|
759
759
|
# Create a new client object for Conversations.
|
760
760
|
#
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-cloud-core
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.6.
|
83
|
+
rubygems_version: 3.6.5
|
84
84
|
specification_version: 4
|
85
85
|
summary: API Client library for the Dialogflow API
|
86
86
|
test_files: []
|