Skip to main content

add_cache_markers

Function add_cache_markers 

Source
pub fn add_cache_markers(messages: &mut [Value])
Expand description

Add one Anthropic cache breakpoint at the frozen/live boundary.

Existing client cache markers are retained. The marker is attached to an existing text block so it does not alter provider message ordering.