(prompt: string)
| 48 | |
| 49 | /** A short follow-up that needs the turns before it: "und", "mehr", "und was noch?", "and?", "more". */ |
| 50 | export function contextFreeFollowUp(prompt: string): boolean { |
| 51 | return FOLLOW_UPS.has(prompt.toLowerCase().replace(/[?!.,;:…]+/g, ' ').replace(/\s+/g, ' ').trim()); |
| 52 | } |
| 53 | |
| 54 | /** A question without its own context follows up on explicitly attached code or context |
| 55 | * in the same view. A selection or file that is gone leaves nothing to follow up on. */ |
no outgoing calls
no test coverage detected