google-apis-firebaseml_v2beta 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,6 +93,11 @@ module Google
93
93
  class GoogleCloudAiplatformV1beta1Candidate
94
94
  include Google::Apis::Core::Hashable
95
95
 
96
+ # Output only. Average log probability score of the candidate.
97
+ # Corresponds to the JSON property `avgLogprobs`
98
+ # @return [Float]
99
+ attr_accessor :avg_logprobs
100
+
96
101
  # A collection of source attributions for a piece of content.
97
102
  # Corresponds to the JSON property `citationMetadata`
98
103
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CitationMetadata]
@@ -128,6 +133,11 @@ module Google
128
133
  # @return [Fixnum]
129
134
  attr_accessor :index
130
135
 
136
+ # Logprobs Result
137
+ # Corresponds to the JSON property `logprobsResult`
138
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResult]
139
+ attr_accessor :logprobs_result
140
+
131
141
  # Output only. List of ratings for the safety of a response candidate. There is
132
142
  # at most one rating per category.
133
143
  # Corresponds to the JSON property `safetyRatings`
@@ -140,12 +150,14 @@ module Google
140
150
 
141
151
  # Update properties of this object
142
152
  def update!(**args)
153
+ @avg_logprobs = args[:avg_logprobs] if args.key?(:avg_logprobs)
143
154
  @citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
144
155
  @content = args[:content] if args.key?(:content)
145
156
  @finish_message = args[:finish_message] if args.key?(:finish_message)
146
157
  @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
147
158
  @grounding_metadata = args[:grounding_metadata] if args.key?(:grounding_metadata)
148
159
  @index = args[:index] if args.key?(:index)
160
+ @logprobs_result = args[:logprobs_result] if args.key?(:logprobs_result)
149
161
  @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
150
162
  end
151
163
  end
@@ -225,6 +237,33 @@ module Google
225
237
  end
226
238
  end
227
239
 
240
+ # Result of executing the [ExecutableCode]. Always follows a `part` containing
241
+ # the [ExecutableCode].
242
+ class GoogleCloudAiplatformV1beta1CodeExecutionResult
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # Required. Outcome of the code execution.
246
+ # Corresponds to the JSON property `outcome`
247
+ # @return [String]
248
+ attr_accessor :outcome
249
+
250
+ # Optional. Contains stdout when code execution is successful, stderr or other
251
+ # description otherwise.
252
+ # Corresponds to the JSON property `output`
253
+ # @return [String]
254
+ attr_accessor :output
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @outcome = args[:outcome] if args.key?(:outcome)
263
+ @output = args[:output] if args.key?(:output)
264
+ end
265
+ end
266
+
228
267
  # The base structured datatype containing multi-part content of a message. A `
229
268
  # Content` includes a `role` field designating the producer of the `Content` and
230
269
  # a `parts` field containing multi-part data that contains the content of the
@@ -265,6 +304,11 @@ module Google
265
304
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content>]
266
305
  attr_accessor :contents
267
306
 
307
+ # Generation config.
308
+ # Corresponds to the JSON property `generationConfig`
309
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfig]
310
+ attr_accessor :generation_config
311
+
268
312
  # Optional. The instances that are the input to token counting call. Schema is
269
313
  # identical to the prediction schema of the underlying model.
270
314
  # Corresponds to the JSON property `instances`
@@ -300,6 +344,7 @@ module Google
300
344
  # Update properties of this object
301
345
  def update!(**args)
302
346
  @contents = args[:contents] if args.key?(:contents)
347
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
303
348
  @instances = args[:instances] if args.key?(:instances)
304
349
  @model = args[:model] if args.key?(:model)
305
350
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
@@ -333,6 +378,59 @@ module Google
333
378
  end
334
379
  end
335
380
 
381
+ # Describes the options to customize dynamic retrieval.
382
+ class GoogleCloudAiplatformV1beta1DynamicRetrievalConfig
383
+ include Google::Apis::Core::Hashable
384
+
385
+ # Optional. The threshold to be used in dynamic retrieval. If not set, a system
386
+ # default value is used.
387
+ # Corresponds to the JSON property `dynamicThreshold`
388
+ # @return [Float]
389
+ attr_accessor :dynamic_threshold
390
+
391
+ # The mode of the predictor to be used in dynamic retrieval.
392
+ # Corresponds to the JSON property `mode`
393
+ # @return [String]
394
+ attr_accessor :mode
395
+
396
+ def initialize(**args)
397
+ update!(**args)
398
+ end
399
+
400
+ # Update properties of this object
401
+ def update!(**args)
402
+ @dynamic_threshold = args[:dynamic_threshold] if args.key?(:dynamic_threshold)
403
+ @mode = args[:mode] if args.key?(:mode)
404
+ end
405
+ end
406
+
407
+ # Code generated by the model that is meant to be executed, and the result
408
+ # returned to the model. Generated when using the [FunctionDeclaration] tool and
409
+ # [FunctionCallingConfig] mode is set to [Mode.CODE].
410
+ class GoogleCloudAiplatformV1beta1ExecutableCode
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # Required. The code to be executed.
414
+ # Corresponds to the JSON property `code`
415
+ # @return [String]
416
+ attr_accessor :code
417
+
418
+ # Required. Programming language of the `code`.
419
+ # Corresponds to the JSON property `language`
420
+ # @return [String]
421
+ attr_accessor :language
422
+
423
+ def initialize(**args)
424
+ update!(**args)
425
+ end
426
+
427
+ # Update properties of this object
428
+ def update!(**args)
429
+ @code = args[:code] if args.key?(:code)
430
+ @language = args[:language] if args.key?(:language)
431
+ end
432
+ end
433
+
336
434
  # URI based data.
337
435
  class GoogleCloudAiplatformV1beta1FileData
338
436
  include Google::Apis::Core::Hashable
@@ -415,9 +513,9 @@ module Google
415
513
 
416
514
  # Structured representation of a function declaration as defined by the [OpenAPI
417
515
  # 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
418
- # declaration are the function name and parameters. This FunctionDeclaration is
419
- # a representation of a block of code that can be used as a `Tool` by the model
420
- # and executed by the client.
516
+ # declaration are the function name, description, parameters and response type.
517
+ # This FunctionDeclaration is a representation of a block of code that can be
518
+ # used as a `Tool` by the model and executed by the client.
421
519
  class GoogleCloudAiplatformV1beta1FunctionDeclaration
422
520
  include Google::Apis::Core::Hashable
423
521
 
@@ -436,14 +534,14 @@ module Google
436
534
 
437
535
  # Schema is used to define the format of input/output data. Represents a select
438
536
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
439
- # schema). More fields may be added in the future as needed.
537
+ # schema-object). More fields may be added in the future as needed.
440
538
  # Corresponds to the JSON property `parameters`
441
539
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
442
540
  attr_accessor :parameters
443
541
 
444
542
  # Schema is used to define the format of input/output data. Represents a select
445
543
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
446
- # schema). More fields may be added in the future as needed.
544
+ # schema-object). More fields may be added in the future as needed.
447
545
  # Corresponds to the JSON property `response`
448
546
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
449
547
  attr_accessor :response
@@ -474,7 +572,10 @@ module Google
474
572
  # @return [String]
475
573
  attr_accessor :name
476
574
 
477
- # Required. The function response in JSON object format.
575
+ # Required. The function response in JSON object format. Use "output" key to
576
+ # specify function output and "error" key to specify error details (if any). If "
577
+ # output" and "error" keys are not specified, then whole "response" is treated
578
+ # as function output.
478
579
  # Corresponds to the JSON property `response`
479
580
  # @return [Hash<String,Object>]
480
581
  attr_accessor :response
@@ -515,6 +616,15 @@ module Google
515
616
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfig]
516
617
  attr_accessor :generation_config
517
618
 
619
+ # Optional. The labels with user-defined metadata for the request. It is used
620
+ # for billing and reporting only. Label keys and values can be no longer than 63
621
+ # characters (Unicode codepoints) and can only contain lowercase letters,
622
+ # numeric characters, underscores, and dashes. International characters are
623
+ # allowed. Label values are optional. Label keys must start with a letter.
624
+ # Corresponds to the JSON property `labels`
625
+ # @return [Hash<String,String>]
626
+ attr_accessor :labels
627
+
518
628
  # Optional. Per request settings for blocking unsafe content. Enforced on
519
629
  # GenerateContentResponse.candidates.
520
630
  # Corresponds to the JSON property `safetySettings`
@@ -551,6 +661,7 @@ module Google
551
661
  @cached_content = args[:cached_content] if args.key?(:cached_content)
552
662
  @contents = args[:contents] if args.key?(:contents)
553
663
  @generation_config = args[:generation_config] if args.key?(:generation_config)
664
+ @labels = args[:labels] if args.key?(:labels)
554
665
  @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
555
666
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
556
667
  @tool_config = args[:tool_config] if args.key?(:tool_config)
@@ -567,6 +678,11 @@ module Google
567
678
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Candidate>]
568
679
  attr_accessor :candidates
569
680
 
681
+ # Output only. The model version used to generate the response.
682
+ # Corresponds to the JSON property `modelVersion`
683
+ # @return [String]
684
+ attr_accessor :model_version
685
+
570
686
  # Content filter results for a prompt sent in the request.
571
687
  # Corresponds to the JSON property `promptFeedback`
572
688
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
@@ -584,6 +700,7 @@ module Google
584
700
  # Update properties of this object
585
701
  def update!(**args)
586
702
  @candidates = args[:candidates] if args.key?(:candidates)
703
+ @model_version = args[:model_version] if args.key?(:model_version)
587
704
  @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
588
705
  @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
589
706
  end
@@ -624,17 +741,25 @@ module Google
624
741
  class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
625
742
  include Google::Apis::Core::Hashable
626
743
 
744
+ # Output only. Number of tokens in the cached part in the input (the cached
745
+ # content).
746
+ # Corresponds to the JSON property `cachedContentTokenCount`
747
+ # @return [Fixnum]
748
+ attr_accessor :cached_content_token_count
749
+
627
750
  # Number of tokens in the response(s).
628
751
  # Corresponds to the JSON property `candidatesTokenCount`
629
752
  # @return [Fixnum]
630
753
  attr_accessor :candidates_token_count
631
754
 
632
- # Number of tokens in the request.
755
+ # Number of tokens in the request. When `cached_content` is set, this is still
756
+ # the total effective prompt size meaning this includes the number of tokens in
757
+ # the cached content.
633
758
  # Corresponds to the JSON property `promptTokenCount`
634
759
  # @return [Fixnum]
635
760
  attr_accessor :prompt_token_count
636
761
 
637
- #
762
+ # Total token count for prompt and response candidates.
638
763
  # Corresponds to the JSON property `totalTokenCount`
639
764
  # @return [Fixnum]
640
765
  attr_accessor :total_token_count
@@ -645,6 +770,7 @@ module Google
645
770
 
646
771
  # Update properties of this object
647
772
  def update!(**args)
773
+ @cached_content_token_count = args[:cached_content_token_count] if args.key?(:cached_content_token_count)
648
774
  @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
649
775
  @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
650
776
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
@@ -655,6 +781,13 @@ module Google
655
781
  class GoogleCloudAiplatformV1beta1GenerationConfig
656
782
  include Google::Apis::Core::Hashable
657
783
 
784
+ # Optional. If enabled, audio timestamp will be included in the request to the
785
+ # model.
786
+ # Corresponds to the JSON property `audioTimestamp`
787
+ # @return [Boolean]
788
+ attr_accessor :audio_timestamp
789
+ alias_method :audio_timestamp?, :audio_timestamp
790
+
658
791
  # Optional. Number of candidates to generate.
659
792
  # Corresponds to the JSON property `candidateCount`
660
793
  # @return [Fixnum]
@@ -665,16 +798,32 @@ module Google
665
798
  # @return [Float]
666
799
  attr_accessor :frequency_penalty
667
800
 
801
+ # Optional. Logit probabilities.
802
+ # Corresponds to the JSON property `logprobs`
803
+ # @return [Fixnum]
804
+ attr_accessor :logprobs
805
+
668
806
  # Optional. The maximum number of output tokens to generate per message.
669
807
  # Corresponds to the JSON property `maxOutputTokens`
670
808
  # @return [Fixnum]
671
809
  attr_accessor :max_output_tokens
672
810
 
811
+ # Optional. If specified, the media resolution specified will be used.
812
+ # Corresponds to the JSON property `mediaResolution`
813
+ # @return [String]
814
+ attr_accessor :media_resolution
815
+
673
816
  # Optional. Positive penalties.
674
817
  # Corresponds to the JSON property `presencePenalty`
675
818
  # @return [Float]
676
819
  attr_accessor :presence_penalty
677
820
 
821
+ # Optional. If true, export the logprobs results in response.
822
+ # Corresponds to the JSON property `responseLogprobs`
823
+ # @return [Boolean]
824
+ attr_accessor :response_logprobs
825
+ alias_method :response_logprobs?, :response_logprobs
826
+
678
827
  # Optional. Output response mimetype of the generated candidate text. Supported
679
828
  # mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON
680
829
  # response in the candidates. The model needs to be prompted to output the
@@ -684,13 +833,33 @@ module Google
684
833
  # @return [String]
685
834
  attr_accessor :response_mime_type
686
835
 
836
+ # Optional. The modalities of the response.
837
+ # Corresponds to the JSON property `responseModalities`
838
+ # @return [Array<String>]
839
+ attr_accessor :response_modalities
840
+
687
841
  # Schema is used to define the format of input/output data. Represents a select
688
842
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
689
- # schema). More fields may be added in the future as needed.
843
+ # schema-object). More fields may be added in the future as needed.
690
844
  # Corresponds to the JSON property `responseSchema`
691
845
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
692
846
  attr_accessor :response_schema
693
847
 
848
+ # The configuration for routing the request to a specific model.
849
+ # Corresponds to the JSON property `routingConfig`
850
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig]
851
+ attr_accessor :routing_config
852
+
853
+ # Optional. Seed.
854
+ # Corresponds to the JSON property `seed`
855
+ # @return [Fixnum]
856
+ attr_accessor :seed
857
+
858
+ # The speech generation config.
859
+ # Corresponds to the JSON property `speechConfig`
860
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SpeechConfig]
861
+ attr_accessor :speech_config
862
+
694
863
  # Optional. Stop sequences.
695
864
  # Corresponds to the JSON property `stopSequences`
696
865
  # @return [Array<String>]
@@ -717,12 +886,20 @@ module Google
717
886
 
718
887
  # Update properties of this object
719
888
  def update!(**args)
889
+ @audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
720
890
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
721
891
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
892
+ @logprobs = args[:logprobs] if args.key?(:logprobs)
722
893
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
894
+ @media_resolution = args[:media_resolution] if args.key?(:media_resolution)
723
895
  @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
896
+ @response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
724
897
  @response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
898
+ @response_modalities = args[:response_modalities] if args.key?(:response_modalities)
725
899
  @response_schema = args[:response_schema] if args.key?(:response_schema)
900
+ @routing_config = args[:routing_config] if args.key?(:routing_config)
901
+ @seed = args[:seed] if args.key?(:seed)
902
+ @speech_config = args[:speech_config] if args.key?(:speech_config)
726
903
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
727
904
  @temperature = args[:temperature] if args.key?(:temperature)
728
905
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -730,16 +907,88 @@ module Google
730
907
  end
731
908
  end
732
909
 
910
+ # The configuration for routing the request to a specific model.
911
+ class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig
912
+ include Google::Apis::Core::Hashable
913
+
914
+ # When automated routing is specified, the routing will be determined by the
915
+ # pretrained routing model and customer provided model routing preference.
916
+ # Corresponds to the JSON property `autoMode`
917
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode]
918
+ attr_accessor :auto_mode
919
+
920
+ # When manual routing is set, the specified model will be used directly.
921
+ # Corresponds to the JSON property `manualMode`
922
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode]
923
+ attr_accessor :manual_mode
924
+
925
+ def initialize(**args)
926
+ update!(**args)
927
+ end
928
+
929
+ # Update properties of this object
930
+ def update!(**args)
931
+ @auto_mode = args[:auto_mode] if args.key?(:auto_mode)
932
+ @manual_mode = args[:manual_mode] if args.key?(:manual_mode)
933
+ end
934
+ end
935
+
936
+ # When automated routing is specified, the routing will be determined by the
937
+ # pretrained routing model and customer provided model routing preference.
938
+ class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode
939
+ include Google::Apis::Core::Hashable
940
+
941
+ # The model routing preference.
942
+ # Corresponds to the JSON property `modelRoutingPreference`
943
+ # @return [String]
944
+ attr_accessor :model_routing_preference
945
+
946
+ def initialize(**args)
947
+ update!(**args)
948
+ end
949
+
950
+ # Update properties of this object
951
+ def update!(**args)
952
+ @model_routing_preference = args[:model_routing_preference] if args.key?(:model_routing_preference)
953
+ end
954
+ end
955
+
956
+ # When manual routing is set, the specified model will be used directly.
957
+ class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode
958
+ include Google::Apis::Core::Hashable
959
+
960
+ # The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.
961
+ # 5-pro-001'.
962
+ # Corresponds to the JSON property `modelName`
963
+ # @return [String]
964
+ attr_accessor :model_name
965
+
966
+ def initialize(**args)
967
+ update!(**args)
968
+ end
969
+
970
+ # Update properties of this object
971
+ def update!(**args)
972
+ @model_name = args[:model_name] if args.key?(:model_name)
973
+ end
974
+ end
975
+
733
976
  # Tool to retrieve public web data for grounding, powered by Google.
734
977
  class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
735
978
  include Google::Apis::Core::Hashable
736
979
 
980
+ # Describes the options to customize dynamic retrieval.
981
+ # Corresponds to the JSON property `dynamicRetrievalConfig`
982
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1DynamicRetrievalConfig]
983
+ attr_accessor :dynamic_retrieval_config
984
+
737
985
  def initialize(**args)
738
986
  update!(**args)
739
987
  end
740
988
 
741
989
  # Update properties of this object
742
990
  def update!(**args)
991
+ @dynamic_retrieval_config = args[:dynamic_retrieval_config] if args.key?(:dynamic_retrieval_config)
743
992
  end
744
993
  end
745
994
 
@@ -772,6 +1021,11 @@ module Google
772
1021
  class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
773
1022
  include Google::Apis::Core::Hashable
774
1023
 
1024
+ # Text of the attribution.
1025
+ # Corresponds to the JSON property `text`
1026
+ # @return [String]
1027
+ attr_accessor :text
1028
+
775
1029
  # Title of the attribution.
776
1030
  # Corresponds to the JSON property `title`
777
1031
  # @return [String]
@@ -788,6 +1042,7 @@ module Google
788
1042
 
789
1043
  # Update properties of this object
790
1044
  def update!(**args)
1045
+ @text = args[:text] if args.key?(:text)
791
1046
  @title = args[:title] if args.key?(:title)
792
1047
  @uri = args[:uri] if args.key?(:uri)
793
1048
  end
@@ -832,6 +1087,11 @@ module Google
832
1087
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport>]
833
1088
  attr_accessor :grounding_supports
834
1089
 
1090
+ # Metadata related to retrieval in the grounding flow.
1091
+ # Corresponds to the JSON property `retrievalMetadata`
1092
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RetrievalMetadata]
1093
+ attr_accessor :retrieval_metadata
1094
+
835
1095
  # Optional. Queries executed by the retrieval tools.
836
1096
  # Corresponds to the JSON property `retrievalQueries`
837
1097
  # @return [Array<String>]
@@ -855,6 +1115,7 @@ module Google
855
1115
  def update!(**args)
856
1116
  @grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
857
1117
  @grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
1118
+ @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
858
1119
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
859
1120
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
860
1121
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
@@ -896,6 +1157,82 @@ module Google
896
1157
  end
897
1158
  end
898
1159
 
1160
+ # Logprobs Result
1161
+ class GoogleCloudAiplatformV1beta1LogprobsResult
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ # Length = total number of decoding steps. The chosen candidates may or may not
1165
+ # be in top_candidates.
1166
+ # Corresponds to the JSON property `chosenCandidates`
1167
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResultCandidate>]
1168
+ attr_accessor :chosen_candidates
1169
+
1170
+ # Length = total number of decoding steps.
1171
+ # Corresponds to the JSON property `topCandidates`
1172
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates>]
1173
+ attr_accessor :top_candidates
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @chosen_candidates = args[:chosen_candidates] if args.key?(:chosen_candidates)
1182
+ @top_candidates = args[:top_candidates] if args.key?(:top_candidates)
1183
+ end
1184
+ end
1185
+
1186
+ # Candidate for the logprobs token and score.
1187
+ class GoogleCloudAiplatformV1beta1LogprobsResultCandidate
1188
+ include Google::Apis::Core::Hashable
1189
+
1190
+ # The candidate's log probability.
1191
+ # Corresponds to the JSON property `logProbability`
1192
+ # @return [Float]
1193
+ attr_accessor :log_probability
1194
+
1195
+ # The candidate's token string value.
1196
+ # Corresponds to the JSON property `token`
1197
+ # @return [String]
1198
+ attr_accessor :token
1199
+
1200
+ # The candidate's token id value.
1201
+ # Corresponds to the JSON property `tokenId`
1202
+ # @return [Fixnum]
1203
+ attr_accessor :token_id
1204
+
1205
+ def initialize(**args)
1206
+ update!(**args)
1207
+ end
1208
+
1209
+ # Update properties of this object
1210
+ def update!(**args)
1211
+ @log_probability = args[:log_probability] if args.key?(:log_probability)
1212
+ @token = args[:token] if args.key?(:token)
1213
+ @token_id = args[:token_id] if args.key?(:token_id)
1214
+ end
1215
+ end
1216
+
1217
+ # Candidates with top log probabilities at each decoding step.
1218
+ class GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates
1219
+ include Google::Apis::Core::Hashable
1220
+
1221
+ # Sorted by log probability in descending order.
1222
+ # Corresponds to the JSON property `candidates`
1223
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1LogprobsResultCandidate>]
1224
+ attr_accessor :candidates
1225
+
1226
+ def initialize(**args)
1227
+ update!(**args)
1228
+ end
1229
+
1230
+ # Update properties of this object
1231
+ def update!(**args)
1232
+ @candidates = args[:candidates] if args.key?(:candidates)
1233
+ end
1234
+ end
1235
+
899
1236
  # A datatype containing media that is part of a multi-part `Content` message. A `
900
1237
  # Part` consists of data which has an associated datatype. A `Part` can only
901
1238
  # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
@@ -904,6 +1241,19 @@ module Google
904
1241
  class GoogleCloudAiplatformV1beta1Part
905
1242
  include Google::Apis::Core::Hashable
906
1243
 
1244
+ # Result of executing the [ExecutableCode]. Always follows a `part` containing
1245
+ # the [ExecutableCode].
1246
+ # Corresponds to the JSON property `codeExecutionResult`
1247
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CodeExecutionResult]
1248
+ attr_accessor :code_execution_result
1249
+
1250
+ # Code generated by the model that is meant to be executed, and the result
1251
+ # returned to the model. Generated when using the [FunctionDeclaration] tool and
1252
+ # [FunctionCallingConfig] mode is set to [Mode.CODE].
1253
+ # Corresponds to the JSON property `executableCode`
1254
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ExecutableCode]
1255
+ attr_accessor :executable_code
1256
+
907
1257
  # URI based data.
908
1258
  # Corresponds to the JSON property `fileData`
909
1259
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FileData]
@@ -945,6 +1295,8 @@ module Google
945
1295
 
946
1296
  # Update properties of this object
947
1297
  def update!(**args)
1298
+ @code_execution_result = args[:code_execution_result] if args.key?(:code_execution_result)
1299
+ @executable_code = args[:executable_code] if args.key?(:executable_code)
948
1300
  @file_data = args[:file_data] if args.key?(:file_data)
949
1301
  @function_call = args[:function_call] if args.key?(:function_call)
950
1302
  @function_response = args[:function_response] if args.key?(:function_response)
@@ -954,6 +1306,181 @@ module Google
954
1306
  end
955
1307
  end
956
1308
 
1309
+ # The configuration for the prebuilt speaker to use.
1310
+ class GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig
1311
+ include Google::Apis::Core::Hashable
1312
+
1313
+ # The name of the preset voice to use.
1314
+ # Corresponds to the JSON property `voiceName`
1315
+ # @return [String]
1316
+ attr_accessor :voice_name
1317
+
1318
+ def initialize(**args)
1319
+ update!(**args)
1320
+ end
1321
+
1322
+ # Update properties of this object
1323
+ def update!(**args)
1324
+ @voice_name = args[:voice_name] if args.key?(:voice_name)
1325
+ end
1326
+ end
1327
+
1328
+ # Specifies the context retrieval config.
1329
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfig
1330
+ include Google::Apis::Core::Hashable
1331
+
1332
+ # Config for filters.
1333
+ # Corresponds to the JSON property `filter`
1334
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter]
1335
+ attr_accessor :filter
1336
+
1337
+ # Config for Hybrid Search.
1338
+ # Corresponds to the JSON property `hybridSearch`
1339
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch]
1340
+ attr_accessor :hybrid_search
1341
+
1342
+ # Config for ranking and reranking.
1343
+ # Corresponds to the JSON property `ranking`
1344
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking]
1345
+ attr_accessor :ranking
1346
+
1347
+ # Optional. The number of contexts to retrieve.
1348
+ # Corresponds to the JSON property `topK`
1349
+ # @return [Fixnum]
1350
+ attr_accessor :top_k
1351
+
1352
+ def initialize(**args)
1353
+ update!(**args)
1354
+ end
1355
+
1356
+ # Update properties of this object
1357
+ def update!(**args)
1358
+ @filter = args[:filter] if args.key?(:filter)
1359
+ @hybrid_search = args[:hybrid_search] if args.key?(:hybrid_search)
1360
+ @ranking = args[:ranking] if args.key?(:ranking)
1361
+ @top_k = args[:top_k] if args.key?(:top_k)
1362
+ end
1363
+ end
1364
+
1365
+ # Config for filters.
1366
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
1367
+ include Google::Apis::Core::Hashable
1368
+
1369
+ # Optional. String for metadata filtering.
1370
+ # Corresponds to the JSON property `metadataFilter`
1371
+ # @return [String]
1372
+ attr_accessor :metadata_filter
1373
+
1374
+ # Optional. Only returns contexts with vector distance smaller than the
1375
+ # threshold.
1376
+ # Corresponds to the JSON property `vectorDistanceThreshold`
1377
+ # @return [Float]
1378
+ attr_accessor :vector_distance_threshold
1379
+
1380
+ # Optional. Only returns contexts with vector similarity larger than the
1381
+ # threshold.
1382
+ # Corresponds to the JSON property `vectorSimilarityThreshold`
1383
+ # @return [Float]
1384
+ attr_accessor :vector_similarity_threshold
1385
+
1386
+ def initialize(**args)
1387
+ update!(**args)
1388
+ end
1389
+
1390
+ # Update properties of this object
1391
+ def update!(**args)
1392
+ @metadata_filter = args[:metadata_filter] if args.key?(:metadata_filter)
1393
+ @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
1394
+ @vector_similarity_threshold = args[:vector_similarity_threshold] if args.key?(:vector_similarity_threshold)
1395
+ end
1396
+ end
1397
+
1398
+ # Config for Hybrid Search.
1399
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
1400
+ include Google::Apis::Core::Hashable
1401
+
1402
+ # Optional. Alpha value controls the weight between dense and sparse vector
1403
+ # search results. The range is [0, 1], while 0 means sparse vector search only
1404
+ # and 1 means dense vector search only. The default value is 0.5 which balances
1405
+ # sparse and dense vector search equally.
1406
+ # Corresponds to the JSON property `alpha`
1407
+ # @return [Float]
1408
+ attr_accessor :alpha
1409
+
1410
+ def initialize(**args)
1411
+ update!(**args)
1412
+ end
1413
+
1414
+ # Update properties of this object
1415
+ def update!(**args)
1416
+ @alpha = args[:alpha] if args.key?(:alpha)
1417
+ end
1418
+ end
1419
+
1420
+ # Config for ranking and reranking.
1421
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
1422
+ include Google::Apis::Core::Hashable
1423
+
1424
+ # Config for LlmRanker.
1425
+ # Corresponds to the JSON property `llmRanker`
1426
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker]
1427
+ attr_accessor :llm_ranker
1428
+
1429
+ # Config for Rank Service.
1430
+ # Corresponds to the JSON property `rankService`
1431
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService]
1432
+ attr_accessor :rank_service
1433
+
1434
+ def initialize(**args)
1435
+ update!(**args)
1436
+ end
1437
+
1438
+ # Update properties of this object
1439
+ def update!(**args)
1440
+ @llm_ranker = args[:llm_ranker] if args.key?(:llm_ranker)
1441
+ @rank_service = args[:rank_service] if args.key?(:rank_service)
1442
+ end
1443
+ end
1444
+
1445
+ # Config for LlmRanker.
1446
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker
1447
+ include Google::Apis::Core::Hashable
1448
+
1449
+ # Optional. The model name used for ranking. Format: `gemini-1.5-pro`
1450
+ # Corresponds to the JSON property `modelName`
1451
+ # @return [String]
1452
+ attr_accessor :model_name
1453
+
1454
+ def initialize(**args)
1455
+ update!(**args)
1456
+ end
1457
+
1458
+ # Update properties of this object
1459
+ def update!(**args)
1460
+ @model_name = args[:model_name] if args.key?(:model_name)
1461
+ end
1462
+ end
1463
+
1464
+ # Config for Rank Service.
1465
+ class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService
1466
+ include Google::Apis::Core::Hashable
1467
+
1468
+ # Optional. The model name of the rank service. Format: `semantic-ranker-512@
1469
+ # latest`
1470
+ # Corresponds to the JSON property `modelName`
1471
+ # @return [String]
1472
+ attr_accessor :model_name
1473
+
1474
+ def initialize(**args)
1475
+ update!(**args)
1476
+ end
1477
+
1478
+ # Update properties of this object
1479
+ def update!(**args)
1480
+ @model_name = args[:model_name] if args.key?(:model_name)
1481
+ end
1482
+ end
1483
+
957
1484
  # Defines a retrieval tool that model can call to access external knowledge.
958
1485
  class GoogleCloudAiplatformV1beta1Retrieval
959
1486
  include Google::Apis::Core::Hashable
@@ -965,7 +1492,7 @@ module Google
965
1492
  alias_method :disable_attribution?, :disable_attribution
966
1493
 
967
1494
  # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
968
- # google.com/vertex-ai-search-and-conversation
1495
+ # google.com/products/agent-builder
969
1496
  # Corresponds to the JSON property `vertexAiSearch`
970
1497
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexAiSearch]
971
1498
  attr_accessor :vertex_ai_search
@@ -987,6 +1514,29 @@ module Google
987
1514
  end
988
1515
  end
989
1516
 
1517
+ # Metadata related to retrieval in the grounding flow.
1518
+ class GoogleCloudAiplatformV1beta1RetrievalMetadata
1519
+ include Google::Apis::Core::Hashable
1520
+
1521
+ # Optional. Score indicating how likely information from Google Search could
1522
+ # help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
1523
+ # least likely and 1 is the most likely. This score is only populated when
1524
+ # Google Search grounding and dynamic retrieval is enabled. It will be compared
1525
+ # to the threshold to determine whether to trigger Google Search.
1526
+ # Corresponds to the JSON property `googleSearchDynamicRetrievalScore`
1527
+ # @return [Float]
1528
+ attr_accessor :google_search_dynamic_retrieval_score
1529
+
1530
+ def initialize(**args)
1531
+ update!(**args)
1532
+ end
1533
+
1534
+ # Update properties of this object
1535
+ def update!(**args)
1536
+ @google_search_dynamic_retrieval_score = args[:google_search_dynamic_retrieval_score] if args.key?(:google_search_dynamic_retrieval_score)
1537
+ end
1538
+ end
1539
+
990
1540
  # Safety rating corresponding to the generated content.
991
1541
  class GoogleCloudAiplatformV1beta1SafetyRating
992
1542
  include Google::Apis::Core::Hashable
@@ -1072,10 +1622,16 @@ module Google
1072
1622
 
1073
1623
  # Schema is used to define the format of input/output data. Represents a select
1074
1624
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
1075
- # schema). More fields may be added in the future as needed.
1625
+ # schema-object). More fields may be added in the future as needed.
1076
1626
  class GoogleCloudAiplatformV1beta1Schema
1077
1627
  include Google::Apis::Core::Hashable
1078
1628
 
1629
+ # Optional. The value should be validated against any (one or more) of the
1630
+ # subschemas in the list.
1631
+ # Corresponds to the JSON property `anyOf`
1632
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema>]
1633
+ attr_accessor :any_of
1634
+
1079
1635
  # Optional. Default value of the data.
1080
1636
  # Corresponds to the JSON property `default`
1081
1637
  # @return [Object]
@@ -1086,9 +1642,10 @@ module Google
1086
1642
  # @return [String]
1087
1643
  attr_accessor :description
1088
1644
 
1089
- # Optional. Possible values of the element of Type.STRING with enum format. For
1090
- # example we can define an Enum Direction as : `type:STRING, format:enum, enum:["
1091
- # EAST", NORTH", "SOUTH", "WEST"]`
1645
+ # Optional. Possible values of the element of primitive type with enum format.
1646
+ # Examples: 1. We can define direction as : `type:STRING, format:enum, enum:["
1647
+ # EAST", NORTH", "SOUTH", "WEST"]` 2. We can define apartment number as : `type:
1648
+ # INTEGER, format:enum, enum:["101", "201", "301"]`
1092
1649
  # Corresponds to the JSON property `enum`
1093
1650
  # @return [Array<String>]
1094
1651
  attr_accessor :enum
@@ -1108,7 +1665,7 @@ module Google
1108
1665
 
1109
1666
  # Schema is used to define the format of input/output data. Represents a select
1110
1667
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
1111
- # schema). More fields may be added in the future as needed.
1668
+ # schema-object). More fields may be added in the future as needed.
1112
1669
  # Corresponds to the JSON property `items`
1113
1670
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
1114
1671
  attr_accessor :items
@@ -1171,6 +1728,12 @@ module Google
1171
1728
  # @return [Hash<String,Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema>]
1172
1729
  attr_accessor :properties
1173
1730
 
1731
+ # Optional. The order of the properties. Not a standard field in open api spec.
1732
+ # Only used to support the order of the properties.
1733
+ # Corresponds to the JSON property `propertyOrdering`
1734
+ # @return [Array<String>]
1735
+ attr_accessor :property_ordering
1736
+
1174
1737
  # Optional. Required properties of Type.OBJECT.
1175
1738
  # Corresponds to the JSON property `required`
1176
1739
  # @return [Array<String>]
@@ -1192,6 +1755,7 @@ module Google
1192
1755
 
1193
1756
  # Update properties of this object
1194
1757
  def update!(**args)
1758
+ @any_of = args[:any_of] if args.key?(:any_of)
1195
1759
  @default = args[:default] if args.key?(:default)
1196
1760
  @description = args[:description] if args.key?(:description)
1197
1761
  @enum = args[:enum] if args.key?(:enum)
@@ -1209,6 +1773,7 @@ module Google
1209
1773
  @nullable = args[:nullable] if args.key?(:nullable)
1210
1774
  @pattern = args[:pattern] if args.key?(:pattern)
1211
1775
  @properties = args[:properties] if args.key?(:properties)
1776
+ @property_ordering = args[:property_ordering] if args.key?(:property_ordering)
1212
1777
  @required = args[:required] if args.key?(:required)
1213
1778
  @title = args[:title] if args.key?(:title)
1214
1779
  @type = args[:type] if args.key?(:type)
@@ -1281,6 +1846,25 @@ module Google
1281
1846
  end
1282
1847
  end
1283
1848
 
1849
+ # The speech generation config.
1850
+ class GoogleCloudAiplatformV1beta1SpeechConfig
1851
+ include Google::Apis::Core::Hashable
1852
+
1853
+ # The configuration for the voice to use.
1854
+ # Corresponds to the JSON property `voiceConfig`
1855
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VoiceConfig]
1856
+ attr_accessor :voice_config
1857
+
1858
+ def initialize(**args)
1859
+ update!(**args)
1860
+ end
1861
+
1862
+ # Update properties of this object
1863
+ def update!(**args)
1864
+ @voice_config = args[:voice_config] if args.key?(:voice_config)
1865
+ end
1866
+ end
1867
+
1284
1868
  # Tool details that the model may use to generate response. A `Tool` is a piece
1285
1869
  # of code that enables the system to interact with external systems to perform
1286
1870
  # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -1289,16 +1873,29 @@ module Google
1289
1873
  class GoogleCloudAiplatformV1beta1Tool
1290
1874
  include Google::Apis::Core::Hashable
1291
1875
 
1876
+ # Tool that executes code generated by the model, and automatically returns the
1877
+ # result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
1878
+ # are input and output to this tool.
1879
+ # Corresponds to the JSON property `codeExecution`
1880
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution]
1881
+ attr_accessor :code_execution
1882
+
1292
1883
  # Optional. Function tool type. One or more function declarations to be passed
1293
1884
  # to the model along with the current user query. Model may decide to call a
1294
1885
  # subset of these functions by populating FunctionCall in the response. User
1295
1886
  # should provide a FunctionResponse for each function call in the next turn.
1296
1887
  # Based on the function responses, Model will generate the final response back
1297
- # to the user. Maximum 64 function declarations can be provided.
1888
+ # to the user. Maximum 128 function declarations can be provided.
1298
1889
  # Corresponds to the JSON property `functionDeclarations`
1299
1890
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
1300
1891
  attr_accessor :function_declarations
1301
1892
 
1893
+ # GoogleSearch tool type. Tool to support Google Search in Model. Powered by
1894
+ # Google.
1895
+ # Corresponds to the JSON property `googleSearch`
1896
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolGoogleSearch]
1897
+ attr_accessor :google_search
1898
+
1302
1899
  # Tool to retrieve public web data for grounding, powered by Google.
1303
1900
  # Corresponds to the JSON property `googleSearchRetrieval`
1304
1901
  # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
@@ -1315,12 +1912,29 @@ module Google
1315
1912
 
1316
1913
  # Update properties of this object
1317
1914
  def update!(**args)
1915
+ @code_execution = args[:code_execution] if args.key?(:code_execution)
1318
1916
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
1917
+ @google_search = args[:google_search] if args.key?(:google_search)
1319
1918
  @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
1320
1919
  @retrieval = args[:retrieval] if args.key?(:retrieval)
1321
1920
  end
1322
1921
  end
1323
1922
 
1923
+ # Tool that executes code generated by the model, and automatically returns the
1924
+ # result to the model. See also [ExecutableCode]and [CodeExecutionResult] which
1925
+ # are input and output to this tool.
1926
+ class GoogleCloudAiplatformV1beta1ToolCodeExecution
1927
+ include Google::Apis::Core::Hashable
1928
+
1929
+ def initialize(**args)
1930
+ update!(**args)
1931
+ end
1932
+
1933
+ # Update properties of this object
1934
+ def update!(**args)
1935
+ end
1936
+ end
1937
+
1324
1938
  # Tool config. This config is shared for all tools provided in the request.
1325
1939
  class GoogleCloudAiplatformV1beta1ToolConfig
1326
1940
  include Google::Apis::Core::Hashable
@@ -1340,12 +1954,26 @@ module Google
1340
1954
  end
1341
1955
  end
1342
1956
 
1957
+ # GoogleSearch tool type. Tool to support Google Search in Model. Powered by
1958
+ # Google.
1959
+ class GoogleCloudAiplatformV1beta1ToolGoogleSearch
1960
+ include Google::Apis::Core::Hashable
1961
+
1962
+ def initialize(**args)
1963
+ update!(**args)
1964
+ end
1965
+
1966
+ # Update properties of this object
1967
+ def update!(**args)
1968
+ end
1969
+ end
1970
+
1343
1971
  # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
1344
- # google.com/vertex-ai-search-and-conversation
1972
+ # google.com/products/agent-builder
1345
1973
  class GoogleCloudAiplatformV1beta1VertexAiSearch
1346
1974
  include Google::Apis::Core::Hashable
1347
1975
 
1348
- # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
1976
+ # Required. Fully-qualified Vertex AI Search data store resource ID. Format: `
1349
1977
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
1350
1978
  # dataStore``
1351
1979
  # Corresponds to the JSON property `datastore`
@@ -1378,6 +2006,11 @@ module Google
1378
2006
  # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexRagStoreRagResource>]
1379
2007
  attr_accessor :rag_resources
1380
2008
 
2009
+ # Specifies the context retrieval config.
2010
+ # Corresponds to the JSON property `ragRetrievalConfig`
2011
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfig]
2012
+ attr_accessor :rag_retrieval_config
2013
+
1381
2014
  # Optional. Number of top k results to return from the selected corpora.
1382
2015
  # Corresponds to the JSON property `similarityTopK`
1383
2016
  # @return [Fixnum]
@@ -1396,6 +2029,7 @@ module Google
1396
2029
  def update!(**args)
1397
2030
  @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
1398
2031
  @rag_resources = args[:rag_resources] if args.key?(:rag_resources)
2032
+ @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config)
1399
2033
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
1400
2034
  @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
1401
2035
  end
@@ -1453,6 +2087,25 @@ module Google
1453
2087
  end
1454
2088
  end
1455
2089
 
2090
+ # The configuration for the voice to use.
2091
+ class GoogleCloudAiplatformV1beta1VoiceConfig
2092
+ include Google::Apis::Core::Hashable
2093
+
2094
+ # The configuration for the prebuilt speaker to use.
2095
+ # Corresponds to the JSON property `prebuiltVoiceConfig`
2096
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig]
2097
+ attr_accessor :prebuilt_voice_config
2098
+
2099
+ def initialize(**args)
2100
+ update!(**args)
2101
+ end
2102
+
2103
+ # Update properties of this object
2104
+ def update!(**args)
2105
+ @prebuilt_voice_config = args[:prebuilt_voice_config] if args.key?(:prebuilt_voice_config)
2106
+ end
2107
+ end
2108
+
1456
2109
  # This is returned in the longrunning operations for create/update.
1457
2110
  class ModelOperationMetadata
1458
2111
  include Google::Apis::Core::Hashable