| 67 | // --------------------------------------------------------------------------- |
| 68 | |
| 69 | class TemplateStrategy implements SummarizationStrategy { |
| 70 | readonly type = 'template' as const; |
| 71 | |
| 72 | async init(): Promise<void> { |
| 73 | // Templates are instant — nothing to load |
| 74 | } |
| 75 | |
| 76 | async summarize(meta: SymbolMetadata): Promise<string> { |
| 77 | return summarizeFromMetadata(meta); |
| 78 | } |
| 79 | |
| 80 | async summarizeBatch(items: SymbolMetadata[]): Promise<string[]> { |
| 81 | return items.map(summarizeFromMetadata); |
| 82 | } |
| 83 | |
| 84 | async dispose(): Promise<void> {} |
| 85 | } |
| 86 | |
| 87 | // --------------------------------------------------------------------------- |
| 88 | // ML strategy — wraps FlanT5Summarizer under the new interface |
nothing calls this directly
no outgoing calls
no test coverage detected