From cae2e7ffb2659b82905d2d7407c2c407a2bf3fc5 Mon Sep 17 00:00:00 2001 From: Peter Morgan Date: Mon, 11 May 2026 07:34:31 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 913691711 --- google/genai/_interactions/types/__init__.py | 7 - .../types/audio_response_format.py | 2 +- .../types/audio_response_format_param.py | 2 +- .../types/image_response_format.py | 2 +- .../types/image_response_format_param.py | 2 +- .../genai/_interactions/types/interaction.py | 6 +- google/genai/_interactions/types/model.py | 1 - .../genai/_interactions/types/model_param.py | 1 - .../genai/_interactions/types/step_delta.py | 164 +----------------- .../types/video_response_format.py | 18 -- .../types/video_response_format_param.py | 19 +- 11 files changed, 10 insertions(+), 214 deletions(-) diff --git a/google/genai/_interactions/types/__init__.py b/google/genai/_interactions/types/__init__.py index 1cd5d77a7..d3e4de38e 100644 --- a/google/genai/_interactions/types/__init__.py +++ b/google/genai/_interactions/types/__init__.py @@ -57,13 +57,11 @@ from .generation_config import GenerationConfig as GenerationConfig from .model_output_step import ModelOutputStep as ModelOutputStep from .function_call_step import FunctionCallStep as FunctionCallStep -from .google_maps_result import GoogleMapsResult as GoogleMapsResult from .image_config_param import ImageConfigParam as ImageConfigParam from .text_content_param import TextContentParam as TextContentParam from .thought_step_param import ThoughtStepParam as ThoughtStepParam from .tool_choice_config import ToolChoiceConfig as ToolChoiceConfig from .url_citation_param import URLCitationParam as URLCitationParam -from .url_context_result import URLContextResult as URLContextResult from .allowed_tools_param import AllowedToolsParam as AllowedToolsParam from .audio_content_param import AudioContentParam as AudioContentParam from .file_citation_param import FileCitationParam as FileCitationParam @@ -74,7 +72,6 @@ from .webhook_ping_params import WebhookPingParams as WebhookPingParams from .dynamic_agent_config import DynamicAgentConfig as DynamicAgentConfig from .function_result_step import FunctionResultStep as FunctionResultStep -from .google_search_result import GoogleSearchResult as GoogleSearchResult from .place_citation_param import PlaceCitationParam as PlaceCitationParam from .text_response_format import TextResponseFormat as TextResponseFormat from .webhook_config_param import WebhookConfigParam as WebhookConfigParam @@ -111,9 +108,7 @@ from .deep_research_agent_config import DeepResearchAgentConfig as DeepResearchAgentConfig from .dynamic_agent_config_param import DynamicAgentConfigParam as DynamicAgentConfigParam from .function_result_step_param import FunctionResultStepParam as FunctionResultStepParam -from .google_maps_call_arguments import GoogleMapsCallArguments as GoogleMapsCallArguments from .text_response_format_param import TextResponseFormatParam as TextResponseFormatParam -from .url_context_call_arguments import URLContextCallArguments as URLContextCallArguments from .audio_response_format_param import AudioResponseFormatParam as AudioResponseFormatParam from .file_search_call_step_param import FileSearchCallStepParam as FileSearchCallStepParam from .google_maps_call_step_param import GoogleMapsCallStepParam as GoogleMapsCallStepParam @@ -122,8 +117,6 @@ from .mcp_server_tool_result_step import MCPServerToolResultStep as MCPServerToolResultStep from .url_context_call_step_param import URLContextCallStepParam as URLContextCallStepParam from .video_response_format_param import VideoResponseFormatParam as VideoResponseFormatParam -from .google_search_call_arguments import GoogleSearchCallArguments as GoogleSearchCallArguments -from .code_execution_call_arguments import CodeExecutionCallArguments as CodeExecutionCallArguments from .file_search_result_step_param import FileSearchResultStepParam as FileSearchResultStepParam from .google_maps_result_step_param import GoogleMapsResultStepParam as GoogleMapsResultStepParam from .google_search_call_step_param import GoogleSearchCallStepParam as GoogleSearchCallStepParam diff --git a/google/genai/_interactions/types/audio_response_format.py b/google/genai/_interactions/types/audio_response_format.py index 80dccaf0d..5d212d1d9 100644 --- a/google/genai/_interactions/types/audio_response_format.py +++ b/google/genai/_interactions/types/audio_response_format.py @@ -34,7 +34,7 @@ class AudioResponseFormat(BaseModel): Only applicable for compressed formats (MP3, Opus). """ - delivery: Optional[Literal["inline", "uri"]] = None + delivery: Optional[Literal["inline", "url"]] = None """The delivery mode for the audio output.""" mime_type: Optional[ diff --git a/google/genai/_interactions/types/audio_response_format_param.py b/google/genai/_interactions/types/audio_response_format_param.py index 0664d03c8..484f25e68 100644 --- a/google/genai/_interactions/types/audio_response_format_param.py +++ b/google/genai/_interactions/types/audio_response_format_param.py @@ -33,7 +33,7 @@ class AudioResponseFormatParam(TypedDict, total=False): Only applicable for compressed formats (MP3, Opus). """ - delivery: Literal["inline", "uri"] + delivery: Literal["inline", "url"] """The delivery mode for the audio output.""" mime_type: Literal["audio/mp3", "audio/ogg_opus", "audio/l16", "audio/wav", "audio/alaw", "audio/mulaw"] diff --git a/google/genai/_interactions/types/image_response_format.py b/google/genai/_interactions/types/image_response_format.py index 27ce056fd..4fdcdd51f 100644 --- a/google/genai/_interactions/types/image_response_format.py +++ b/google/genai/_interactions/types/image_response_format.py @@ -33,7 +33,7 @@ class ImageResponseFormat(BaseModel): ] = None """The aspect ratio for the image output.""" - delivery: Optional[Literal["inline", "uri"]] = None + delivery: Optional[Literal["inline", "url"]] = None """The delivery mode for the image output.""" image_size: Optional[Literal["512", "1K", "2K", "4K"]] = None diff --git a/google/genai/_interactions/types/image_response_format_param.py b/google/genai/_interactions/types/image_response_format_param.py index 149b6b582..cd893f76b 100644 --- a/google/genai/_interactions/types/image_response_format_param.py +++ b/google/genai/_interactions/types/image_response_format_param.py @@ -32,7 +32,7 @@ class ImageResponseFormatParam(TypedDict, total=False): ] """The aspect ratio for the image output.""" - delivery: Literal["inline", "uri"] + delivery: Literal["inline", "url"] """The delivery mode for the image output.""" image_size: Literal["512", "1K", "2K", "4K"] diff --git a/google/genai/_interactions/types/interaction.py b/google/genai/_interactions/types/interaction.py index 609c36c94..e459fbe71 100644 --- a/google/genai/_interactions/types/interaction.py +++ b/google/genai/_interactions/types/interaction.py @@ -81,9 +81,6 @@ class Interaction(BaseModel): status: Literal["in_progress", "requires_action", "completed", "failed", "cancelled", "incomplete"] """Required. Output only. The status of the interaction.""" - steps: List[Step] - """Required. Output only. The steps that make up the interaction.""" - updated: datetime """Required. @@ -130,6 +127,9 @@ class Interaction(BaseModel): service_tier: Optional[Literal["flex", "standard", "priority"]] = None """The service tier for the interaction.""" + steps: Optional[List[Step]] = None + """Output only. The steps that make up the interaction.""" + system_instruction: Optional[str] = None """System instruction for the interaction.""" diff --git a/google/genai/_interactions/types/model.py b/google/genai/_interactions/types/model.py index 41fec1398..f16bb176b 100644 --- a/google/genai/_interactions/types/model.py +++ b/google/genai/_interactions/types/model.py @@ -37,7 +37,6 @@ "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3.1-flash-image-preview", - "gemini-3.1-flash-lite", "gemini-3.1-flash-lite-preview", "gemini-3.1-flash-tts-preview", "lyria-3-clip-preview", diff --git a/google/genai/_interactions/types/model_param.py b/google/genai/_interactions/types/model_param.py index 59bdd9ccc..4cfe2d7ab 100644 --- a/google/genai/_interactions/types/model_param.py +++ b/google/genai/_interactions/types/model_param.py @@ -39,7 +39,6 @@ "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3.1-flash-image-preview", - "gemini-3.1-flash-lite", "gemini-3.1-flash-lite-preview", "gemini-3.1-flash-tts-preview", "lyria-3-clip-preview", diff --git a/google/genai/_interactions/types/step_delta.py b/google/genai/_interactions/types/step_delta.py index f87e117d2..7eee0a8fe 100644 --- a/google/genai/_interactions/types/step_delta.py +++ b/google/genai/_interactions/types/step_delta.py @@ -15,7 +15,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Dict, List, Union, Optional +from typing import List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from .._utils import PropertyInfo @@ -23,13 +23,6 @@ from .annotation import Annotation from .text_content import TextContent from .image_content import ImageContent -from .google_maps_result import GoogleMapsResult -from .url_context_result import URLContextResult -from .google_search_result import GoogleSearchResult -from .google_maps_call_arguments import GoogleMapsCallArguments -from .url_context_call_arguments import URLContextCallArguments -from .google_search_call_arguments import GoogleSearchCallArguments -from .code_execution_call_arguments import CodeExecutionCallArguments __all__ = [ "StepDelta", @@ -44,19 +37,6 @@ "DeltaThoughtSignature", "DeltaTextAnnotationDelta", "DeltaArgumentsDelta", - "DeltaCodeExecutionCall", - "DeltaURLContextCall", - "DeltaGoogleSearchCall", - "DeltaMCPServerToolCall", - "DeltaFileSearchCall", - "DeltaGoogleMapsCall", - "DeltaCodeExecutionResult", - "DeltaURLContextResult", - "DeltaGoogleSearchResult", - "DeltaMCPServerToolResult", - "DeltaMCPServerToolResultResultFunctionResultSubcontentList", - "DeltaFileSearchResult", - "DeltaGoogleMapsResult", ] @@ -179,135 +159,7 @@ class DeltaTextAnnotationDelta(BaseModel): class DeltaArgumentsDelta(BaseModel): type: Literal["arguments_delta"] - -class DeltaCodeExecutionCall(BaseModel): - arguments: CodeExecutionCallArguments - """The arguments to pass to the code execution.""" - - type: Literal["code_execution_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaURLContextCall(BaseModel): - arguments: URLContextCallArguments - """The arguments to pass to the URL context.""" - - type: Literal["url_context_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaGoogleSearchCall(BaseModel): - arguments: GoogleSearchCallArguments - """The arguments to pass to Google Search.""" - - type: Literal["google_search_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaMCPServerToolCall(BaseModel): - arguments: Dict[str, object] - - name: str - - server_name: str - - type: Literal["mcp_server_tool_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaFileSearchCall(BaseModel): - type: Literal["file_search_call"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaGoogleMapsCall(BaseModel): - type: Literal["google_maps_call"] - - arguments: Optional[GoogleMapsCallArguments] = None - """The arguments to pass to the Google Maps tool.""" - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaCodeExecutionResult(BaseModel): - result: str - - type: Literal["code_execution_result"] - - is_error: Optional[bool] = None - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaURLContextResult(BaseModel): - result: List[URLContextResult] - - type: Literal["url_context_result"] - - is_error: Optional[bool] = None - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaGoogleSearchResult(BaseModel): - result: List[GoogleSearchResult] - - type: Literal["google_search_result"] - - is_error: Optional[bool] = None - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -DeltaMCPServerToolResultResultFunctionResultSubcontentList: TypeAlias = Annotated[ - Union[TextContent, ImageContent], PropertyInfo(discriminator="type") -] - - -class DeltaMCPServerToolResult(BaseModel): - result: Union[List[DeltaMCPServerToolResultResultFunctionResultSubcontentList], str, object] - - type: Literal["mcp_server_tool_result"] - - name: Optional[str] = None - - server_name: Optional[str] = None - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaFileSearchResult(BaseModel): - result: List[object] - - type: Literal["file_search_result"] - - signature: Optional[str] = None - """A signature hash for backend validation.""" - - -class DeltaGoogleMapsResult(BaseModel): - type: Literal["google_maps_result"] - - result: Optional[List[GoogleMapsResult]] = None - """The results of the Google Maps.""" - - signature: Optional[str] = None - """A signature hash for backend validation.""" + partial_arguments: Optional[str] = None Delta: TypeAlias = Annotated[ @@ -321,18 +173,6 @@ class DeltaGoogleMapsResult(BaseModel): DeltaThoughtSignature, DeltaTextAnnotationDelta, DeltaArgumentsDelta, - DeltaCodeExecutionCall, - DeltaURLContextCall, - DeltaGoogleSearchCall, - DeltaMCPServerToolCall, - DeltaFileSearchCall, - DeltaGoogleMapsCall, - DeltaCodeExecutionResult, - DeltaURLContextResult, - DeltaGoogleSearchResult, - DeltaMCPServerToolResult, - DeltaFileSearchResult, - DeltaGoogleMapsResult, ], PropertyInfo(discriminator="type"), ] diff --git a/google/genai/_interactions/types/video_response_format.py b/google/genai/_interactions/types/video_response_format.py index fc18b745a..3729a5007 100644 --- a/google/genai/_interactions/types/video_response_format.py +++ b/google/genai/_interactions/types/video_response_format.py @@ -15,11 +15,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo - from .._models import BaseModel __all__ = ["VideoResponseFormat"] @@ -29,18 +26,3 @@ class VideoResponseFormat(BaseModel): """Configuration for video output format.""" type: Literal["video"] - - aspect_ratio: Optional[Literal["16:9", "9:16"]] = FieldInfo(alias="aspectRatio", default=None) - """The aspect ratio for the video output.""" - - delivery: Optional[Literal["inline", "uri"]] = None - """The delivery mode for the video output.""" - - duration: Optional[str] = None - """The duration for the video output.""" - - gcs_uri: Optional[str] = FieldInfo(alias="gcsUri", default=None) - """The GCS URI to store the video output. - - Required for Vertex if delivery mode is URI. - """ diff --git a/google/genai/_interactions/types/video_response_format_param.py b/google/genai/_interactions/types/video_response_format_param.py index 71b74d9d0..f53b1643f 100644 --- a/google/genai/_interactions/types/video_response_format_param.py +++ b/google/genai/_interactions/types/video_response_format_param.py @@ -17,9 +17,7 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["VideoResponseFormatParam"] @@ -28,18 +26,3 @@ class VideoResponseFormatParam(TypedDict, total=False): """Configuration for video output format.""" type: Required[Literal["video"]] - - aspect_ratio: Annotated[Literal["16:9", "9:16"], PropertyInfo(alias="aspectRatio")] - """The aspect ratio for the video output.""" - - delivery: Literal["inline", "uri"] - """The delivery mode for the video output.""" - - duration: str - """The duration for the video output.""" - - gcs_uri: Annotated[str, PropertyInfo(alias="gcsUri")] - """The GCS URI to store the video output. - - Required for Vertex if delivery mode is URI. - """