Skip to main content

compact

Function compact 

Source
pub fn compact(instructions: Option<&str>) -> String
Expand description

Build the prompt string for /compact.

Pass Some(instructions) to mirror the CLI’s /compact <instructions> form (the trailing text steers the summarizer); pass None for a default compaction. Empty or whitespace-only instructions collapse to the bare form.