Skip to content

Media

Schemas for media associated with multimodal content.

Media

Bases: BaseModel

A media asset associated with multimodal content.

Attributes:

Name Type Description
media_id str

A stable identifier derived from the media type and content.

media_type MediaType

The type of media, such as image, audio, etc.

media_content str

Base64 encoded string, URL, or object storage key pointing to the media content.

media_content_type MediaContentType

The type of media content, such as base64, url, or object storage key.

media_id property

Return a stable identifier derived from the media type and content.

Returns:

Name Type Description
str str

A stable identifier derived from the media type and content.

MediaContentType

Bases: StrEnum

Supported media content sources.

MediaType

Bases: StrEnum

Supported media types.