google-apis-firebaseml_v2beta 0.7.0 → 0.9.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: b677abf3fbacab139745119e2f94180e891cf1eb6a3a3a347ef2b35a40fe3961
4
- data.tar.gz: 47e07d1af1eee19960489f29cb8d66a79fde390bd8b26b9eaf7713c58203920a
3
+ metadata.gz: 8102935f78ac2c9d16e3c032050542799b129cab240aba2182f33f802f52b28e
4
+ data.tar.gz: 2d3826c5a77824d732981f95089d59e454872db35b91a4eeb26196c0b27abffc
5
5
  SHA512:
6
- metadata.gz: fb3517f0f181d5e9c8557fb69d43f75ff591fe7f218a87f658e267ca367f5b7d8d7f92402c4cc3a3a1fe0bb27ce86efb4a3b33475ba3cae0dddcb5e48c03765d
7
- data.tar.gz: 945341d7f11ea745601af1e3a324dbdfdc76d5fba2f1b17ce77200ab9cefc09e07412bb43664691c751de3e8fa9aa4d9a62354557346534dd30dd87951da036b
6
+ metadata.gz: a8e43417ca637df413b52403109e1ddc88561bcf1bea95bfc365f0c27a5df2ddbf0440b30141a3f047e432577944fa99b5b37dac479120ace0ad4153af59bcdf
7
+ data.tar.gz: 594ddfbfc7d6609ac4bbebca4bf3083056b720682fa589c92abb2fd9eb32e2a8fe7c80d83c2256b5d130afffb7315345e1c2f5d023247a92de0755206e8ac2ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.9.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240722
6
+
7
+ ### v0.8.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240614
10
+
3
11
  ### v0.7.0 (2024-06-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20240611
@@ -260,23 +260,39 @@ module Google
260
260
  class GoogleCloudAiplatformV1beta1CountTokensRequest
261
261
  include Google::Apis::Core::Hashable
262
262
 
263
- # Required. Input content.
263
+ # Optional. Input content.
264
264
  # Corresponds to the JSON property `contents`
265
265
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content>]
266
266
  attr_accessor :contents
267
267
 
268
- # Required. The instances that are the input to token counting call. Schema is
268
+ # Optional. The instances that are the input to token counting call. Schema is
269
269
  # identical to the prediction schema of the underlying model.
270
270
  # Corresponds to the JSON property `instances`
271
271
  # @return [Array<Object>]
272
272
  attr_accessor :instances
273
273
 
274
- # Required. The name of the publisher model requested to serve the prediction.
274
+ # Optional. The name of the publisher model requested to serve the prediction.
275
275
  # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
276
276
  # Corresponds to the JSON property `model`
277
277
  # @return [String]
278
278
  attr_accessor :model
279
279
 
280
+ # The base structured datatype containing multi-part content of a message. A `
281
+ # Content` includes a `role` field designating the producer of the `Content` and
282
+ # a `parts` field containing multi-part data that contains the content of the
283
+ # message turn.
284
+ # Corresponds to the JSON property `systemInstruction`
285
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content]
286
+ attr_accessor :system_instruction
287
+
288
+ # Optional. A list of `Tools` the model may use to generate the next response. A
289
+ # `Tool` is a piece of code that enables the system to interact with external
290
+ # systems to perform an action, or set of actions, outside of knowledge and
291
+ # scope of the model.
292
+ # Corresponds to the JSON property `tools`
293
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Tool>]
294
+ attr_accessor :tools
295
+
280
296
  def initialize(**args)
281
297
  update!(**args)
282
298
  end
@@ -286,6 +302,8 @@ module Google
286
302
  @contents = args[:contents] if args.key?(:contents)
287
303
  @instances = args[:instances] if args.key?(:instances)
288
304
  @model = args[:model] if args.key?(:model)
305
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
306
+ @tools = args[:tools] if args.key?(:tools)
289
307
  end
290
308
  end
291
309
 
@@ -725,10 +743,95 @@ module Google
725
743
  end
726
744
  end
727
745
 
746
+ # Grounding chunk.
747
+ class GoogleCloudAiplatformV1beta1GroundingChunk
748
+ include Google::Apis::Core::Hashable
749
+
750
+ # Chunk from context retrieved by the retrieval tools.
751
+ # Corresponds to the JSON property `retrievedContext`
752
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext]
753
+ attr_accessor :retrieved_context
754
+
755
+ # Chunk from the web.
756
+ # Corresponds to the JSON property `web`
757
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkWeb]
758
+ attr_accessor :web
759
+
760
+ def initialize(**args)
761
+ update!(**args)
762
+ end
763
+
764
+ # Update properties of this object
765
+ def update!(**args)
766
+ @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
767
+ @web = args[:web] if args.key?(:web)
768
+ end
769
+ end
770
+
771
+ # Chunk from context retrieved by the retrieval tools.
772
+ class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
773
+ include Google::Apis::Core::Hashable
774
+
775
+ # Title of the attribution.
776
+ # Corresponds to the JSON property `title`
777
+ # @return [String]
778
+ attr_accessor :title
779
+
780
+ # URI reference of the attribution.
781
+ # Corresponds to the JSON property `uri`
782
+ # @return [String]
783
+ attr_accessor :uri
784
+
785
+ def initialize(**args)
786
+ update!(**args)
787
+ end
788
+
789
+ # Update properties of this object
790
+ def update!(**args)
791
+ @title = args[:title] if args.key?(:title)
792
+ @uri = args[:uri] if args.key?(:uri)
793
+ end
794
+ end
795
+
796
+ # Chunk from the web.
797
+ class GoogleCloudAiplatformV1beta1GroundingChunkWeb
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # Title of the chunk.
801
+ # Corresponds to the JSON property `title`
802
+ # @return [String]
803
+ attr_accessor :title
804
+
805
+ # URI reference of the chunk.
806
+ # Corresponds to the JSON property `uri`
807
+ # @return [String]
808
+ attr_accessor :uri
809
+
810
+ def initialize(**args)
811
+ update!(**args)
812
+ end
813
+
814
+ # Update properties of this object
815
+ def update!(**args)
816
+ @title = args[:title] if args.key?(:title)
817
+ @uri = args[:uri] if args.key?(:uri)
818
+ end
819
+ end
820
+
728
821
  # Metadata returned to client when grounding is enabled.
729
822
  class GoogleCloudAiplatformV1beta1GroundingMetadata
730
823
  include Google::Apis::Core::Hashable
731
824
 
825
+ # List of supporting references retrieved from specified grounding source.
826
+ # Corresponds to the JSON property `groundingChunks`
827
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunk>]
828
+ attr_accessor :grounding_chunks
829
+
830
+ # Optional. List of grounding support.
831
+ # Corresponds to the JSON property `groundingSupports`
832
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport>]
833
+ attr_accessor :grounding_supports
834
+
732
835
  # Optional. Queries executed by the retrieval tools.
733
836
  # Corresponds to the JSON property `retrievalQueries`
734
837
  # @return [Array<String>]
@@ -750,12 +853,49 @@ module Google
750
853
 
751
854
  # Update properties of this object
752
855
  def update!(**args)
856
+ @grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
857
+ @grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
753
858
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
754
859
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
755
860
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
756
861
  end
757
862
  end
758
863
 
864
+ # Grounding support.
865
+ class GoogleCloudAiplatformV1beta1GroundingSupport
866
+ include Google::Apis::Core::Hashable
867
+
868
+ # Confidence score of the support references. Ranges from 0 to 1. 1 is the most
869
+ # confident. This list must have the same size as the grounding_chunk_indices.
870
+ # Corresponds to the JSON property `confidenceScores`
871
+ # @return [Array<Float>]
872
+ attr_accessor :confidence_scores
873
+
874
+ # A list of indices (into 'grounding_chunk') specifying the citations associated
875
+ # with the claim. For instance [1,3,4] means that grounding_chunk[1],
876
+ # grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to
877
+ # the claim.
878
+ # Corresponds to the JSON property `groundingChunkIndices`
879
+ # @return [Array<Fixnum>]
880
+ attr_accessor :grounding_chunk_indices
881
+
882
+ # Segment of the content.
883
+ # Corresponds to the JSON property `segment`
884
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment]
885
+ attr_accessor :segment
886
+
887
+ def initialize(**args)
888
+ update!(**args)
889
+ end
890
+
891
+ # Update properties of this object
892
+ def update!(**args)
893
+ @confidence_scores = args[:confidence_scores] if args.key?(:confidence_scores)
894
+ @grounding_chunk_indices = args[:grounding_chunk_indices] if args.key?(:grounding_chunk_indices)
895
+ @segment = args[:segment] if args.key?(:segment)
896
+ end
897
+ end
898
+
759
899
  # A datatype containing media that is part of a multi-part `Content` message. A `
760
900
  # Part` consists of data which has an associated datatype. A `Part` can only
761
901
  # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
@@ -818,9 +958,7 @@ module Google
818
958
  class GoogleCloudAiplatformV1beta1Retrieval
819
959
  include Google::Apis::Core::Hashable
820
960
 
821
- # Optional. Disable using the result from this tool in detecting grounding
822
- # attribution. This does not affect how the result is given to the model for
823
- # generation.
961
+ # Optional. Deprecated. This option is no longer supported.
824
962
  # Corresponds to the JSON property `disableAttribution`
825
963
  # @return [Boolean]
826
964
  attr_accessor :disable_attribution
@@ -1104,6 +1242,45 @@ module Google
1104
1242
  end
1105
1243
  end
1106
1244
 
1245
+ # Segment of the content.
1246
+ class GoogleCloudAiplatformV1beta1Segment
1247
+ include Google::Apis::Core::Hashable
1248
+
1249
+ # Output only. End index in the given Part, measured in bytes. Offset from the
1250
+ # start of the Part, exclusive, starting at zero.
1251
+ # Corresponds to the JSON property `endIndex`
1252
+ # @return [Fixnum]
1253
+ attr_accessor :end_index
1254
+
1255
+ # Output only. The index of a Part object within its parent Content object.
1256
+ # Corresponds to the JSON property `partIndex`
1257
+ # @return [Fixnum]
1258
+ attr_accessor :part_index
1259
+
1260
+ # Output only. Start index in the given Part, measured in bytes. Offset from the
1261
+ # start of the Part, inclusive, starting at zero.
1262
+ # Corresponds to the JSON property `startIndex`
1263
+ # @return [Fixnum]
1264
+ attr_accessor :start_index
1265
+
1266
+ # Output only. The text corresponding to the segment from the response.
1267
+ # Corresponds to the JSON property `text`
1268
+ # @return [String]
1269
+ attr_accessor :text
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @end_index = args[:end_index] if args.key?(:end_index)
1278
+ @part_index = args[:part_index] if args.key?(:part_index)
1279
+ @start_index = args[:start_index] if args.key?(:start_index)
1280
+ @text = args[:text] if args.key?(:text)
1281
+ end
1282
+ end
1283
+
1107
1284
  # Tool details that the model may use to generate response. A `Tool` is a piece
1108
1285
  # of code that enables the system to interact with external systems to perform
1109
1286
  # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -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.7.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240611"
25
+ REVISION = "20240722"
26
26
  end
27
27
  end
28
28
  end
@@ -136,12 +136,36 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class GoogleCloudAiplatformV1beta1GroundingChunk
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GoogleCloudAiplatformV1beta1GroundingChunkWeb
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
139
157
  class GoogleCloudAiplatformV1beta1GroundingMetadata
140
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
159
 
142
160
  include Google::Apis::Core::JsonObjectSupport
143
161
  end
144
162
 
163
+ class GoogleCloudAiplatformV1beta1GroundingSupport
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudAiplatformV1beta1Part
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
@@ -178,6 +202,12 @@ module Google
178
202
  include Google::Apis::Core::JsonObjectSupport
179
203
  end
180
204
 
205
+ class GoogleCloudAiplatformV1beta1Segment
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
181
211
  class GoogleCloudAiplatformV1beta1Tool
182
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
213
 
@@ -291,6 +321,10 @@ module Google
291
321
 
292
322
  collection :instances, as: 'instances'
293
323
  property :model, as: 'model'
324
+ property :system_instruction, as: 'systemInstruction', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content::Representation
325
+
326
+ collection :tools, as: 'tools', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Tool, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Tool::Representation
327
+
294
328
  end
295
329
  end
296
330
 
@@ -419,9 +453,39 @@ module Google
419
453
  end
420
454
  end
421
455
 
456
+ class GoogleCloudAiplatformV1beta1GroundingChunk
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :retrieved_context, as: 'retrievedContext', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext::Representation
460
+
461
+ property :web, as: 'web', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkWeb, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkWeb::Representation
462
+
463
+ end
464
+ end
465
+
466
+ class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
467
+ # @private
468
+ class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :title, as: 'title'
470
+ property :uri, as: 'uri'
471
+ end
472
+ end
473
+
474
+ class GoogleCloudAiplatformV1beta1GroundingChunkWeb
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :title, as: 'title'
478
+ property :uri, as: 'uri'
479
+ end
480
+ end
481
+
422
482
  class GoogleCloudAiplatformV1beta1GroundingMetadata
423
483
  # @private
424
484
  class Representation < Google::Apis::Core::JsonRepresentation
485
+ collection :grounding_chunks, as: 'groundingChunks', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunk, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunk::Representation
486
+
487
+ collection :grounding_supports, as: 'groundingSupports', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport::Representation
488
+
425
489
  collection :retrieval_queries, as: 'retrievalQueries'
426
490
  property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SearchEntryPoint, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SearchEntryPoint::Representation
427
491
 
@@ -429,6 +493,16 @@ module Google
429
493
  end
430
494
  end
431
495
 
496
+ class GoogleCloudAiplatformV1beta1GroundingSupport
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ collection :confidence_scores, as: 'confidenceScores'
500
+ collection :grounding_chunk_indices, as: 'groundingChunkIndices'
501
+ property :segment, as: 'segment', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment::Representation
502
+
503
+ end
504
+ end
505
+
432
506
  class GoogleCloudAiplatformV1beta1Part
433
507
  # @private
434
508
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -514,6 +588,16 @@ module Google
514
588
  end
515
589
  end
516
590
 
591
+ class GoogleCloudAiplatformV1beta1Segment
592
+ # @private
593
+ class Representation < Google::Apis::Core::JsonRepresentation
594
+ property :end_index, as: 'endIndex'
595
+ property :part_index, as: 'partIndex'
596
+ property :start_index, as: 'startIndex'
597
+ property :text, as: 'text'
598
+ end
599
+ end
600
+
517
601
  class GoogleCloudAiplatformV1beta1Tool
518
602
  # @private
519
603
  class Representation < Google::Apis::Core::JsonRepresentation
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.7.0
4
+ version: 0.9.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-06-16 00:00:00.000000000 Z
11
+ date: 2024-07-25 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-firebaseml_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.9.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: []