diff --git a/google/genai/_interactions/resources/interactions.py b/google/genai/_interactions/resources/interactions.py index c173ebd1f..050185070 100644 --- a/google/genai/_interactions/resources/interactions.py +++ b/google/genai/_interactions/resources/interactions.py @@ -76,7 +76,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Omit = omit, @@ -143,7 +143,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -208,7 +208,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Omit = omit, @@ -275,7 +275,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -341,7 +341,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -406,7 +406,7 @@ def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Literal[True] | Omit = omit, @@ -728,7 +728,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Omit = omit, @@ -795,7 +795,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -860,7 +860,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Omit = omit, @@ -927,7 +927,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -993,7 +993,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, system_instruction: str | Omit = omit, @@ -1058,7 +1058,7 @@ async def create( previous_interaction_id: str | Omit = omit, response_format: object | Omit = omit, response_mime_type: str | Omit = omit, - response_modalities: List[Literal["text", "image", "audio"]] | Omit = omit, + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] | Omit = omit, service_tier: Literal["flex", "standard", "priority"] | Omit = omit, store: bool | Omit = omit, stream: Literal[False] | Literal[True] | Omit = omit, diff --git a/google/genai/_interactions/types/interaction.py b/google/genai/_interactions/types/interaction.py index 8ad8b8971..3e94dad97 100644 --- a/google/genai/_interactions/types/interaction.py +++ b/google/genai/_interactions/types/interaction.py @@ -132,7 +132,7 @@ class Interaction(BaseModel): response_mime_type: Optional[str] = None """The mime type of the response. This is required if response_format is set.""" - response_modalities: Optional[List[Literal["text", "image", "audio"]]] = None + response_modalities: Optional[List[Literal["text", "image", "audio", "video", "document"]]] = None """The requested modalities of the response (TEXT, IMAGE, AUDIO).""" role: Optional[str] = None diff --git a/google/genai/_interactions/types/interaction_create_params.py b/google/genai/_interactions/types/interaction_create_params.py index 13a2920c1..a1154741b 100644 --- a/google/genai/_interactions/types/interaction_create_params.py +++ b/google/genai/_interactions/types/interaction_create_params.py @@ -87,7 +87,7 @@ class BaseCreateModelInteractionParams(TypedDict, total=False): response_mime_type: str """The mime type of the response. This is required if response_format is set.""" - response_modalities: List[Literal["text", "image", "audio"]] + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] """The requested modalities of the response (TEXT, IMAGE, AUDIO).""" service_tier: Literal["flex", "standard", "priority"] @@ -157,7 +157,7 @@ class BaseCreateAgentInteractionParams(TypedDict, total=False): response_mime_type: str """The mime type of the response. This is required if response_format is set.""" - response_modalities: List[Literal["text", "image", "audio"]] + response_modalities: List[Literal["text", "image", "audio", "video", "document"]] """The requested modalities of the response (TEXT, IMAGE, AUDIO).""" service_tier: Literal["flex", "standard", "priority"] diff --git a/google/genai/_interactions/types/usage.py b/google/genai/_interactions/types/usage.py index 06b1ab9fb..61cf506a6 100644 --- a/google/genai/_interactions/types/usage.py +++ b/google/genai/_interactions/types/usage.py @@ -32,7 +32,7 @@ class CachedTokensByModality(BaseModel): """The token count for a single response modality.""" - modality: Optional[Literal["text", "image", "audio"]] = None + modality: Optional[Literal["text", "image", "audio", "video", "document"]] = None """The modality associated with the token count.""" tokens: Optional[int] = None @@ -42,7 +42,7 @@ class CachedTokensByModality(BaseModel): class InputTokensByModality(BaseModel): """The token count for a single response modality.""" - modality: Optional[Literal["text", "image", "audio"]] = None + modality: Optional[Literal["text", "image", "audio", "video", "document"]] = None """The modality associated with the token count.""" tokens: Optional[int] = None @@ -52,7 +52,7 @@ class InputTokensByModality(BaseModel): class OutputTokensByModality(BaseModel): """The token count for a single response modality.""" - modality: Optional[Literal["text", "image", "audio"]] = None + modality: Optional[Literal["text", "image", "audio", "video", "document"]] = None """The modality associated with the token count.""" tokens: Optional[int] = None @@ -62,7 +62,7 @@ class OutputTokensByModality(BaseModel): class ToolUseTokensByModality(BaseModel): """The token count for a single response modality.""" - modality: Optional[Literal["text", "image", "audio"]] = None + modality: Optional[Literal["text", "image", "audio", "video", "document"]] = None """The modality associated with the token count.""" tokens: Optional[int] = None diff --git a/google/genai/_interactions/types/usage_param.py b/google/genai/_interactions/types/usage_param.py index f18d07457..b2806aae5 100644 --- a/google/genai/_interactions/types/usage_param.py +++ b/google/genai/_interactions/types/usage_param.py @@ -32,7 +32,7 @@ class CachedTokensByModality(TypedDict, total=False): """The token count for a single response modality.""" - modality: Literal["text", "image", "audio"] + modality: Literal["text", "image", "audio", "video", "document"] """The modality associated with the token count.""" tokens: int @@ -42,7 +42,7 @@ class CachedTokensByModality(TypedDict, total=False): class InputTokensByModality(TypedDict, total=False): """The token count for a single response modality.""" - modality: Literal["text", "image", "audio"] + modality: Literal["text", "image", "audio", "video", "document"] """The modality associated with the token count.""" tokens: int @@ -52,7 +52,7 @@ class InputTokensByModality(TypedDict, total=False): class OutputTokensByModality(TypedDict, total=False): """The token count for a single response modality.""" - modality: Literal["text", "image", "audio"] + modality: Literal["text", "image", "audio", "video", "document"] """The modality associated with the token count.""" tokens: int @@ -62,7 +62,7 @@ class OutputTokensByModality(TypedDict, total=False): class ToolUseTokensByModality(TypedDict, total=False): """The token count for a single response modality.""" - modality: Literal["text", "image", "audio"] + modality: Literal["text", "image", "audio", "video", "document"] """The modality associated with the token count.""" tokens: int