Skip to main content

COMPACTION_SUMMARY_PREFIX

Constant COMPACTION_SUMMARY_PREFIX 

Source
pub const COMPACTION_SUMMARY_PREFIX: &str = "Summary of the earlier conversation (auto-generated by compaction):";
Expand description

The marker AgentMessage::summary prefixes onto a compaction summary. A summary is an ordinary User message with no distinguishing field, so this string IS the discriminator: readers that must not mistake a summary for something the user typed (crate::title::excerpt, main.rs::first_user_line_of) match on it.

One literal, one source: AgentMessage::summary builds its text from it, and crate::title re-exports it for the CLI, which must not depend on message directly.