Exports
AssetMediaMetadata
Store inspected, non-content media properties safe for policy checks.— means no declared default):
Parameters and example
Parameters and example
AssetNotFoundError
Indicate that an asset is absent or inaccessible to the caller.Example
Example
AssetQuotaError
Indicate that an asset or store capacity limit was exceeded.Example
Example
AssetRecord
Describe a stored asset without exposing its binary content.— means no declared default):
Parameters and example
Parameters and example
AssetScope
Bind an asset to one authenticated user and session.— means no declared default):
Parameters and example
Parameters and example
AssetStorage
Persist and retrieve binary assets behind scoped opaque references.Example
Example
AssetStorage.start
Example
Example
AssetStorage.save
Parameters and example
Parameters and example
AssetStorage.stat
None when unavailable.
Parameters and example
Parameters and example
AssetStorage.open
Parameters and example
Parameters and example
AssetStorage.delete
Parameters and example
Parameters and example
AssetStorage.delete_scope
Parameters and example
Parameters and example
AssetStorage.close
Example
Example
AssetStore
Persist and retrieve binary assets behind scoped opaque references.Example
Example
AssetStore.start
Example
Example
AssetStore.save
Parameters and example
Parameters and example
AssetStore.stat
None when unavailable.
Parameters and example
Parameters and example
AssetStore.open
Parameters and example
Parameters and example
AssetStore.delete
Parameters and example
Parameters and example
AssetStore.delete_scope
Parameters and example
Parameters and example
AssetStore.close
Example
Example
AssetStoreError
Base error for asset-store operations without sensitive context.Example
Example
AssetURLStorage
Optional capability for model-call-time temporary URL generation.Example
Example
AssetURLStorage.signed_url
Parameters and example
Parameters and example
AssetValidationError
Indicate malformed asset input without reflecting the rejected value.Example
Example
DEFAULT_MAX_ASSET_BYTES
Example
Example
DEFAULT_MAX_TOTAL_ASSET_BYTES
Example
Example
MemoryAssetStore
Bounded, process-local asset storage intended for development and tests.Parameters and example
Parameters and example
MemoryAssetStore.total_bytes
Report committed bytes for development diagnostics.Example
Example
MemoryAssetStore.start
Example
Example
MemoryAssetStore.save
Parameters and example
Parameters and example
MemoryAssetStore.stat
Parameters and example
Parameters and example
MemoryAssetStore.open
Parameters and example
Parameters and example
MemoryAssetStore.delete
Parameters and example
Parameters and example
MemoryAssetStore.delete_scope
Parameters and example
Parameters and example
MemoryAssetStore.cleanup_expired
Example
Example
MemoryAssetStore.clear
Example
Example
MemoryAssetStore.close
Example
Example
Stored
Persist a media field using one explicitly named asset storage.expires_in controls the model-facing URL lifetime. retention
controls stored-byte lifetime; the two durations are deliberately
independent.
— means no declared default):
Parameters and example
Parameters and example
Stored.retention_seconds
Return the store contract’s numeric retention representation.Example
Example