Skip to main content

Interface: MediaFrame

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

Multimodal input: images, video frames, audio and files.

Extends​

Properties​

cacheControl?​

optional cacheControl?: boolean

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

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:7

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:8

Inherited from​

MediaImage.mediaType


timestamp​

timestamp: number

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

Timestamp in seconds from video start