Skip to main content

compaction_context_messages

Function compaction_context_messages 

Source
pub fn compaction_context_messages(summary_text: &str) -> Vec<Arc<Value>>
Expand description

The ONE canonical rendering of a compaction summary into model context: a sanitized <context-summary> user message plus the assistant acknowledgement. Every frontend and both transition policies (linked successor and in-place) share this shape — that is what makes their logical histories equivalent.