@@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1beta1/openapi.proto";
2222import "google/cloud/aiplatform/v1beta1/tool.proto" ;
2323import "google/cloud/aiplatform/v1beta1/vertex_rag_data.proto" ;
2424import "google/protobuf/duration.proto" ;
25+ import "google/protobuf/struct.proto" ;
2526import "google/type/date.proto" ;
2627
2728option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1" ;
@@ -355,6 +356,45 @@ message GenerationConfig {
355356 // `application/json`: Schema for JSON response.
356357 optional Schema response_schema = 16 [(google.api.field_behavior ) = OPTIONAL ];
357358
359+ // Optional. Output schema of the generated response. This is an alternative
360+ // to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
361+ //
362+ // If set, `response_schema` must be omitted, but `response_mime_type` is
363+ // required.
364+ //
365+ // While the full JSON Schema may be sent, not all features are supported.
366+ // Specifically, only the following properties are supported:
367+ //
368+ // - `$id`
369+ // - `$defs`
370+ // - `$ref`
371+ // - `$anchor`
372+ // - `type`
373+ // - `format`
374+ // - `title`
375+ // - `description`
376+ // - `enum` (for strings and numbers)
377+ // - `items`
378+ // - `prefixItems`
379+ // - `minItems`
380+ // - `maxItems`
381+ // - `minimum`
382+ // - `maximum`
383+ // - `anyOf`
384+ // - `oneOf` (interpreted the same as `anyOf`)
385+ // - `properties`
386+ // - `additionalProperties`
387+ // - `required`
388+ //
389+ // The non-standard `propertyOrdering` property may also be set.
390+ //
391+ // Cyclic references are unrolled to a limited degree and, as such, may only
392+ // be used within non-required properties. (Nullable properties are not
393+ // sufficient.) If `$ref` is set on a sub-schema, no other properties, except
394+ // for than those starting as a `$`, may be set.
395+ optional google.protobuf.Value response_json_schema = 28
396+ [(google.api.field_behavior ) = OPTIONAL ];
397+
358398 // Optional. Routing configuration.
359399 optional RoutingConfig routing_config = 17
360400 [(google.api.field_behavior ) = OPTIONAL ];
0 commit comments