Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions google/genai/_interactions/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/audio_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/image_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions google/genai/_interactions/types/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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."""

Expand Down
1 change: 0 additions & 1 deletion google/genai/_interactions/types/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion google/genai/_interactions/types/model_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
164 changes: 2 additions & 162 deletions google/genai/_interactions/types/step_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,14 @@

# 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
from .._models import BaseModel
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",
Expand All @@ -44,19 +37,6 @@
"DeltaThoughtSignature",
"DeltaTextAnnotationDelta",
"DeltaArgumentsDelta",
"DeltaCodeExecutionCall",
"DeltaURLContextCall",
"DeltaGoogleSearchCall",
"DeltaMCPServerToolCall",
"DeltaFileSearchCall",
"DeltaGoogleMapsCall",
"DeltaCodeExecutionResult",
"DeltaURLContextResult",
"DeltaGoogleSearchResult",
"DeltaMCPServerToolResult",
"DeltaMCPServerToolResultResultFunctionResultSubcontentList",
"DeltaFileSearchResult",
"DeltaGoogleMapsResult",
]


Expand Down Expand Up @@ -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[
Expand All @@ -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"),
]
Expand Down
18 changes: 0 additions & 18 deletions google/genai/_interactions/types/video_response_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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.
"""
19 changes: 1 addition & 18 deletions google/genai/_interactions/types/video_response_format_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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.
"""
Loading