Skip to main content

transform_replay_content

Function transform_replay_content 

Source
fn transform_replay_content(content: Vec<ContentBlock>) -> Vec<ContentBlock>
Expand description

Apply the replay-specific content-block transform: an attachment block keeps its mime and the size its payload weighed, and loses the payload itself.

A queued prompt is walked too: its prompt is a content-block list, and an image or document inside it is the same attachment row a typed turn’s block draws - client/src/chat/units.ts reads both through attachedFile. Other variants pass through unchanged.