From a8482dfecf1980b179979407975c179932393ba6 Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Wed, 29 Apr 2026 18:24:12 -0700 Subject: [PATCH] chore: Change type prepping to replace response_format with well-typed field. PiperOrigin-RevId: 907881286 --- .../_interactions/resources/interactions.py | 30 ------------------- .../genai/_interactions/types/interaction.py | 4 --- .../types/interaction_create_params.py | 8 ----- 3 files changed, 42 deletions(-) diff --git a/google/genai/_interactions/resources/interactions.py b/google/genai/_interactions/resources/interactions.py index a55f0cb25..1dbfa51b4 100644 --- a/google/genai/_interactions/resources/interactions.py +++ b/google/genai/_interactions/resources/interactions.py @@ -105,9 +105,6 @@ def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -177,9 +174,6 @@ def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -252,9 +246,6 @@ def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -331,9 +322,6 @@ def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -401,9 +389,6 @@ def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -801,9 +786,6 @@ async def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -873,9 +855,6 @@ async def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -948,9 +927,6 @@ async def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -1027,9 +1003,6 @@ async def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -1097,9 +1070,6 @@ async def create( previous_interaction_id: The ID of the previous interaction, if any. - response_format: Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - response_mime_type: The mime type of the response. This is required if response_format is set. response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO). diff --git a/google/genai/_interactions/types/interaction.py b/google/genai/_interactions/types/interaction.py index ed42e5476..02089fdbb 100644 --- a/google/genai/_interactions/types/interaction.py +++ b/google/genai/_interactions/types/interaction.py @@ -131,10 +131,6 @@ class Interaction(BaseModel): """The ID of the previous interaction, if any.""" response_format: Optional[object] = None - """ - Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - """ response_mime_type: Optional[str] = None """The mime type of the response. This is required if response_format is set.""" diff --git a/google/genai/_interactions/types/interaction_create_params.py b/google/genai/_interactions/types/interaction_create_params.py index 78a1bd718..ee764ee16 100644 --- a/google/genai/_interactions/types/interaction_create_params.py +++ b/google/genai/_interactions/types/interaction_create_params.py @@ -80,10 +80,6 @@ class BaseCreateModelInteractionParams(TypedDict, total=False): """The ID of the previous interaction, if any.""" response_format: object - """ - Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - """ response_mime_type: str """The mime type of the response. This is required if response_format is set.""" @@ -166,10 +162,6 @@ class BaseCreateAgentInteractionParams(TypedDict, total=False): """The ID of the previous interaction, if any.""" response_format: object - """ - Enforces that the generated response is a JSON object that complies with the - JSON schema specified in this field. - """ response_mime_type: str """The mime type of the response. This is required if response_format is set."""