@@ -109,6 +109,44 @@ def update!(**args)
109109 end
110110 end
111111
112+ # Configuration for audio-specific output formatting.
113+ class GoogleCloudAiplatformV1beta1AudioResponseFormat
114+ include Google ::Apis ::Core ::Hashable
115+
116+ # Optional. Bit rate in bits per second (bps). Only applicable for compressed
117+ # formats (MP3, Opus).
118+ # Corresponds to the JSON property `bitRate`
119+ # @return [Fixnum]
120+ attr_accessor :bit_rate
121+
122+ # Optional. Delivery mode for the generated content.
123+ # Corresponds to the JSON property `delivery`
124+ # @return [String]
125+ attr_accessor :delivery
126+
127+ # Optional. The MIME type of the audio output.
128+ # Corresponds to the JSON property `mimeType`
129+ # @return [String]
130+ attr_accessor :mime_type
131+
132+ # Optional. Sample rate for the generated audio in Hertz.
133+ # Corresponds to the JSON property `sampleRate`
134+ # @return [Fixnum]
135+ attr_accessor :sample_rate
136+
137+ def initialize ( **args )
138+ update! ( **args )
139+ end
140+
141+ # Update properties of this object
142+ def update! ( **args )
143+ @bit_rate = args [ :bit_rate ] if args . key? ( :bit_rate )
144+ @delivery = args [ :delivery ] if args . key? ( :delivery )
145+ @mime_type = args [ :mime_type ] if args . key? ( :mime_type )
146+ @sample_rate = args [ :sample_rate ] if args . key? ( :sample_rate )
147+ end
148+ end
149+
112150 # Auth configuration to run the extension.
113151 class GoogleCloudAiplatformV1beta1AuthConfig
114152 include Google ::Apis ::Core ::Hashable
@@ -1543,8 +1581,15 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
15431581 # @return [Float]
15441582 attr_accessor :presence_penalty
15451583
1584+ # Optional. New response format field for the model to configure output
1585+ # formatting and delivery.
1586+ # Corresponds to the JSON property `responseFormat`
1587+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ResponseFormat>]
1588+ attr_accessor :response_format
1589+
15461590 # Optional. When this field is set, response_schema must be omitted and
1547- # response_mime_type must be set to `application/json`.
1591+ # response_mime_type must be set to `application/json`. Deprecated: Use `
1592+ # response_format` instead.
15481593 # Corresponds to the JSON property `responseJsonSchema`
15491594 # @return [Object]
15501595 attr_accessor :response_json_schema
@@ -1562,7 +1607,8 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
15621607 # Optional. The IANA standard MIME type of the response. The model will generate
15631608 # output that conforms to this MIME type. Supported values include 'text/plain' (
15641609 # default) and 'application/json'. The model needs to be prompted to output the
1565- # appropriate response type, otherwise the behavior is undefined.
1610+ # appropriate response type, otherwise the behavior is undefined. Deprecated:
1611+ # Use `response_format` instead.
15661612 # Corresponds to the JSON property `responseMimeType`
15671613 # @return [String]
15681614 attr_accessor :response_mime_type
@@ -1662,6 +1708,7 @@ def update!(**args)
16621708 @media_resolution = args [ :media_resolution ] if args . key? ( :media_resolution )
16631709 @model_config = args [ :model_config ] if args . key? ( :model_config )
16641710 @presence_penalty = args [ :presence_penalty ] if args . key? ( :presence_penalty )
1711+ @response_format = args [ :response_format ] if args . key? ( :response_format )
16651712 @response_json_schema = args [ :response_json_schema ] if args . key? ( :response_json_schema )
16661713 @response_logprobs = args [ :response_logprobs ] if args . key? ( :response_logprobs )
16671714 @response_mime_type = args [ :response_mime_type ] if args . key? ( :response_mime_type )
@@ -2399,6 +2446,43 @@ def update!(**args)
23992446 end
24002447 end
24012448
2449+ # Configuration for image-specific output formatting.
2450+ class GoogleCloudAiplatformV1beta1ImageResponseFormat
2451+ include Google ::Apis ::Core ::Hashable
2452+
2453+ # Optional. The aspect ratio for the image output.
2454+ # Corresponds to the JSON property `aspectRatio`
2455+ # @return [String]
2456+ attr_accessor :aspect_ratio
2457+
2458+ # Optional. Delivery mode for the generated content.
2459+ # Corresponds to the JSON property `delivery`
2460+ # @return [String]
2461+ attr_accessor :delivery
2462+
2463+ # Optional. The size of the image output.
2464+ # Corresponds to the JSON property `imageSize`
2465+ # @return [String]
2466+ attr_accessor :image_size
2467+
2468+ # Optional. The MIME type of the image output.
2469+ # Corresponds to the JSON property `mimeType`
2470+ # @return [String]
2471+ attr_accessor :mime_type
2472+
2473+ def initialize ( **args )
2474+ update! ( **args )
2475+ end
2476+
2477+ # Update properties of this object
2478+ def update! ( **args )
2479+ @aspect_ratio = args [ :aspect_ratio ] if args . key? ( :aspect_ratio )
2480+ @delivery = args [ :delivery ] if args . key? ( :delivery )
2481+ @image_size = args [ :image_size ] if args . key? ( :image_size )
2482+ @mime_type = args [ :mime_type ] if args . key? ( :mime_type )
2483+ end
2484+ end
2485+
24022486 # The log probabilities of the tokens generated by the model. This is useful for
24032487 # understanding the model's confidence in its predictions and for debugging. For
24042488 # example, you can use log probabilities to identify when the model is making a
@@ -3020,6 +3104,43 @@ def update!(**args)
30203104 end
30213105 end
30223106
3107+ # Configuration for the model to configure output formatting and delivery.
3108+ class GoogleCloudAiplatformV1beta1ResponseFormat
3109+ include Google ::Apis ::Core ::Hashable
3110+
3111+ # Configuration for audio-specific output formatting.
3112+ # Corresponds to the JSON property `audio`
3113+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1AudioResponseFormat]
3114+ attr_accessor :audio
3115+
3116+ # Configuration for image-specific output formatting.
3117+ # Corresponds to the JSON property `image`
3118+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ImageResponseFormat]
3119+ attr_accessor :image
3120+
3121+ # Configuration for text-specific output formatting.
3122+ # Corresponds to the JSON property `text`
3123+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1TextResponseFormat]
3124+ attr_accessor :text
3125+
3126+ # Configuration for video-specific output formatting.
3127+ # Corresponds to the JSON property `video`
3128+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoResponseFormat]
3129+ attr_accessor :video
3130+
3131+ def initialize ( **args )
3132+ update! ( **args )
3133+ end
3134+
3135+ # Update properties of this object
3136+ def update! ( **args )
3137+ @audio = args [ :audio ] if args . key? ( :audio )
3138+ @image = args [ :image ] if args . key? ( :image )
3139+ @text = args [ :text ] if args . key? ( :text )
3140+ @video = args [ :video ] if args . key? ( :video )
3141+ end
3142+ end
3143+
30233144 # Defines a retrieval tool that model can call to access external knowledge.
30243145 class GoogleCloudAiplatformV1beta1Retrieval
30253146 include Google ::Apis ::Core ::Hashable
@@ -3540,6 +3661,32 @@ def update!(**args)
35403661 end
35413662 end
35423663
3664+ # Configuration for text-specific output formatting.
3665+ class GoogleCloudAiplatformV1beta1TextResponseFormat
3666+ include Google ::Apis ::Core ::Hashable
3667+
3668+ # Optional. The IANA standard MIME type of the response.
3669+ # Corresponds to the JSON property `mimeType`
3670+ # @return [String]
3671+ attr_accessor :mime_type
3672+
3673+ # Optional. The JSON schema that the output should conform to. Only applicable
3674+ # when mime_type is APPLICATION_JSON.
3675+ # Corresponds to the JSON property `schema`
3676+ # @return [Object]
3677+ attr_accessor :schema
3678+
3679+ def initialize ( **args )
3680+ update! ( **args )
3681+ end
3682+
3683+ # Update properties of this object
3684+ def update! ( **args )
3685+ @mime_type = args [ :mime_type ] if args . key? ( :mime_type )
3686+ @schema = args [ :schema ] if args . key? ( :schema )
3687+ end
3688+ end
3689+
35433690 # Tool details that the model may use to generate response. A `Tool` is a piece
35443691 # of code that enables the system to interact with external systems to perform
35453692 # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -3652,6 +3799,12 @@ def update!(**args)
36523799 class GoogleCloudAiplatformV1beta1ToolComputerUse
36533800 include Google ::Apis ::Core ::Hashable
36543801
3802+ # Optional. Enables the prompt injection detection check on computer-use request.
3803+ # Corresponds to the JSON property `enablePromptInjectionDetection`
3804+ # @return [Boolean]
3805+ attr_accessor :enable_prompt_injection_detection
3806+ alias_method :enable_prompt_injection_detection? , :enable_prompt_injection_detection
3807+
36553808 # Required. The environment being operated.
36563809 # Corresponds to the JSON property `environment`
36573810 # @return [String]
@@ -3673,6 +3826,7 @@ def initialize(**args)
36733826
36743827 # Update properties of this object
36753828 def update! ( **args )
3829+ @enable_prompt_injection_detection = args [ :enable_prompt_injection_detection ] if args . key? ( :enable_prompt_injection_detection )
36763830 @environment = args [ :environment ] if args . key? ( :environment )
36773831 @excluded_predefined_functions = args [ :excluded_predefined_functions ] if args . key? ( :excluded_predefined_functions )
36783832 end
@@ -4110,6 +4264,44 @@ def update!(**args)
41104264 end
41114265 end
41124266
4267+ # Configuration for video-specific output formatting.
4268+ class GoogleCloudAiplatformV1beta1VideoResponseFormat
4269+ include Google ::Apis ::Core ::Hashable
4270+
4271+ # The aspect ratio for the video output.
4272+ # Corresponds to the JSON property `aspectRatio`
4273+ # @return [String]
4274+ attr_accessor :aspect_ratio
4275+
4276+ # Optional. Delivery mode for the generated content.
4277+ # Corresponds to the JSON property `delivery`
4278+ # @return [String]
4279+ attr_accessor :delivery
4280+
4281+ # Optional. The duration for the video output.
4282+ # Corresponds to the JSON property `duration`
4283+ # @return [String]
4284+ attr_accessor :duration
4285+
4286+ # Optional. The Google Cloud Storage URI to store the video output. Required for
4287+ # Vertex if delivery is URI.
4288+ # Corresponds to the JSON property `gcsUri`
4289+ # @return [String]
4290+ attr_accessor :gcs_uri
4291+
4292+ def initialize ( **args )
4293+ update! ( **args )
4294+ end
4295+
4296+ # Update properties of this object
4297+ def update! ( **args )
4298+ @aspect_ratio = args [ :aspect_ratio ] if args . key? ( :aspect_ratio )
4299+ @delivery = args [ :delivery ] if args . key? ( :delivery )
4300+ @duration = args [ :duration ] if args . key? ( :duration )
4301+ @gcs_uri = args [ :gcs_uri ] if args . key? ( :gcs_uri )
4302+ end
4303+ end
4304+
41134305 # Configuration for a voice.
41144306 class GoogleCloudAiplatformV1beta1VoiceConfig
41154307 include Google ::Apis ::Core ::Hashable
0 commit comments