Skip to content

Commit 9b92004

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added the new GenerationConfig.response_schema field
PiperOrigin-RevId: 636671748
1 parent 89a8364 commit 9b92004

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.aiplatform.v1beta1;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/cloud/aiplatform/v1beta1/openapi.proto";
2021
import "google/cloud/aiplatform/v1beta1/tool.proto";
2122
import "google/protobuf/duration.proto";
2223
import "google/type/date.proto";
@@ -168,6 +169,15 @@ message GenerationConfig {
168169
// otherwise the behavior is undefined.
169170
// This is a preview feature.
170171
string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL];
172+
173+
// Optional. The `Schema` object allows the definition of input and output
174+
// data types. These types can be objects, but also primitives and arrays.
175+
// Represents a select subset of an [OpenAPI 3.0 schema
176+
// object](https://spec.openapis.org/oas/v3.0.3#schema).
177+
// If set, a compatible response_mime_type must also be set.
178+
// Compatible mimetypes:
179+
// `application/json`: Schema for JSON response.
180+
optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL];
171181
}
172182

173183
// Safety settings.

0 commit comments

Comments
 (0)