@@ -5932,6 +5932,37 @@ class ImageConfigDict(TypedDict, total=False):
59325932ImageConfigOrDict = Union[ImageConfig, ImageConfigDict]
59335933
59345934
5935+ class GenerationOutputConfig(_common.BaseModel):
5936+ """Configuration for persisting output assets to external storage."""
5937+
5938+ output_uri_prefix: Optional[str] = Field(
5939+ default=None,
5940+ description="""Optional. The Cloud Storage URI prefix or directory where
5941+ generated media assets should be written (e.g. "gs://my-bucket/prefix/").
5942+ Supported URI schemes: "gs://". When set, media bytes are written directly
5943+ to this location and returned as FileData with a file_uri instead of raw
5944+ inline bytes.
5945+ """,
5946+ )
5947+
5948+
5949+ class GenerationOutputConfigDict(TypedDict, total=False):
5950+ """Configuration for persisting output assets to external storage."""
5951+
5952+ output_uri_prefix: Optional[str]
5953+ """Optional. The Cloud Storage URI prefix or directory where
5954+ generated media assets should be written (e.g. "gs://my-bucket/prefix/").
5955+ Supported URI schemes: "gs://". When set, media bytes are written directly
5956+ to this location and returned as FileData with a file_uri instead of raw
5957+ inline bytes.
5958+ """
5959+
5960+
5961+ GenerationOutputConfigOrDict = Union[
5962+ GenerationOutputConfig, GenerationOutputConfigDict
5963+ ]
5964+
5965+
59355966class FileStatus(_common.BaseModel):
59365967 """Status of a File that uses a common error model."""
59375968
@@ -6756,6 +6787,12 @@ class GenerateContentConfig(_common.BaseModel):
67566787 billing apply to each request. Set to false to turn this off.
67576788 """,
67586789 )
6790+ generation_output_config: Optional[GenerationOutputConfig] = Field(
6791+ default=None,
6792+ description="""Optional. Configuration for persisting output assets to external
6793+ storage.
6794+ """,
6795+ )
67596796
67606797 @pydantic.field_validator('response_schema', mode='before')
67616798 @classmethod
@@ -6990,6 +7027,11 @@ class GenerateContentConfigDict(TypedDict, total=False):
69907027 billing apply to each request. Set to false to turn this off.
69917028 """
69927029
7030+ generation_output_config: Optional[GenerationOutputConfigDict]
7031+ """Optional. Configuration for persisting output assets to external
7032+ storage.
7033+ """
7034+
69937035
69947036GenerateContentConfigOrDict = Union[
69957037 GenerateContentConfig, GenerateContentConfigDict
0 commit comments