stynx_code_compact/
prompt.rs1
2pub fn compaction_system_prompt() -> String {
3 "You are a summarization assistant. Your job is to produce a concise summary of a \
4 conversation between a user and an AI assistant. Focus on:\n\
5 - Key decisions made\n\
6 - Important facts and context\n\
7 - File paths and code changes discussed\n\
8 - Errors encountered and their resolutions\n\
9 - Any pending tasks or next steps\n\n\
10 Be concise but preserve all information needed to continue the conversation."
11 .to_string()
12}
13
14pub fn compaction_user_prompt(conversation_text: &str) -> String {
15 format!(
16 "Please provide a concise summary of the following conversation so far. \
17 Focus on key decisions, facts, and context that would be needed to continue \
18 the conversation:\n\n{conversation_text}"
19 )
20}