google-apis-firebaseml_v2beta 0.15.0 → 0.17.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: 12da08abf780035207d34dea46c032b67fa128a01da9d216adf75df77a75f880
4
+ data.tar.gz: e83da58a10a5220078de072dcdb4fe5e3d072dab3f09a42aec2c2d46a949fb4b
5
5
  SHA512:
6
- metadata.gz: 52d8a648353ab6342ffdf23a8463b0ec8ce46c3f6c21c698bfe14f19e87538f3db9ea1f9163f462f625f0a3cffa2d410d314f77f14ee7fb2316e792f739709bc
7
- data.tar.gz: 651f97646b7f5f08b628dfe45c1f31c7e4590d02d4f09b60a20ce12533755634e78264fee6bb3ebaa0fbbc2a0ee287c10a67a41e2a5d36e9421f428392e406d4
6
+ metadata.gz: 9f7ef56b35f9c4b51deda1068c93a7c397c20d1cad769273579ce5854be13a51022325ef4614bc210ef2b307d2701983de3ab1dba55ca1b0678d5e6417c315a1
7
+ data.tar.gz: 131f136bfae77528a1853ab971a0526e745dabb0cacea8ce5e73dc3c19beceff2c8836ab32d894de8f602019b3349ae4bb93df0448be615f0c1ff33abb63a34d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.17.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250416
6
+
7
+ ### v0.16.0 (2025-03-30)
8
+
9
+ * Regenerated from discovery document revision 20250326
10
+
3
11
  ### v0.15.0 (2025-03-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20250312
@@ -499,8 +499,8 @@ module Google
499
499
  class GoogleCloudAiplatformV1beta1FunctionCall
500
500
  include Google::Apis::Core::Hashable
501
501
 
502
- # Optional. Required. The function parameters and values in JSON object format.
503
- # See [FunctionDeclaration.parameters] for parameter details.
502
+ # Optional. The function parameters and values in JSON object format. See [
503
+ # FunctionDeclaration.parameters] for parameter details.
504
504
  # Corresponds to the JSON property `args`
505
505
  # @return [Hash<String,Object>]
506
506
  attr_accessor :args
@@ -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
@@ -1059,8 +1097,9 @@ module Google
1059
1097
  class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode
1060
1098
  include Google::Apis::Core::Hashable
1061
1099
 
1062
- # The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.
1063
- # 5-pro-001'.
1100
+ # The model name to use. Only the public LLM models are accepted. See [Supported
1101
+ # models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/
1102
+ # inference#supported-models).
1064
1103
  # Corresponds to the JSON property `modelName`
1065
1104
  # @return [String]
1066
1105
  attr_accessor :model_name
@@ -1075,6 +1114,26 @@ module Google
1075
1114
  end
1076
1115
  end
1077
1116
 
1117
+ # Config for thinking features.
1118
+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
1119
+ include Google::Apis::Core::Hashable
1120
+
1121
+ # Optional. Indicates the thinking budget in tokens. This is only applied when
1122
+ # enable_thinking is true.
1123
+ # Corresponds to the JSON property `thinkingBudget`
1124
+ # @return [Fixnum]
1125
+ attr_accessor :thinking_budget
1126
+
1127
+ def initialize(**args)
1128
+ update!(**args)
1129
+ end
1130
+
1131
+ # Update properties of this object
1132
+ def update!(**args)
1133
+ @thinking_budget = args[:thinking_budget] if args.key?(:thinking_budget)
1134
+ end
1135
+ end
1136
+
1078
1137
  # Tool to retrieve public web data for grounding, powered by Google.
1079
1138
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
1080
1139
  include Google::Apis::Core::Hashable
@@ -1123,6 +1182,12 @@ module Google
1123
1182
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
1124
1183
  include Google::Apis::Core::Hashable
1125
1184
 
1185
+ # A RagChunk includes the content of a chunk of a RagFile, and associated
1186
+ # metadata.
1187
+ # Corresponds to the JSON property `ragChunk`
1188
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk]
1189
+ attr_accessor :rag_chunk
1190
+
1126
1191
  # Text of the attribution.
1127
1192
  # Corresponds to the JSON property `text`
1128
1193
  # @return [String]
@@ -1144,6 +1209,7 @@ module Google
1144
1209
 
1145
1210
  # Update properties of this object
1146
1211
  def update!(**args)
1212
+ @rag_chunk = args[:rag_chunk] if args.key?(:rag_chunk)
1147
1213
  @text = args[:text] if args.key?(:text)
1148
1214
  @title = args[:title] if args.key?(:title)
1149
1215
  @uri = args[:uri] if args.key?(:uri)
@@ -1465,6 +1531,57 @@ module Google
1465
1531
  end
1466
1532
  end
1467
1533
 
1534
+ # A RagChunk includes the content of a chunk of a RagFile, and associated
1535
+ # metadata.
1536
+ class GoogleCloudAiplatformV1beta1RagChunk
1537
+ include Google::Apis::Core::Hashable
1538
+
1539
+ # Represents where the chunk starts and ends in the document.
1540
+ # Corresponds to the JSON property `pageSpan`
1541
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan]
1542
+ attr_accessor :page_span
1543
+
1544
+ # The content of the chunk.
1545
+ # Corresponds to the JSON property `text`
1546
+ # @return [String]
1547
+ attr_accessor :text
1548
+
1549
+ def initialize(**args)
1550
+ update!(**args)
1551
+ end
1552
+
1553
+ # Update properties of this object
1554
+ def update!(**args)
1555
+ @page_span = args[:page_span] if args.key?(:page_span)
1556
+ @text = args[:text] if args.key?(:text)
1557
+ end
1558
+ end
1559
+
1560
+ # Represents where the chunk starts and ends in the document.
1561
+ class GoogleCloudAiplatformV1beta1RagChunkPageSpan
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # Page where chunk starts in the document. Inclusive. 1-indexed.
1565
+ # Corresponds to the JSON property `firstPage`
1566
+ # @return [Fixnum]
1567
+ attr_accessor :first_page
1568
+
1569
+ # Page where chunk ends in the document. Inclusive. 1-indexed.
1570
+ # Corresponds to the JSON property `lastPage`
1571
+ # @return [Fixnum]
1572
+ attr_accessor :last_page
1573
+
1574
+ def initialize(**args)
1575
+ update!(**args)
1576
+ end
1577
+
1578
+ # Update properties of this object
1579
+ def update!(**args)
1580
+ @first_page = args[:first_page] if args.key?(:first_page)
1581
+ @last_page = args[:last_page] if args.key?(:last_page)
1582
+ end
1583
+ end
1584
+
1468
1585
  # Specifies the context retrieval config.
1469
1586
  class GoogleCloudAiplatformV1beta1RagRetrievalConfig
1470
1587
  include Google::Apis::Core::Hashable
@@ -1586,7 +1703,9 @@ module Google
1586
1703
  class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker
1587
1704
  include Google::Apis::Core::Hashable
1588
1705
 
1589
- # Optional. The model name used for ranking. Format: `gemini-1.5-pro`
1706
+ # Optional. The model name used for ranking. See [Supported models](https://
1707
+ # cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#
1708
+ # supported-models).
1590
1709
  # Corresponds to the JSON property `modelName`
1591
1710
  # @return [String]
1592
1711
  attr_accessor :model_name
@@ -2019,6 +2138,11 @@ module Google
2019
2138
  class GoogleCloudAiplatformV1beta1SpeechConfig
2020
2139
  include Google::Apis::Core::Hashable
2021
2140
 
2141
+ # Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.
2142
+ # Corresponds to the JSON property `languageCode`
2143
+ # @return [String]
2144
+ attr_accessor :language_code
2145
+
2022
2146
  # The configuration for the voice to use.
2023
2147
  # Corresponds to the JSON property `voiceConfig`
2024
2148
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VoiceConfig]
@@ -2030,6 +2154,7 @@ module Google
2030
2154
 
2031
2155
  # Update properties of this object
2032
2156
  def update!(**args)
2157
+ @language_code = args[:language_code] if args.key?(:language_code)
2033
2158
  @voice_config = args[:voice_config] if args.key?(:voice_config)
2034
2159
  end
2035
2160
  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.15.0"
19
+ GEM_VERSION = "0.17.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 = "20250416"
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,13 @@ module Google
687
723
  end
688
724
  end
689
725
 
726
+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :thinking_budget, as: 'thinkingBudget'
730
+ end
731
+ end
732
+
690
733
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
691
734
  # @private
692
735
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -708,6 +751,8 @@ module Google
708
751
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
709
752
  # @private
710
753
  class Representation < Google::Apis::Core::JsonRepresentation
754
+ property :rag_chunk, as: 'ragChunk', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunk::Representation
755
+
711
756
  property :text, as: 'text'
712
757
  property :title, as: 'title'
713
758
  property :uri, as: 'uri'
@@ -813,6 +858,23 @@ module Google
813
858
  end
814
859
  end
815
860
 
861
+ class GoogleCloudAiplatformV1beta1RagChunk
862
+ # @private
863
+ class Representation < Google::Apis::Core::JsonRepresentation
864
+ property :page_span, as: 'pageSpan', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan::Representation
865
+
866
+ property :text, as: 'text'
867
+ end
868
+ end
869
+
870
+ class GoogleCloudAiplatformV1beta1RagChunkPageSpan
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :first_page, as: 'firstPage'
874
+ property :last_page, as: 'lastPage'
875
+ end
876
+ end
877
+
816
878
  class GoogleCloudAiplatformV1beta1RagRetrievalConfig
817
879
  # @private
818
880
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -966,6 +1028,7 @@ module Google
966
1028
  class GoogleCloudAiplatformV1beta1SpeechConfig
967
1029
  # @private
968
1030
  class Representation < Google::Apis::Core::JsonRepresentation
1031
+ property :language_code, as: 'languageCode'
969
1032
  property :voice_config, as: 'voiceConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VoiceConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VoiceConfig::Representation
970
1033
 
971
1034
  end
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.17.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-04-20 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.17.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: