diff --git a/google/genai/_interactions/resources/interactions.py b/google/genai/_interactions/resources/interactions.py index bdd1c5353..a55f0cb25 100644 --- a/google/genai/_interactions/resources/interactions.py +++ b/google/genai/_interactions/resources/interactions.py @@ -75,7 +75,7 @@ def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -146,7 +146,7 @@ def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -222,7 +222,7 @@ def create( agent_config: interaction_create_params.AgentConfig | Omit = omit, background: bool | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -300,7 +300,7 @@ def create( agent_config: interaction_create_params.AgentConfig | Omit = omit, background: bool | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -370,7 +370,7 @@ def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -439,7 +439,7 @@ def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -771,7 +771,7 @@ async def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -842,7 +842,7 @@ async def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -918,7 +918,7 @@ async def create( agent_config: interaction_create_params.AgentConfig | Omit = omit, background: bool | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -996,7 +996,7 @@ async def create( agent_config: interaction_create_params.AgentConfig | Omit = omit, background: bool | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -1066,7 +1066,7 @@ async def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, @@ -1135,7 +1135,7 @@ async def create( background: bool | Omit = omit, generation_config: GenerationConfigParam | Omit = omit, previous_interaction_id: str | Omit = omit, - response_format: interaction_create_params.ResponseFormat | Omit = omit, + response_format: object | Omit = omit, response_mime_type: str | Omit = omit, response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, diff --git a/google/genai/_interactions/types/__init__.py b/google/genai/_interactions/types/__init__.py index 836301cc0..438c856fa 100644 --- a/google/genai/_interactions/types/__init__.py +++ b/google/genai/_interactions/types/__init__.py @@ -79,16 +79,12 @@ 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 -from .audio_response_format import AudioResponseFormat as AudioResponseFormat from .file_search_call_step import FileSearchCallStep as FileSearchCallStep from .google_maps_call_step import GoogleMapsCallStep as GoogleMapsCallStep -from .image_response_format import ImageResponseFormat as ImageResponseFormat from .interaction_sse_event import InteractionSSEEvent as InteractionSSEEvent from .url_context_call_step import URLContextCallStep as URLContextCallStep from .user_input_step_param import UserInputStepParam as UserInputStepParam -from .video_response_format import VideoResponseFormat as VideoResponseFormat from .webhook_create_params import WebhookCreateParams as WebhookCreateParams from .webhook_list_response import WebhookListResponse as WebhookListResponse from .webhook_ping_response import WebhookPingResponse as WebhookPingResponse @@ -116,15 +112,11 @@ from .function_result_step_param import FunctionResultStepParam as FunctionResultStepParam from .google_maps_call_arguments import GoogleMapsCallArguments as GoogleMapsCallArguments from .interaction_complete_event import InteractionCompleteEvent as InteractionCompleteEvent -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 -from .image_response_format_param import ImageResponseFormatParam as ImageResponseFormatParam 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 diff --git a/google/genai/_interactions/types/audio_response_format.py b/google/genai/_interactions/types/audio_response_format.py deleted file mode 100644 index a57727033..000000000 --- a/google/genai/_interactions/types/audio_response_format.py +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# 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__ = ["AudioResponseFormat"] - - -class AudioResponseFormat(BaseModel): - """Configuration for audio output format.""" - - type: Literal["audio"] - - bit_rate: Optional[int] = FieldInfo(alias="bitRate", default=None) - """Bit rate in bits per second (bps). - - Only applicable for compressed formats (MP3, Opus). - """ - - delivery: Optional[Literal["inline", "url"]] = None - """The delivery mode for the audio output.""" - - mime_type: Optional[ - Literal["audio/mp3", "audio/ogg_opus", "audio/l16", "audio/wav", "audio/alaw", "audio/mulaw"] - ] = FieldInfo(alias="mimeType", default=None) - """The MIME type of the audio output.""" - - sample_rate: Optional[int] = FieldInfo(alias="sampleRate", default=None) - """Sample rate in Hz.""" diff --git a/google/genai/_interactions/types/audio_response_format_param.py b/google/genai/_interactions/types/audio_response_format_param.py deleted file mode 100644 index f4d236c6d..000000000 --- a/google/genai/_interactions/types/audio_response_format_param.py +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._utils import PropertyInfo - -__all__ = ["AudioResponseFormatParam"] - - -class AudioResponseFormatParam(TypedDict, total=False): - """Configuration for audio output format.""" - - type: Required[Literal["audio"]] - - bit_rate: Annotated[int, PropertyInfo(alias="bitRate")] - """Bit rate in bits per second (bps). - - Only applicable for compressed formats (MP3, Opus). - """ - - delivery: Literal["inline", "url"] - """The delivery mode for the audio output.""" - - mime_type: Annotated[ - Literal["audio/mp3", "audio/ogg_opus", "audio/l16", "audio/wav", "audio/alaw", "audio/mulaw"], - PropertyInfo(alias="mimeType"), - ] - """The MIME type of the audio output.""" - - sample_rate: Annotated[int, PropertyInfo(alias="sampleRate")] - """Sample rate in Hz.""" diff --git a/google/genai/_interactions/types/image_response_format.py b/google/genai/_interactions/types/image_response_format.py deleted file mode 100644 index a78fba0be..000000000 --- a/google/genai/_interactions/types/image_response_format.py +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# 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__ = ["ImageResponseFormat"] - - -class ImageResponseFormat(BaseModel): - """Configuration for image output format.""" - - type: Literal["image"] - - aspect_ratio: Optional[ - Literal["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9", "1:8", "8:1", "1:4", "4:1"] - ] = FieldInfo(alias="aspectRatio", default=None) - """The aspect ratio for the image output.""" - - delivery: Optional[Literal["inline", "url"]] = None - """The delivery mode for the image output.""" - - image_size: Optional[Literal["512", "1K", "2K", "4K"]] = FieldInfo(alias="imageSize", default=None) - """The size of the image output.""" - - mime_type: Optional[Literal["image/jpeg"]] = FieldInfo(alias="mimeType", default=None) - """The MIME type of the image output.""" diff --git a/google/genai/_interactions/types/image_response_format_param.py b/google/genai/_interactions/types/image_response_format_param.py deleted file mode 100644 index f4fc55ee1..000000000 --- a/google/genai/_interactions/types/image_response_format_param.py +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._utils import PropertyInfo - -__all__ = ["ImageResponseFormatParam"] - - -class ImageResponseFormatParam(TypedDict, total=False): - """Configuration for image output format.""" - - type: Required[Literal["image"]] - - aspect_ratio: Annotated[ - Literal["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9", "1:8", "8:1", "1:4", "4:1"], - PropertyInfo(alias="aspectRatio"), - ] - """The aspect ratio for the image output.""" - - delivery: Literal["inline", "url"] - """The delivery mode for the image output.""" - - image_size: Annotated[Literal["512", "1K", "2K", "4K"], PropertyInfo(alias="imageSize")] - """The size of the image output.""" - - mime_type: Annotated[Literal["image/jpeg"], PropertyInfo(alias="mimeType")] - """The MIME type of the image output.""" diff --git a/google/genai/_interactions/types/interaction.py b/google/genai/_interactions/types/interaction.py index 233b6d68f..47789bdd7 100644 --- a/google/genai/_interactions/types/interaction.py +++ b/google/genai/_interactions/types/interaction.py @@ -33,13 +33,9 @@ from .webhook_config import WebhookConfig from .document_content import DocumentContent from .dynamic_agent_config import DynamicAgentConfig -from .text_response_format import TextResponseFormat -from .audio_response_format import AudioResponseFormat -from .image_response_format import ImageResponseFormat -from .video_response_format import VideoResponseFormat from .deep_research_agent_config import DeepResearchAgentConfig -__all__ = ["Interaction", "AgentConfig", "Input", "ResponseFormat", "ResponseFormatResponseFormatList"] +__all__ = ["Interaction", "AgentConfig", "Input"] AgentConfig: TypeAlias = Annotated[ Union[DynamicAgentConfig, DeepResearchAgentConfig], PropertyInfo(discriminator="type") @@ -49,19 +45,6 @@ str, List[Step], List[Content], TextContent, ImageContent, AudioContent, DocumentContent, VideoContent ] -ResponseFormatResponseFormatList: TypeAlias = Union[ - AudioResponseFormat, TextResponseFormat, ImageResponseFormat, VideoResponseFormat, object -] - -ResponseFormat: TypeAlias = Union[ - List[ResponseFormatResponseFormatList], - AudioResponseFormat, - TextResponseFormat, - ImageResponseFormat, - VideoResponseFormat, - object, -] - class Interaction(BaseModel): """The Interaction resource.""" @@ -107,7 +90,7 @@ class Interaction(BaseModel): previous_interaction_id: Optional[str] = None """The ID of the previous interaction, if any.""" - response_format: Optional[ResponseFormat] = None + response_format: Optional[object] = None """ Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. diff --git a/google/genai/_interactions/types/interaction_create_params.py b/google/genai/_interactions/types/interaction_create_params.py index 3c13e4b90..6956e20f2 100644 --- a/google/genai/_interactions/types/interaction_create_params.py +++ b/google/genai/_interactions/types/interaction_create_params.py @@ -32,17 +32,11 @@ from .document_content_param import DocumentContentParam from .generation_config_param import GenerationConfigParam from .dynamic_agent_config_param import DynamicAgentConfigParam -from .text_response_format_param import TextResponseFormatParam -from .audio_response_format_param import AudioResponseFormatParam -from .image_response_format_param import ImageResponseFormatParam -from .video_response_format_param import VideoResponseFormatParam from .deep_research_agent_config_param import DeepResearchAgentConfigParam __all__ = [ "BaseCreateModelInteractionParams", "Input", - "ResponseFormat", - "ResponseFormatResponseFormatList", "BaseCreateAgentInteractionParams", "AgentConfig", "CreateModelInteractionParamsNonStreaming", @@ -70,7 +64,7 @@ class BaseCreateModelInteractionParams(TypedDict, total=False): previous_interaction_id: str """The ID of the previous interaction, if any.""" - response_format: ResponseFormat + response_format: object """ Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. @@ -113,19 +107,6 @@ class BaseCreateModelInteractionParams(TypedDict, total=False): VideoContentParam, ] -ResponseFormatResponseFormatList: TypeAlias = Union[ - AudioResponseFormatParam, TextResponseFormatParam, ImageResponseFormatParam, VideoResponseFormatParam, object -] - -ResponseFormat: TypeAlias = Union[ - Iterable[ResponseFormatResponseFormatList], - AudioResponseFormatParam, - TextResponseFormatParam, - ImageResponseFormatParam, - VideoResponseFormatParam, - object, -] - class BaseCreateAgentInteractionParams(TypedDict, total=False): api_version: str @@ -154,7 +135,7 @@ class BaseCreateAgentInteractionParams(TypedDict, total=False): previous_interaction_id: str """The ID of the previous interaction, if any.""" - response_format: ResponseFormat + response_format: object """ Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. diff --git a/google/genai/_interactions/types/text_response_format.py b/google/genai/_interactions/types/text_response_format.py deleted file mode 100644 index 57e16a0e3..000000000 --- a/google/genai/_interactions/types/text_response_format.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Dict, Optional -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from .._models import BaseModel - -__all__ = ["TextResponseFormat"] - - -class TextResponseFormat(BaseModel): - """Configuration for text output format.""" - - type: Literal["text"] - - mime_type: Optional[Literal["application/json", "text/plain"]] = FieldInfo(alias="mimeType", default=None) - """The MIME type of the text output.""" - - schema_: Optional[Dict[str, object]] = FieldInfo(alias="schema", default=None) - """The JSON schema that the output should conform to. - - Only applicable when mime_type is application/json. - """ diff --git a/google/genai/_interactions/types/text_response_format_param.py b/google/genai/_interactions/types/text_response_format_param.py deleted file mode 100644 index 3b137b332..000000000 --- a/google/genai/_interactions/types/text_response_format_param.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Dict -from typing_extensions import Literal, Required, Annotated, TypedDict - -from .._utils import PropertyInfo - -__all__ = ["TextResponseFormatParam"] - - -class TextResponseFormatParam(TypedDict, total=False): - """Configuration for text output format.""" - - type: Required[Literal["text"]] - - mime_type: Annotated[Literal["application/json", "text/plain"], PropertyInfo(alias="mimeType")] - """The MIME type of the text output.""" - - schema: Dict[str, object] - """The JSON schema that the output should conform to. - - Only applicable when mime_type is application/json. - """ diff --git a/google/genai/_interactions/types/video_response_format.py b/google/genai/_interactions/types/video_response_format.py deleted file mode 100644 index 3729a5007..000000000 --- a/google/genai/_interactions/types/video_response_format.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import Literal - -from .._models import BaseModel - -__all__ = ["VideoResponseFormat"] - - -class VideoResponseFormat(BaseModel): - """Configuration for video output format.""" - - type: Literal["video"] diff --git a/google/genai/_interactions/types/video_response_format_param.py b/google/genai/_interactions/types/video_response_format_param.py deleted file mode 100644 index f53b1643f..000000000 --- a/google/genai/_interactions/types/video_response_format_param.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, Required, TypedDict - -__all__ = ["VideoResponseFormatParam"] - - -class VideoResponseFormatParam(TypedDict, total=False): - """Configuration for video output format.""" - - type: Required[Literal["video"]]