@@ -808,6 +808,11 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
808808 # @return [Fixnum]
809809 attr_accessor :max_output_tokens
810810
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+
811816 # Optional. Positive penalties.
812817 # Corresponds to the JSON property `presencePenalty`
813818 # @return [Float]
@@ -828,6 +833,11 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
828833 # @return [String]
829834 attr_accessor :response_mime_type
830835
836+ # Optional. The modalities of the response.
837+ # Corresponds to the JSON property `responseModalities`
838+ # @return [Array<String>]
839+ attr_accessor :response_modalities
840+
831841 # Schema is used to define the format of input/output data. Represents a select
832842 # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
833843 # schema-object). More fields may be added in the future as needed.
@@ -845,6 +855,11 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
845855 # @return [Fixnum]
846856 attr_accessor :seed
847857
858+ # The speech generation config.
859+ # Corresponds to the JSON property `speechConfig`
860+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SpeechConfig]
861+ attr_accessor :speech_config
862+
848863 # Optional. Stop sequences.
849864 # Corresponds to the JSON property `stopSequences`
850865 # @return [Array<String>]
@@ -876,12 +891,15 @@ def update!(**args)
876891 @frequency_penalty = args [ :frequency_penalty ] if args . key? ( :frequency_penalty )
877892 @logprobs = args [ :logprobs ] if args . key? ( :logprobs )
878893 @max_output_tokens = args [ :max_output_tokens ] if args . key? ( :max_output_tokens )
894+ @media_resolution = args [ :media_resolution ] if args . key? ( :media_resolution )
879895 @presence_penalty = args [ :presence_penalty ] if args . key? ( :presence_penalty )
880896 @response_logprobs = args [ :response_logprobs ] if args . key? ( :response_logprobs )
881897 @response_mime_type = args [ :response_mime_type ] if args . key? ( :response_mime_type )
898+ @response_modalities = args [ :response_modalities ] if args . key? ( :response_modalities )
882899 @response_schema = args [ :response_schema ] if args . key? ( :response_schema )
883900 @routing_config = args [ :routing_config ] if args . key? ( :routing_config )
884901 @seed = args [ :seed ] if args . key? ( :seed )
902+ @speech_config = args [ :speech_config ] if args . key? ( :speech_config )
885903 @stop_sequences = args [ :stop_sequences ] if args . key? ( :stop_sequences )
886904 @temperature = args [ :temperature ] if args . key? ( :temperature )
887905 @top_k = args [ :top_k ] if args . key? ( :top_k )
@@ -1288,6 +1306,25 @@ def update!(**args)
12881306 end
12891307 end
12901308
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+
12911328 # Specifies the context retrieval config.
12921329 class GoogleCloudAiplatformV1beta1RagRetrievalConfig
12931330 include Google ::Apis ::Core ::Hashable
@@ -1809,6 +1846,25 @@ def update!(**args)
18091846 end
18101847 end
18111848
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+
18121868 # Tool details that the model may use to generate response. A `Tool` is a piece
18131869 # of code that enables the system to interact with external systems to perform
18141870 # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -1834,6 +1890,12 @@ class GoogleCloudAiplatformV1beta1Tool
18341890 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
18351891 attr_accessor :function_declarations
18361892
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+
18371899 # Tool to retrieve public web data for grounding, powered by Google.
18381900 # Corresponds to the JSON property `googleSearchRetrieval`
18391901 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
@@ -1852,6 +1914,7 @@ def initialize(**args)
18521914 def update! ( **args )
18531915 @code_execution = args [ :code_execution ] if args . key? ( :code_execution )
18541916 @function_declarations = args [ :function_declarations ] if args . key? ( :function_declarations )
1917+ @google_search = args [ :google_search ] if args . key? ( :google_search )
18551918 @google_search_retrieval = args [ :google_search_retrieval ] if args . key? ( :google_search_retrieval )
18561919 @retrieval = args [ :retrieval ] if args . key? ( :retrieval )
18571920 end
@@ -1891,6 +1954,20 @@ def update!(**args)
18911954 end
18921955 end
18931956
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+
18941971 # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
18951972 # google.com/products/agent-builder
18961973 class GoogleCloudAiplatformV1beta1VertexAiSearch
@@ -2010,6 +2087,25 @@ def update!(**args)
20102087 end
20112088 end
20122089
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+
20132109 # This is returned in the longrunning operations for create/update.
20142110 class ModelOperationMetadata
20152111 include Google ::Apis ::Core ::Hashable
0 commit comments