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