google-apis-firebaseml_v2beta 0.15.0 → 0.16.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: fb4fbbe3485b246991cb6412ab0607911f0d764563d5749f020f4e3967e0b967
4
- data.tar.gz: fc801f6675f7cce981dada655d0d5e13d18058952dfde6938497dd4a1d466921
3
+ metadata.gz: c5dba14d1e472516c55e4e5d8a927dfc2c7649dcf44699ea1d498f42732436f6
4
+ data.tar.gz: 8417b475ff5d15ce06a9db6966d5400137c1c1c482364bd39d2f059764bbba99
5
5
  SHA512:
6
- metadata.gz: 52d8a648353ab6342ffdf23a8463b0ec8ce46c3f6c21c698bfe14f19e87538f3db9ea1f9163f462f625f0a3cffa2d410d314f77f14ee7fb2316e792f739709bc
7
- data.tar.gz: 651f97646b7f5f08b628dfe45c1f31c7e4590d02d4f09b60a20ce12533755634e78264fee6bb3ebaa0fbbc2a0ee287c10a67a41e2a5d36e9421f428392e406d4
6
+ metadata.gz: f5c9ae36e2a5ec8086a8c765c6863bc6c7a70823830aeb7b230e691c169a36fa8b676029f82109ff4c394a1401dc52dfedbd0782bc7a55c56587efcb8c2c1e64
7
+ data.tar.gz: c0692dbb6d5345b69cf5046b35f4b1903752962095705a434e9b5b55c8baa9714587abefd56fc740f52df335e80830cfb46b80aa02261ce984fed1f7fc3d453d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.16.0 (2025-03-30)
4
+
5
+ * Regenerated from discovery document revision 20250326
6
+
3
7
  ### v0.15.0 (2025-03-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20250312
@@ -860,6 +860,12 @@ module Google
860
860
  # @return [Fixnum]
861
861
  attr_accessor :total_token_count
862
862
 
863
+ # Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
864
+ # or Provisioned Throughput quota.
865
+ # Corresponds to the JSON property `trafficType`
866
+ # @return [String]
867
+ attr_accessor :traffic_type
868
+
863
869
  def initialize(**args)
864
870
  update!(**args)
865
871
  end
@@ -876,6 +882,7 @@ module Google
876
882
  @tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
877
883
  @tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
878
884
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
885
+ @traffic_type = args[:traffic_type] if args.key?(:traffic_type)
879
886
  end
880
887
  end
881
888
 
@@ -915,6 +922,11 @@ module Google
915
922
  # @return [String]
916
923
  attr_accessor :media_resolution
917
924
 
925
+ # Config for model selection.
926
+ # Corresponds to the JSON property `modelConfig`
927
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig]
928
+ attr_accessor :model_config
929
+
918
930
  # Optional. Positive penalties.
919
931
  # Corresponds to the JSON property `presencePenalty`
920
932
  # @return [Float]
@@ -972,6 +984,11 @@ module Google
972
984
  # @return [Float]
973
985
  attr_accessor :temperature
974
986
 
987
+ # Config for thinking features.
988
+ # Corresponds to the JSON property `thinkingConfig`
989
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
990
+ attr_accessor :thinking_config
991
+
975
992
  # Optional. If specified, top-k sampling will be used.
976
993
  # Corresponds to the JSON property `topK`
977
994
  # @return [Float]
@@ -994,6 +1011,7 @@ module Google
994
1011
  @logprobs = args[:logprobs] if args.key?(:logprobs)
995
1012
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
996
1013
  @media_resolution = args[:media_resolution] if args.key?(:media_resolution)
1014
+ @model_config = args[:model_config] if args.key?(:model_config)
997
1015
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
998
1016
  @response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
999
1017
  @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
@@ -1004,11 +1022,31 @@ module Google
1004
1022
  @speech_config = args[:speech_config] if args.key?(:speech_config)
1005
1023
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
1006
1024
  @temperature = args[:temperature] if args.key?(:temperature)
1025
+ @thinking_config = args[:thinking_config] if args.key?(:thinking_config)
1007
1026
  @top_k = args[:top_k] if args.key?(:top_k)
1008
1027
  @top_p = args[:top_p] if args.key?(:top_p)
1009
1028
  end
1010
1029
  end
1011
1030
 
1031
+ # Config for model selection.
1032
+ class GoogleCloudAiplatformV1beta1GenerationConfigModelConfig
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # Required. Feature selection preference.
1036
+ # Corresponds to the JSON property `featureSelectionPreference`
1037
+ # @return [String]
1038
+ attr_accessor :feature_selection_preference
1039
+
1040
+ def initialize(**args)
1041
+ update!(**args)
1042
+ end
1043
+
1044
+ # Update properties of this object
1045
+ def update!(**args)
1046
+ @feature_selection_preference = args[:feature_selection_preference] if args.key?(:feature_selection_preference)
1047
+ end
1048
+ end
1049
+
1012
1050
  # The configuration for routing the request to a specific model.
1013
1051
  class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig
1014
1052
  include Google::Apis::Core::Hashable
@@ -1075,6 +1113,34 @@ module Google
1075
1113
  end
1076
1114
  end
1077
1115
 
1116
+ # Config for thinking features.
1117
+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
1118
+ include Google::Apis::Core::Hashable
1119
+
1120
+ # Optional. Indicates whether to enable thinking mode. If true, the model will
1121
+ # enable thinking mode.
1122
+ # Corresponds to the JSON property `enableThinking`
1123
+ # @return [Boolean]
1124
+ attr_accessor :enable_thinking
1125
+ alias_method :enable_thinking?, :enable_thinking
1126
+
1127
+ # Optional. Indicates the thinking budget in tokens. This is only applied when
1128
+ # enable_thinking is true.
1129
+ # Corresponds to the JSON property `thinkingBudget`
1130
+ # @return [Fixnum]
1131
+ attr_accessor :thinking_budget
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @enable_thinking = args[:enable_thinking] if args.key?(:enable_thinking)
1140
+ @thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
1141
+ end
1142
+ end
1143
+
1078
1144
  # Tool to retrieve public web data for grounding, powered by Google.
1079
1145
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
1080
1146
  include Google::Apis::Core::Hashable
@@ -1123,6 +1189,12 @@ module Google
1123
1189
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
1124
1190
  include Google::Apis::Core::Hashable
1125
1191
 
1192
+ # A RagChunk includes the content of a chunk of a RagFile, and associated
1193
+ # metadata.
1194
+ # Corresponds to the JSON property `ragChunk`
1195
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk]
1196
+ attr_accessor :rag_chunk
1197
+
1126
1198
  # Text of the attribution.
1127
1199
  # Corresponds to the JSON property `text`
1128
1200
  # @return [String]
@@ -1144,6 +1216,7 @@ module Google
1144
1216
 
1145
1217
  # Update properties of this object
1146
1218
  def update!(**args)
1219
+ @rag_chunk = args[:rag_chunk] if args.key?(:rag_chunk)
1147
1220
  @text = args[:text] if args.key?(:text)
1148
1221
  @title = args[:title] if args.key?(:title)
1149
1222
  @uri = args[:uri] if args.key?(:uri)
@@ -1465,6 +1538,57 @@ module Google
1465
1538
  end
1466
1539
  end
1467
1540
 
1541
+ # A RagChunk includes the content of a chunk of a RagFile, and associated
1542
+ # metadata.
1543
+ class GoogleCloudAiplatformV1beta1RagChunk
1544
+ include Google::Apis::Core::Hashable
1545
+
1546
+ # Represents where the chunk starts and ends in the document.
1547
+ # Corresponds to the JSON property `pageSpan`
1548
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan]
1549
+ attr_accessor :page_span
1550
+
1551
+ # The content of the chunk.
1552
+ # Corresponds to the JSON property `text`
1553
+ # @return [String]
1554
+ attr_accessor :text
1555
+
1556
+ def initialize(**args)
1557
+ update!(**args)
1558
+ end
1559
+
1560
+ # Update properties of this object
1561
+ def update!(**args)
1562
+ @page_span = args[:page_span] if args.key?(:page_span)
1563
+ @text = args[:text] if args.key?(:text)
1564
+ end
1565
+ end
1566
+
1567
+ # Represents where the chunk starts and ends in the document.
1568
+ class GoogleCloudAiplatformV1beta1RagChunkPageSpan
1569
+ include Google::Apis::Core::Hashable
1570
+
1571
+ # Page where chunk starts in the document. Inclusive. 1-indexed.
1572
+ # Corresponds to the JSON property `firstPage`
1573
+ # @return [Fixnum]
1574
+ attr_accessor :first_page
1575
+
1576
+ # Page where chunk ends in the document. Inclusive. 1-indexed.
1577
+ # Corresponds to the JSON property `lastPage`
1578
+ # @return [Fixnum]
1579
+ attr_accessor :last_page
1580
+
1581
+ def initialize(**args)
1582
+ update!(**args)
1583
+ end
1584
+
1585
+ # Update properties of this object
1586
+ def update!(**args)
1587
+ @first_page = args[:first_page] if args.key?(:first_page)
1588
+ @last_page = args[:last_page] if args.key?(:last_page)
1589
+ end
1590
+ end
1591
+
1468
1592
  # Specifies the context retrieval config.
1469
1593
  class GoogleCloudAiplatformV1beta1RagRetrievalConfig
1470
1594
  include Google::Apis::Core::Hashable
@@ -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.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250312"
25
+ REVISION = "20250326"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class GoogleCloudAiplatformV1beta1GenerationConfigModelConfig
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -172,6 +178,12 @@ module Google
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
181
+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
175
187
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
176
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
189
 
@@ -244,6 +256,18 @@ module Google
244
256
  include Google::Apis::Core::JsonObjectSupport
245
257
  end
246
258
 
259
+ class GoogleCloudAiplatformV1beta1RagChunk
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class GoogleCloudAiplatformV1beta1RagChunkPageSpan
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
247
271
  class GoogleCloudAiplatformV1beta1RagRetrievalConfig
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
@@ -633,6 +657,7 @@ module Google
633
657
  collection :tool_use_prompt_tokens_details, as: 'toolUsePromptTokensDetails', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount::Representation
634
658
 
635
659
  property :total_token_count, as: 'totalTokenCount'
660
+ property :traffic_type, as: 'trafficType'
636
661
  end
637
662
  end
638
663
 
@@ -645,6 +670,8 @@ module Google
645
670
  property :logprobs, as: 'logprobs'
646
671
  property :max_output_tokens, as: 'maxOutputTokens'
647
672
  property :media_resolution, as: 'mediaResolution'
673
+ property :model_config, as: 'modelConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigModelConfig::Representation
674
+
648
675
  property :presence_penalty, as: 'presencePenalty'
649
676
  property :response_logprobs, as: 'responseLogprobs'
650
677
  property :response_mime_type, as: 'responseMimeType'
@@ -658,11 +685,20 @@ module Google
658
685
 
659
686
  collection :stop_sequences, as: 'stopSequences'
660
687
  property :temperature, as: 'temperature'
688
+ property :thinking_config, as: 'thinkingConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig::Representation
689
+
661
690
  property :top_k, as: 'topK'
662
691
  property :top_p, as: 'topP'
663
692
  end
664
693
  end
665
694
 
695
+ class GoogleCloudAiplatformV1beta1GenerationConfigModelConfig
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :feature_selection_preference, as: 'featureSelectionPreference'
699
+ end
700
+ end
701
+
666
702
  class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig
667
703
  # @private
668
704
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -687,6 +723,14 @@ module Google
687
723
  end
688
724
  end
689
725
 
726
+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :enable_thinking, as: 'enableThinking'
730
+ property :thinking_budget, as: 'thinkingBudget'
731
+ end
732
+ end
733
+
690
734
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
691
735
  # @private
692
736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -708,6 +752,8 @@ module Google
708
752
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
709
753
  # @private
710
754
  class Representation < Google::Apis::Core::JsonRepresentation
755
+ property :rag_chunk, as: 'ragChunk', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk::Representation
756
+
711
757
  property :text, as: 'text'
712
758
  property :title, as: 'title'
713
759
  property :uri, as: 'uri'
@@ -813,6 +859,23 @@ module Google
813
859
  end
814
860
  end
815
861
 
862
+ class GoogleCloudAiplatformV1beta1RagChunk
863
+ # @private
864
+ class Representation < Google::Apis::Core::JsonRepresentation
865
+ property :page_span, as: 'pageSpan', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan::Representation
866
+
867
+ property :text, as: 'text'
868
+ end
869
+ end
870
+
871
+ class GoogleCloudAiplatformV1beta1RagChunkPageSpan
872
+ # @private
873
+ class Representation < Google::Apis::Core::JsonRepresentation
874
+ property :first_page, as: 'firstPage'
875
+ property :last_page, as: 'lastPage'
876
+ end
877
+ end
878
+
816
879
  class GoogleCloudAiplatformV1beta1RagRetrievalConfig
817
880
  # @private
818
881
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseml_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.15.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.16.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
62
62
  rdoc_options: []
63
63
  require_paths: