(systemPrompt: string, userPrompt: string)
| 12 | } |
| 13 | |
| 14 | async summarize(systemPrompt: string, userPrompt: string): Promise<string> { |
| 15 | return this.tryAll((p) => p.summarize(systemPrompt, userPrompt)); |
| 16 | } |
| 17 | |
| 18 | private async tryAll( |
| 19 | fn: (p: MemoryProvider) => Promise<string>, |