(customInstructions?: string)
| 291 | } |
| 292 | |
| 293 | export function getCompactPrompt(customInstructions?: string): string { |
| 294 | let prompt = NO_TOOLS_PREAMBLE + BASE_COMPACT_PROMPT |
| 295 | |
| 296 | if (customInstructions && customInstructions.trim() !== '') { |
| 297 | prompt += `\n\nAdditional Instructions:\n${customInstructions}` |
| 298 | } |
| 299 | |
| 300 | prompt += NO_TOOLS_TRAILER |
| 301 | |
| 302 | return prompt |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Formats the compact summary by stripping the <analysis> drafting scratchpad |
no outgoing calls
no test coverage detected