(systemPrompt: string)
| 22 | }; |
| 23 | |
| 24 | export function getRequiredStreamsForPrompt(systemPrompt: string): PseudoStreamType[] { |
| 25 | return Object.entries(STREAM_REQUIREMENTS_MAP) |
| 26 | .filter(([placeholder]) => new RegExp(`\\${placeholder}(?![A-Z_])`).test(systemPrompt)) |
| 27 | .map(([_, streamType]) => streamType); |
| 28 | } |
| 29 | |
| 30 | const activeLoops: Record<string, { |
| 31 | intervalId: number | null, |
no test coverage detected