| 155 | } |
| 156 | |
| 157 | QString ChatCompressor::buildCompressionPrompt() const |
| 158 | { |
| 159 | return QStringLiteral( |
| 160 | "Please create a comprehensive summary of our entire conversation above. " |
| 161 | "The summary should:\n" |
| 162 | "1. Preserve all important context, decisions, and key information\n" |
| 163 | "2. Maintain technical details, code snippets, file references, and specific examples\n" |
| 164 | "3. Keep the chronological flow of the discussion\n" |
| 165 | "4. Be significantly shorter than the original (aim for 30-40% of original length)\n" |
| 166 | "5. Be written in clear, structured format\n" |
| 167 | "6. Use markdown formatting for better readability\n\n" |
| 168 | "Create the summary now:"); |
| 169 | } |
| 170 | |
| 171 | void ChatCompressor::buildRequestPayload( |
| 172 | QJsonObject &payload, PluginLLMCore::PromptTemplate *promptTemplate) |
nothing calls this directly
no outgoing calls
no test coverage detected