google-apis-firebaseml_v2beta 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852786b652b553515466a615068eb63f7f4e2600c8a62c9a45edfe62c690ddbf
|
4
|
+
data.tar.gz: 42adea32bcb874fcadc1443c7085bb4ff5c7cad546ed23eb3429fc2de3d24366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec29992f6d7ad6a961f76fcdce4ab413e201f6023a37a5c64eb53e941427a389da3ddecc71d6a7b28dbdb06d31ede5e2f1acb9b8affaff4fb5a6ad66f71e971
|
7
|
+
data.tar.gz: 607ee7658000795451747ea1b144fe12d863787a4394cc373ce562793bb5504c18fb74d441af2d0d40158c3e37988c190dd927da13710b83b041e52dae8c8bf5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-firebaseml_v2beta
|
2
2
|
|
3
|
+
### v0.4.0 (2024-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240515
|
6
|
+
* Regenerated using generator version 0.15.0
|
7
|
+
|
8
|
+
### v0.3.0 (2024-04-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240425
|
11
|
+
|
3
12
|
### v0.2.0 (2024-04-14)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240405
|
@@ -632,6 +632,19 @@ module Google
|
|
632
632
|
end
|
633
633
|
end
|
634
634
|
|
635
|
+
# Tool to retrieve public web data for grounding, powered by Google.
|
636
|
+
class GoogleSearchRetrieval
|
637
|
+
include Google::Apis::Core::Hashable
|
638
|
+
|
639
|
+
def initialize(**args)
|
640
|
+
update!(**args)
|
641
|
+
end
|
642
|
+
|
643
|
+
# Update properties of this object
|
644
|
+
def update!(**args)
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
635
648
|
# Metadata returned to client when grounding is enabled.
|
636
649
|
class GroundingMetadata
|
637
650
|
include Google::Apis::Core::Hashable
|
@@ -641,6 +654,11 @@ module Google
|
|
641
654
|
# @return [Array<String>]
|
642
655
|
attr_accessor :retrieval_queries
|
643
656
|
|
657
|
+
# Google search entry point.
|
658
|
+
# Corresponds to the JSON property `searchEntryPoint`
|
659
|
+
# @return [Google::Apis::FirebasemlV2beta::SearchEntryPoint]
|
660
|
+
attr_accessor :search_entry_point
|
661
|
+
|
644
662
|
# Optional. Web search queries for the following-up web search.
|
645
663
|
# Corresponds to the JSON property `webSearchQueries`
|
646
664
|
# @return [Array<String>]
|
@@ -653,6 +671,7 @@ module Google
|
|
653
671
|
# Update properties of this object
|
654
672
|
def update!(**args)
|
655
673
|
@retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
|
674
|
+
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
|
656
675
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
657
676
|
end
|
658
677
|
end
|
@@ -772,6 +791,33 @@ module Google
|
|
772
791
|
end
|
773
792
|
end
|
774
793
|
|
794
|
+
# The definition of the Rag resource.
|
795
|
+
class RagResource
|
796
|
+
include Google::Apis::Core::Hashable
|
797
|
+
|
798
|
+
# Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
|
799
|
+
# location`/ragCorpora/`rag_corpus``
|
800
|
+
# Corresponds to the JSON property `ragCorpus`
|
801
|
+
# @return [String]
|
802
|
+
attr_accessor :rag_corpus
|
803
|
+
|
804
|
+
# Optional. rag_file_id. The files should be in the same rag_corpus set in
|
805
|
+
# rag_corpus field.
|
806
|
+
# Corresponds to the JSON property `ragFileIds`
|
807
|
+
# @return [Array<String>]
|
808
|
+
attr_accessor :rag_file_ids
|
809
|
+
|
810
|
+
def initialize(**args)
|
811
|
+
update!(**args)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Update properties of this object
|
815
|
+
def update!(**args)
|
816
|
+
@rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
|
817
|
+
@rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
775
821
|
# Defines a retrieval tool that model can call to access external knowledge.
|
776
822
|
class Retrieval
|
777
823
|
include Google::Apis::Core::Hashable
|
@@ -1035,6 +1081,33 @@ module Google
|
|
1035
1081
|
end
|
1036
1082
|
end
|
1037
1083
|
|
1084
|
+
# Google search entry point.
|
1085
|
+
class SearchEntryPoint
|
1086
|
+
include Google::Apis::Core::Hashable
|
1087
|
+
|
1088
|
+
# Optional. Web content snippet that can be embedded in a web page or an app
|
1089
|
+
# webview.
|
1090
|
+
# Corresponds to the JSON property `renderedContent`
|
1091
|
+
# @return [String]
|
1092
|
+
attr_accessor :rendered_content
|
1093
|
+
|
1094
|
+
# Optional. Base64 encoded JSON representing array of tuple.
|
1095
|
+
# Corresponds to the JSON property `sdkBlob`
|
1096
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1097
|
+
# @return [String]
|
1098
|
+
attr_accessor :sdk_blob
|
1099
|
+
|
1100
|
+
def initialize(**args)
|
1101
|
+
update!(**args)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Update properties of this object
|
1105
|
+
def update!(**args)
|
1106
|
+
@rendered_content = args[:rendered_content] if args.key?(:rendered_content)
|
1107
|
+
@sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
|
1108
|
+
end
|
1109
|
+
end
|
1110
|
+
|
1038
1111
|
# Tool details that the model may use to generate response. A `Tool` is a piece
|
1039
1112
|
# of code that enables the system to interact with external systems to perform
|
1040
1113
|
# an action, or set of actions, outside of knowledge and scope of the model. A
|
@@ -1053,6 +1126,11 @@ module Google
|
|
1053
1126
|
# @return [Array<Google::Apis::FirebasemlV2beta::FunctionDeclaration>]
|
1054
1127
|
attr_accessor :function_declarations
|
1055
1128
|
|
1129
|
+
# Tool to retrieve public web data for grounding, powered by Google.
|
1130
|
+
# Corresponds to the JSON property `googleSearchRetrieval`
|
1131
|
+
# @return [Google::Apis::FirebasemlV2beta::GoogleSearchRetrieval]
|
1132
|
+
attr_accessor :google_search_retrieval
|
1133
|
+
|
1056
1134
|
# Defines a retrieval tool that model can call to access external knowledge.
|
1057
1135
|
# Corresponds to the JSON property `retrieval`
|
1058
1136
|
# @return [Google::Apis::FirebasemlV2beta::Retrieval]
|
@@ -1065,6 +1143,7 @@ module Google
|
|
1065
1143
|
# Update properties of this object
|
1066
1144
|
def update!(**args)
|
1067
1145
|
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
1146
|
+
@google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
|
1068
1147
|
@retrieval = args[:retrieval] if args.key?(:retrieval)
|
1069
1148
|
end
|
1070
1149
|
end
|
@@ -1145,14 +1224,18 @@ module Google
|
|
1145
1224
|
class VertexRagStore
|
1146
1225
|
include Google::Apis::Core::Hashable
|
1147
1226
|
|
1148
|
-
#
|
1149
|
-
# `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
|
1150
|
-
# the future we may open up multiple corpora support. However, they should be
|
1151
|
-
# from the same project and location.
|
1227
|
+
# Optional. Deprecated. Please use rag_resources instead.
|
1152
1228
|
# Corresponds to the JSON property `ragCorpora`
|
1153
1229
|
# @return [Array<String>]
|
1154
1230
|
attr_accessor :rag_corpora
|
1155
1231
|
|
1232
|
+
# Optional. The representation of the rag source. It can be used to specify
|
1233
|
+
# corpus only or ragfiles. Currently only support one corpus or multiple files
|
1234
|
+
# from one corpus. In the future we may open up multiple corpora support.
|
1235
|
+
# Corresponds to the JSON property `ragResources`
|
1236
|
+
# @return [Array<Google::Apis::FirebasemlV2beta::RagResource>]
|
1237
|
+
attr_accessor :rag_resources
|
1238
|
+
|
1156
1239
|
# Optional. Number of top k results to return from the selected corpora.
|
1157
1240
|
# Corresponds to the JSON property `similarityTopK`
|
1158
1241
|
# @return [Fixnum]
|
@@ -1170,6 +1253,7 @@ module Google
|
|
1170
1253
|
# Update properties of this object
|
1171
1254
|
def update!(**args)
|
1172
1255
|
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
1256
|
+
@rag_resources = args[:rag_resources] if args.key?(:rag_resources)
|
1173
1257
|
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
1174
1258
|
@vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
|
1175
1259
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FirebasemlV2beta
|
18
18
|
# Version of the google-apis-firebaseml_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240515"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class GoogleSearchRetrieval
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class GroundingMetadata
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -142,6 +148,12 @@ module Google
|
|
142
148
|
include Google::Apis::Core::JsonObjectSupport
|
143
149
|
end
|
144
150
|
|
151
|
+
class RagResource
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
145
157
|
class Retrieval
|
146
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
159
|
|
@@ -166,6 +178,12 @@ module Google
|
|
166
178
|
include Google::Apis::Core::JsonObjectSupport
|
167
179
|
end
|
168
180
|
|
181
|
+
class SearchEntryPoint
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
169
187
|
class Tool
|
170
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
189
|
|
@@ -373,10 +391,18 @@ module Google
|
|
373
391
|
end
|
374
392
|
end
|
375
393
|
|
394
|
+
class GoogleSearchRetrieval
|
395
|
+
# @private
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
376
400
|
class GroundingMetadata
|
377
401
|
# @private
|
378
402
|
class Representation < Google::Apis::Core::JsonRepresentation
|
379
403
|
collection :retrieval_queries, as: 'retrievalQueries'
|
404
|
+
property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::FirebasemlV2beta::SearchEntryPoint, decorator: Google::Apis::FirebasemlV2beta::SearchEntryPoint::Representation
|
405
|
+
|
380
406
|
collection :web_search_queries, as: 'webSearchQueries'
|
381
407
|
end
|
382
408
|
end
|
@@ -416,6 +442,14 @@ module Google
|
|
416
442
|
end
|
417
443
|
end
|
418
444
|
|
445
|
+
class RagResource
|
446
|
+
# @private
|
447
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
448
|
+
property :rag_corpus, as: 'ragCorpus'
|
449
|
+
collection :rag_file_ids, as: 'ragFileIds'
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
419
453
|
class Retrieval
|
420
454
|
# @private
|
421
455
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -476,11 +510,21 @@ module Google
|
|
476
510
|
end
|
477
511
|
end
|
478
512
|
|
513
|
+
class SearchEntryPoint
|
514
|
+
# @private
|
515
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
516
|
+
property :rendered_content, as: 'renderedContent'
|
517
|
+
property :sdk_blob, :base64 => true, as: 'sdkBlob'
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
479
521
|
class Tool
|
480
522
|
# @private
|
481
523
|
class Representation < Google::Apis::Core::JsonRepresentation
|
482
524
|
collection :function_declarations, as: 'functionDeclarations', class: Google::Apis::FirebasemlV2beta::FunctionDeclaration, decorator: Google::Apis::FirebasemlV2beta::FunctionDeclaration::Representation
|
483
525
|
|
526
|
+
property :google_search_retrieval, as: 'googleSearchRetrieval', class: Google::Apis::FirebasemlV2beta::GoogleSearchRetrieval, decorator: Google::Apis::FirebasemlV2beta::GoogleSearchRetrieval::Representation
|
527
|
+
|
484
528
|
property :retrieval, as: 'retrieval', class: Google::Apis::FirebasemlV2beta::Retrieval, decorator: Google::Apis::FirebasemlV2beta::Retrieval::Representation
|
485
529
|
|
486
530
|
end
|
@@ -514,6 +558,8 @@ module Google
|
|
514
558
|
# @private
|
515
559
|
class Representation < Google::Apis::Core::JsonRepresentation
|
516
560
|
collection :rag_corpora, as: 'ragCorpora'
|
561
|
+
collection :rag_resources, as: 'ragResources', class: Google::Apis::FirebasemlV2beta::RagResource, decorator: Google::Apis::FirebasemlV2beta::RagResource::Representation
|
562
|
+
|
517
563
|
property :similarity_top_k, as: 'similarityTopK'
|
518
564
|
property :vector_distance_threshold, as: 'vectorDistanceThreshold'
|
519
565
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firebaseml_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2024-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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-firebaseml_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.4.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|