@@ -21,6 +21,7 @@ import "google/cloud/aiplatform/v1/openapi.proto";
2121import "google/cloud/aiplatform/v1/tool.proto" ;
2222import "google/cloud/aiplatform/v1/vertex_rag_data.proto" ;
2323import "google/protobuf/duration.proto" ;
24+ import "google/protobuf/struct.proto" ;
2425import "google/type/date.proto" ;
2526
2627option csharp_namespace = "Google.Cloud.AIPlatform.V1" ;
@@ -281,6 +282,45 @@ message GenerationConfig {
281282 // `application/json`: Schema for JSON response.
282283 optional Schema response_schema = 16 [(google.api.field_behavior ) = OPTIONAL ];
283284
285+ // Optional. Output schema of the generated response. This is an alternative
286+ // to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
287+ //
288+ // If set, `response_schema` must be omitted, but `response_mime_type` is
289+ // required.
290+ //
291+ // While the full JSON Schema may be sent, not all features are supported.
292+ // Specifically, only the following properties are supported:
293+ //
294+ // - `$id`
295+ // - `$defs`
296+ // - `$ref`
297+ // - `$anchor`
298+ // - `type`
299+ // - `format`
300+ // - `title`
301+ // - `description`
302+ // - `enum` (for strings and numbers)
303+ // - `items`
304+ // - `prefixItems`
305+ // - `minItems`
306+ // - `maxItems`
307+ // - `minimum`
308+ // - `maximum`
309+ // - `anyOf`
310+ // - `oneOf` (interpreted the same as `anyOf`)
311+ // - `properties`
312+ // - `additionalProperties`
313+ // - `required`
314+ //
315+ // The non-standard `propertyOrdering` property may also be set.
316+ //
317+ // Cyclic references are unrolled to a limited degree and, as such, may only
318+ // be used within non-required properties. (Nullable properties are not
319+ // sufficient.) If `$ref` is set on a sub-schema, no other properties, except
320+ // for than those starting as a `$`, may be set.
321+ optional google.protobuf.Value response_json_schema = 28
322+ [(google.api.field_behavior ) = OPTIONAL ];
323+
284324 // Optional. Routing configuration.
285325 optional RoutingConfig routing_config = 17
286326 [(google.api.field_behavior ) = OPTIONAL ];
0 commit comments