Skip to content

Commit d47a5be

Browse files
yinghsienwucopybara-github
authored andcommitted
Copybara import of the project:
-- 4cc1a84 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 44c1020 by Amy Wu <[email protected]>: Update snippet_metadata_google.cloud.aiplatform.v1.json -- be2c367 by Amy Wu <[email protected]>: Update snippet_metadata_google.cloud.aiplatform.v1beta1.json COPYBARA_INTEGRATE_REVIEW=#3772 from googleapis:owl-bot-copy 444a841 PiperOrigin-RevId: 637010787
1 parent f15f3e0 commit d47a5be

File tree

2 files changed

+664
-0
lines changed

2 files changed

+664
-0
lines changed

google/cloud/aiplatform_v1beta1/types/content.py

+18
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import proto # type: ignore
2121

22+
from google.cloud.aiplatform_v1beta1.types import openapi
2223
from google.cloud.aiplatform_v1beta1.types import tool
2324
from google.protobuf import duration_pb2 # type: ignore
2425
from google.type import date_pb2 # type: ignore
@@ -309,6 +310,17 @@ class GenerationConfig(proto.Message):
309310
The model needs to be prompted to output the appropriate
310311
response type, otherwise the behavior is undefined. This
311312
is a preview feature.
313+
response_schema (google.cloud.aiplatform_v1beta1.types.Schema):
314+
Optional. The ``Schema`` object allows the definition of
315+
input and output data types. These types can be objects, but
316+
also primitives and arrays. Represents a select subset of an
317+
`OpenAPI 3.0 schema
318+
object <https://spec.openapis.org/oas/v3.0.3#schema>`__. If
319+
set, a compatible response_mime_type must also be set.
320+
Compatible mimetypes: ``application/json``: Schema for JSON
321+
response.
322+
323+
This field is a member of `oneof`_ ``_response_schema``.
312324
"""
313325

314326
temperature: float = proto.Field(
@@ -354,6 +366,12 @@ class GenerationConfig(proto.Message):
354366
proto.STRING,
355367
number=13,
356368
)
369+
response_schema: openapi.Schema = proto.Field(
370+
proto.MESSAGE,
371+
number=16,
372+
optional=True,
373+
message=openapi.Schema,
374+
)
357375

358376

359377
class SafetySetting(proto.Message):

0 commit comments

Comments
 (0)