Skip to main content

Interface: MediaFrame

Defined in: packages/core/src/types/media.ts:24

Video frame with timestamp Extends MediaImage with temporal information

Extends

Properties

cacheControl?

optional cacheControl?: boolean

Defined in: packages/core/src/types/media.ts:17

Enable provider-side caching (e.g., Anthropic ephemeral cache). Reduces input token costs ~90% on repeated use within the cache TTL.

Inherited from

MediaImage.cacheControl


data

data: string | Uint8Array<ArrayBufferLike> | Blob

Defined in: packages/core/src/types/media.ts:13

Base64 string, raw bytes, Blob, or URL string

Inherited from

MediaImage.data


mediaType

mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"

Defined in: packages/core/src/types/media.ts:15

Image format

Inherited from

MediaImage.mediaType


timestamp

timestamp: number

Defined in: packages/core/src/types/media.ts:26

Timestamp in seconds from video start