Skip to content
Merged
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
24 changes: 12 additions & 12 deletions google/genai/_interactions/resources/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion google/genai/_interactions/types/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions google/genai/_interactions/types/interaction_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down
8 changes: 4 additions & 4 deletions google/genai/_interactions/types/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions google/genai/_interactions/types/usage_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading