Skip to content

Commit

Permalink
feat: Added the new GenerationConfig.response_schema field
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 636671748
  • Loading branch information
Google APIs authored and Copybara-Service committed May 23, 2024
1 parent 89a8364 commit 9b92004
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/cloud/aiplatform/v1beta1/content.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.aiplatform.v1beta1;

import "google/api/field_behavior.proto";
import "google/cloud/aiplatform/v1beta1/openapi.proto";
import "google/cloud/aiplatform/v1beta1/tool.proto";
import "google/protobuf/duration.proto";
import "google/type/date.proto";
Expand Down Expand Up @@ -168,6 +169,15 @@ message GenerationConfig {
// otherwise the behavior is undefined.
// This is a preview feature.
string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL];

// Optional. The `Schema` object allows the definition of input and output
// data types. These types can be objects, but also primitives and arrays.
// Represents a select subset of an [OpenAPI 3.0 schema
// object](https://spec.openapis.org/oas/v3.0.3#schema).
// If set, a compatible response_mime_type must also be set.
// Compatible mimetypes:
// `application/json`: Schema for JSON response.
optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL];
}

// Safety settings.
Expand Down

0 comments on commit 9b92004

Please sign in to comment.