From eb73db2c56a54f9f86c07149cf8e104bc442d8da Mon Sep 17 00:00:00 2001 From: Jaycee Li Date: Wed, 8 Jul 2026 09:44:53 -0700 Subject: [PATCH] chore: Rename TextResponseFormat.schema to TextResponseFormat.jsonSchema to avoid naming collision PiperOrigin-RevId: 944549491 --- google/genai/types.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/google/genai/types.py b/google/genai/types.py index eb4cc590b..611c82d0a 100644 --- a/google/genai/types.py +++ b/google/genai/types.py @@ -10837,7 +10837,11 @@ class TextResponseFormat(_common.BaseModel): default=None, description="""Optional. The IANA standard MIME type of the response.""", ) - schema: Optional[Any] = Field(default=None, description="""Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.""") # type: ignore[assignment] + jsonSchema: Optional[Any] = Field( + alias='schema', + default=None, + description="""Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.""", + ) class TextResponseFormatDict(TypedDict, total=False):