Skip to main content

build_compact_summary_prompt

Function build_compact_summary_prompt 

Source
pub fn build_compact_summary_prompt(messages: &[Message]) -> String
Expand description

Build a compact summary request: asks the LLM to summarize the conversation up to a certain point.

All message text is run through secret_masker before being passed to the summarizer, so secrets that appeared in tool output never end up baked into the summary.