core.checkpoint_media module

Content-addressed media blobs referenced by durable checkpoint records.

exception core.checkpoint_media.CheckpointMediaError

Bases: RuntimeError

A checkpoint media reference could not be persisted or verified.

async core.checkpoint_media.externalize_sent_files(redis, files, *, ttl_seconds)

Store raw file bytes once and return metadata-only checkpoint entries.

Return type:

list[Any]

Parameters:
async core.checkpoint_media.hydrate_sent_files(redis, files)

Resolve and verify checkpoint media references for live consumers.

Return type:

list[Any]

Parameters:
async core.checkpoint_media.externalize_message_media(redis, messages, *, ttl_seconds)

Replace inline base64 data URIs in a transcript with blob references.

Return type:

list[Any]

Parameters:
async core.checkpoint_media.hydrate_message_media(redis, messages)

Restore checkpoint transcript media references to exact data URIs.

Return type:

list[Any]

Parameters: