google-apis-firebaseml_v2beta 0.20.0 → 0.22.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: 72d9930b3423b2dff3359efe503aa681c8f25aa7d7a516a39f62a7bafb5c20ae
4
- data.tar.gz: 5ea7e149aa0c55e1b0b23f8efcb3f1350af768eba49a450f83b826e2793d6c19
3
+ metadata.gz: e9f8775c0c4df2ea30a49a121f90df8baf986ec69e1b712527aa1469866a2737
4
+ data.tar.gz: 85e6ae4d06277a60602d2eac530e60c2b6daaa07fc7c3a1fbe269db65d219f63
5
5
  SHA512:
6
- metadata.gz: 82175f9582356bef0ca7548a0ae5c60008e22419b69149ed1e2cdfba6147b0c58a66139fed07c8496427df3272beb7195d6049984461bb7afa0c31e43c8fffcc
7
- data.tar.gz: b30d98c2d85199b80f8262a992f2a7225b2b34125312acf38a79a5f7889a9a30613484e0659d0712cce6da8255401f50588f306c2b27edec96f1f61ae4f482d3
6
+ metadata.gz: '083c1276d38586be037e147be84857731cc1e297160fe83b3ca52df841f4caa2d0e143053ffe5cd6a87ae24f5ba4439e8d2822d6eb46b4537fb007713ddfce91'
7
+ data.tar.gz: 3e09abba49e49f458c74dc039c0a4dadf4888da33fbc1a8948d3d23be53d1709c9d70dfe1de66bdce057204495caa1b94b628fb62e26be62e07b322167cab912
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.22.0 (2025-06-08)
4
+
5
+ * Regenerated from discovery document revision 20250604
6
+
7
+ ### v0.21.0 (2025-06-01)
8
+
9
+ * Regenerated from discovery document revision 20250525
10
+
3
11
  ### v0.20.0 (2025-05-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20250521
@@ -403,6 +403,11 @@ module Google
403
403
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetyRating>]
404
404
  attr_accessor :safety_ratings
405
405
 
406
+ # Metadata related to url context retrieval tool.
407
+ # Corresponds to the JSON property `urlContextMetadata`
408
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContextMetadata]
409
+ attr_accessor :url_context_metadata
410
+
406
411
  def initialize(**args)
407
412
  update!(**args)
408
413
  end
@@ -418,6 +423,7 @@ module Google
418
423
  @index = args[:index] if args.key?(:index)
419
424
  @logprobs_result = args[:logprobs_result] if args.key?(:logprobs_result)
420
425
  @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
426
+ @url_context_metadata = args[:url_context_metadata] if args.key?(:url_context_metadata)
421
427
  end
422
428
  end
423
429
 
@@ -1705,7 +1711,9 @@ module Google
1705
1711
  include Google::Apis::Core::Hashable
1706
1712
 
1707
1713
  # Confidence score of the support references. Ranges from 0 to 1. 1 is the most
1708
- # confident. This list must have the same size as the grounding_chunk_indices.
1714
+ # confident. For Gemini 2.0 and before, this list must have the same size as the
1715
+ # grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and
1716
+ # should be ignored.
1709
1717
  # Corresponds to the JSON property `confidenceScores`
1710
1718
  # @return [Array<Float>]
1711
1719
  attr_accessor :confidence_scores
@@ -1889,12 +1897,19 @@ module Google
1889
1897
  # @return [String]
1890
1898
  attr_accessor :text
1891
1899
 
1892
- # Output only. Indicates if the part is thought from the model.
1900
+ # Optional. Indicates if the part is thought from the model.
1893
1901
  # Corresponds to the JSON property `thought`
1894
1902
  # @return [Boolean]
1895
1903
  attr_accessor :thought
1896
1904
  alias_method :thought?, :thought
1897
1905
 
1906
+ # Optional. An opaque signature for the thought so it can be reused in
1907
+ # subsequent requests.
1908
+ # Corresponds to the JSON property `thoughtSignature`
1909
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1910
+ # @return [String]
1911
+ attr_accessor :thought_signature
1912
+
1898
1913
  # Metadata describes the input video content.
1899
1914
  # Corresponds to the JSON property `videoMetadata`
1900
1915
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoMetadata]
@@ -1914,6 +1929,7 @@ module Google
1914
1929
  @inline_data = args[:inline_data] if args.key?(:inline_data)
1915
1930
  @text = args[:text] if args.key?(:text)
1916
1931
  @thought = args[:thought] if args.key?(:thought)
1932
+ @thought_signature = args[:thought_signature] if args.key?(:thought_signature)
1917
1933
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
1918
1934
  end
1919
1935
  end
@@ -2613,6 +2629,11 @@ module Google
2613
2629
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution]
2614
2630
  attr_accessor :code_execution
2615
2631
 
2632
+ # Tool to support computer use.
2633
+ # Corresponds to the JSON property `computerUse`
2634
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolComputerUse]
2635
+ attr_accessor :computer_use
2636
+
2616
2637
  # Tool to search public web data, powered by Vertex AI Search and Sec4
2617
2638
  # compliance.
2618
2639
  # Corresponds to the JSON property `enterpriseWebSearch`
@@ -2645,6 +2666,11 @@ module Google
2645
2666
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Retrieval]
2646
2667
  attr_accessor :retrieval
2647
2668
 
2669
+ # Tool to support URL context.
2670
+ # Corresponds to the JSON property `urlContext`
2671
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContext]
2672
+ attr_accessor :url_context
2673
+
2648
2674
  def initialize(**args)
2649
2675
  update!(**args)
2650
2676
  end
@@ -2652,11 +2678,13 @@ module Google
2652
2678
  # Update properties of this object
2653
2679
  def update!(**args)
2654
2680
  @code_execution = args[:code_execution] if args.key?(:code_execution)
2681
+ @computer_use = args[:computer_use] if args.key?(:computer_use)
2655
2682
  @enterprise_web_search = args[:enterprise_web_search] if args.key?(:enterprise_web_search)
2656
2683
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
2657
2684
  @google_search = args[:google_search] if args.key?(:google_search)
2658
2685
  @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
2659
2686
  @retrieval = args[:retrieval] if args.key?(:retrieval)
2687
+ @url_context = args[:url_context] if args.key?(:url_context)
2660
2688
  end
2661
2689
  end
2662
2690
 
@@ -2675,6 +2703,25 @@ module Google
2675
2703
  end
2676
2704
  end
2677
2705
 
2706
+ # Tool to support computer use.
2707
+ class GoogleCloudAiplatformV1beta1ToolComputerUse
2708
+ include Google::Apis::Core::Hashable
2709
+
2710
+ # Required. The environment being operated.
2711
+ # Corresponds to the JSON property `environment`
2712
+ # @return [String]
2713
+ attr_accessor :environment
2714
+
2715
+ def initialize(**args)
2716
+ update!(**args)
2717
+ end
2718
+
2719
+ # Update properties of this object
2720
+ def update!(**args)
2721
+ @environment = args[:environment] if args.key?(:environment)
2722
+ end
2723
+ end
2724
+
2678
2725
  # Tool config. This config is shared for all tools provided in the request.
2679
2726
  class GoogleCloudAiplatformV1beta1ToolConfig
2680
2727
  include Google::Apis::Core::Hashable
@@ -2714,6 +2761,63 @@ module Google
2714
2761
  end
2715
2762
  end
2716
2763
 
2764
+ # Tool to support URL context.
2765
+ class GoogleCloudAiplatformV1beta1UrlContext
2766
+ include Google::Apis::Core::Hashable
2767
+
2768
+ def initialize(**args)
2769
+ update!(**args)
2770
+ end
2771
+
2772
+ # Update properties of this object
2773
+ def update!(**args)
2774
+ end
2775
+ end
2776
+
2777
+ # Metadata related to url context retrieval tool.
2778
+ class GoogleCloudAiplatformV1beta1UrlContextMetadata
2779
+ include Google::Apis::Core::Hashable
2780
+
2781
+ # Output only. List of url context.
2782
+ # Corresponds to the JSON property `urlMetadata`
2783
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlMetadata>]
2784
+ attr_accessor :url_metadata
2785
+
2786
+ def initialize(**args)
2787
+ update!(**args)
2788
+ end
2789
+
2790
+ # Update properties of this object
2791
+ def update!(**args)
2792
+ @url_metadata = args[:url_metadata] if args.key?(:url_metadata)
2793
+ end
2794
+ end
2795
+
2796
+ # Context of the a single url retrieval.
2797
+ class GoogleCloudAiplatformV1beta1UrlMetadata
2798
+ include Google::Apis::Core::Hashable
2799
+
2800
+ # Retrieved url by the tool.
2801
+ # Corresponds to the JSON property `retrievedUrl`
2802
+ # @return [String]
2803
+ attr_accessor :retrieved_url
2804
+
2805
+ # Status of the url retrieval.
2806
+ # Corresponds to the JSON property `urlRetrievalStatus`
2807
+ # @return [String]
2808
+ attr_accessor :url_retrieval_status
2809
+
2810
+ def initialize(**args)
2811
+ update!(**args)
2812
+ end
2813
+
2814
+ # Update properties of this object
2815
+ def update!(**args)
2816
+ @retrieved_url = args[:retrieved_url] if args.key?(:retrieved_url)
2817
+ @url_retrieval_status = args[:url_retrieval_status] if args.key?(:url_retrieval_status)
2818
+ end
2819
+ end
2820
+
2717
2821
  # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
2718
2822
  # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
2719
2823
  # builder
@@ -2823,6 +2927,16 @@ module Google
2823
2927
  # @return [Fixnum]
2824
2928
  attr_accessor :similarity_top_k
2825
2929
 
2930
+ # Optional. Currently only supported for Gemini Multimodal Live API. In Gemini
2931
+ # Multimodal Live API, if `store_context` bool is specified, Gemini will
2932
+ # leverage it to automatically memorize the interactions between the client and
2933
+ # Gemini, and retrieve context when needed to augment the response generation
2934
+ # for users' ongoing and future interactions.
2935
+ # Corresponds to the JSON property `storeContext`
2936
+ # @return [Boolean]
2937
+ attr_accessor :store_context
2938
+ alias_method :store_context?, :store_context
2939
+
2826
2940
  # Optional. Only return results with vector distance smaller than the threshold.
2827
2941
  # Corresponds to the JSON property `vectorDistanceThreshold`
2828
2942
  # @return [Float]
@@ -2838,6 +2952,7 @@ module Google
2838
2952
  @rag_resources = args[:rag_resources] if args.key?(:rag_resources)
2839
2953
  @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config)
2840
2954
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
2955
+ @store_context = args[:store_context] if args.key?(:store_context)
2841
2956
  @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
2842
2957
  end
2843
2958
  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.20.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250521"
25
+ REVISION = "20250604"
26
26
  end
27
27
  end
28
28
  end
@@ -436,6 +436,12 @@ module Google
436
436
  include Google::Apis::Core::JsonObjectSupport
437
437
  end
438
438
 
439
+ class GoogleCloudAiplatformV1beta1ToolComputerUse
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
439
445
  class GoogleCloudAiplatformV1beta1ToolConfig
440
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
447
 
@@ -448,6 +454,24 @@ module Google
448
454
  include Google::Apis::Core::JsonObjectSupport
449
455
  end
450
456
 
457
+ class GoogleCloudAiplatformV1beta1UrlContext
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
463
+ class GoogleCloudAiplatformV1beta1UrlContextMetadata
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
469
+ class GoogleCloudAiplatformV1beta1UrlMetadata
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
451
475
  class GoogleCloudAiplatformV1beta1VertexAiSearch
452
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
477
 
@@ -604,6 +628,8 @@ module Google
604
628
 
605
629
  collection :safety_ratings, as: 'safetyRatings', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetyRating, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetyRating::Representation
606
630
 
631
+ property :url_context_metadata, as: 'urlContextMetadata', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContextMetadata, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContextMetadata::Representation
632
+
607
633
  end
608
634
  end
609
635
 
@@ -1027,6 +1053,7 @@ module Google
1027
1053
 
1028
1054
  property :text, as: 'text'
1029
1055
  property :thought, as: 'thought'
1056
+ property :thought_signature, :base64 => true, as: 'thoughtSignature'
1030
1057
  property :video_metadata, as: 'videoMetadata', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoMetadata, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoMetadata::Representation
1031
1058
 
1032
1059
  end
@@ -1226,6 +1253,8 @@ module Google
1226
1253
  class Representation < Google::Apis::Core::JsonRepresentation
1227
1254
  property :code_execution, as: 'codeExecution', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution::Representation
1228
1255
 
1256
+ property :computer_use, as: 'computerUse', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolComputerUse, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolComputerUse::Representation
1257
+
1229
1258
  property :enterprise_web_search, as: 'enterpriseWebSearch', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch::Representation
1230
1259
 
1231
1260
  collection :function_declarations, as: 'functionDeclarations', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration::Representation
@@ -1236,6 +1265,8 @@ module Google
1236
1265
 
1237
1266
  property :retrieval, as: 'retrieval', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Retrieval, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Retrieval::Representation
1238
1267
 
1268
+ property :url_context, as: 'urlContext', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContext, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlContext::Representation
1269
+
1239
1270
  end
1240
1271
  end
1241
1272
 
@@ -1245,6 +1276,13 @@ module Google
1245
1276
  end
1246
1277
  end
1247
1278
 
1279
+ class GoogleCloudAiplatformV1beta1ToolComputerUse
1280
+ # @private
1281
+ class Representation < Google::Apis::Core::JsonRepresentation
1282
+ property :environment, as: 'environment'
1283
+ end
1284
+ end
1285
+
1248
1286
  class GoogleCloudAiplatformV1beta1ToolConfig
1249
1287
  # @private
1250
1288
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1261,6 +1299,28 @@ module Google
1261
1299
  end
1262
1300
  end
1263
1301
 
1302
+ class GoogleCloudAiplatformV1beta1UrlContext
1303
+ # @private
1304
+ class Representation < Google::Apis::Core::JsonRepresentation
1305
+ end
1306
+ end
1307
+
1308
+ class GoogleCloudAiplatformV1beta1UrlContextMetadata
1309
+ # @private
1310
+ class Representation < Google::Apis::Core::JsonRepresentation
1311
+ collection :url_metadata, as: 'urlMetadata', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlMetadata, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1UrlMetadata::Representation
1312
+
1313
+ end
1314
+ end
1315
+
1316
+ class GoogleCloudAiplatformV1beta1UrlMetadata
1317
+ # @private
1318
+ class Representation < Google::Apis::Core::JsonRepresentation
1319
+ property :retrieved_url, as: 'retrievedUrl'
1320
+ property :url_retrieval_status, as: 'urlRetrievalStatus'
1321
+ end
1322
+ end
1323
+
1264
1324
  class GoogleCloudAiplatformV1beta1VertexAiSearch
1265
1325
  # @private
1266
1326
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1290,6 +1350,7 @@ module Google
1290
1350
  property :rag_retrieval_config, as: 'ragRetrievalConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfig::Representation
1291
1351
 
1292
1352
  property :similarity_top_k, as: 'similarityTopK'
1353
+ property :store_context, as: 'storeContext'
1293
1354
  property :vector_distance_threshold, as: 'vectorDistanceThreshold'
1294
1355
  end
1295
1356
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseml_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -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.20.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.22.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: