Skip to main content

format_paste_blocks

Function format_paste_blocks 

Source
pub fn format_paste_blocks(blocks: &[PasteBlock]) -> Option<String>
Expand description

Format paste blocks into semantically tagged XML for the LLM.

Each block is wrapped in <reference type="pasted" chars="N">...</reference> so the model can distinguish pasted reference material from direct instructions.