Skip to content

Commit aa57b50

Browse files
authored
Merge branch 'googleapis:main' into main
2 parents e290f46 + 142276e commit aa57b50

File tree

9 files changed

+21
-3
lines changed

9 files changed

+21
-3
lines changed

google/genai/_interactions/types/audio_content.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ class AudioContent(BaseModel):
3030
type: Literal["audio"]
3131

3232
data: Optional[str] = None
33+
"""The audio content."""
3334

3435
mime_type: Optional[AudioMimeType] = None
3536
"""The mime type of the audio."""
3637

3738
uri: Optional[str] = None
39+
"""The URI of the audio."""

google/genai/_interactions/types/audio_content_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ class AudioContentParam(TypedDict, total=False):
3434
type: Required[Literal["audio"]]
3535

3636
data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37+
"""The audio content."""
3738

3839
mime_type: AudioMimeTypeParam
3940
"""The mime type of the audio."""
4041

4142
uri: str
43+
"""The URI of the audio."""
4244

4345

4446
set_pydantic_config(AudioContentParam, {"arbitrary_types_allowed": True})

google/genai/_interactions/types/document_content.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ class DocumentContent(BaseModel):
3030
type: Literal["document"]
3131

3232
data: Optional[str] = None
33+
"""The document content."""
3334

3435
mime_type: Optional[DocumentMimeType] = None
3536
"""The mime type of the document."""
3637

3738
uri: Optional[str] = None
39+
"""The URI of the document."""

google/genai/_interactions/types/document_content_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ class DocumentContentParam(TypedDict, total=False):
3434
type: Required[Literal["document"]]
3535

3636
data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37+
"""The document content."""
3738

3839
mime_type: DocumentMimeTypeParam
3940
"""The mime type of the document."""
4041

4142
uri: str
43+
"""The URI of the document."""
4244

4345

4446
set_pydantic_config(DocumentContentParam, {"arbitrary_types_allowed": True})

google/genai/_interactions/types/image_content.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ImageContent(BaseModel):
3030
type: Literal["image"]
3131

3232
data: Optional[str] = None
33+
"""The image content."""
3334

3435
mime_type: Optional[ImageMimeType] = None
3536
"""The mime type of the image."""
@@ -38,3 +39,4 @@ class ImageContent(BaseModel):
3839
"""The resolution of the media."""
3940

4041
uri: Optional[str] = None
42+
"""The URI of the image."""

google/genai/_interactions/types/image_content_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ImageContentParam(TypedDict, total=False):
3434
type: Required[Literal["image"]]
3535

3636
data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37+
"""The image content."""
3738

3839
mime_type: ImageMimeTypeParam
3940
"""The mime type of the image."""
@@ -42,6 +43,7 @@ class ImageContentParam(TypedDict, total=False):
4243
"""The resolution of the media."""
4344

4445
uri: str
46+
"""The URI of the image."""
4547

4648

4749
set_pydantic_config(ImageContentParam, {"arbitrary_types_allowed": True})

google/genai/_interactions/types/interaction_sse_event.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1717

1818
from typing import Union
19-
from typing_extensions import TypeAlias
19+
from typing_extensions import Annotated, TypeAlias
2020

21+
from .._utils import PropertyInfo
2122
from .error_event import ErrorEvent
2223
from .content_stop import ContentStop
2324
from .content_delta import ContentDelta
@@ -27,6 +28,7 @@
2728

2829
__all__ = ["InteractionSSEEvent"]
2930

30-
InteractionSSEEvent: TypeAlias = Union[
31-
InteractionEvent, InteractionStatusUpdate, ContentStart, ContentDelta, ContentStop, ErrorEvent
31+
InteractionSSEEvent: TypeAlias = Annotated[
32+
Union[InteractionEvent, InteractionStatusUpdate, ContentStart, ContentDelta, ContentStop, ErrorEvent],
33+
PropertyInfo(discriminator="event_type"),
3234
]

google/genai/_interactions/types/video_content.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class VideoContent(BaseModel):
3030
type: Literal["video"]
3131

3232
data: Optional[str] = None
33+
"""The video content."""
3334

3435
mime_type: Optional[VideoMimeType] = None
3536
"""The mime type of the video."""
@@ -38,3 +39,4 @@ class VideoContent(BaseModel):
3839
"""The resolution of the media."""
3940

4041
uri: Optional[str] = None
42+
"""The URI of the video."""

google/genai/_interactions/types/video_content_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class VideoContentParam(TypedDict, total=False):
3434
type: Required[Literal["video"]]
3535

3636
data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37+
"""The video content."""
3738

3839
mime_type: VideoMimeTypeParam
3940
"""The mime type of the video."""
@@ -42,6 +43,7 @@ class VideoContentParam(TypedDict, total=False):
4243
"""The resolution of the media."""
4344

4445
uri: str
46+
"""The URI of the video."""
4547

4648

4749
set_pydantic_config(VideoContentParam, {"arbitrary_types_allowed": True})

0 commit comments

Comments
 (0)