Skip to main content

Interface: MediaImage

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

Image data with media type

Extended by

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.


data

data: string | Uint8Array<ArrayBufferLike> | Blob

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

Base64 string, raw bytes, Blob, or URL string


mediaType

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

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

Image format