(content: string, locale: string, strategy: SummaryStrategy)
| 190 | } |
| 191 | |
| 192 | function buildSubSummaryPrompt(content: string, locale: string, strategy: SummaryStrategy): string { |
| 193 | const limit = strategy === 'brief' ? 50 : 100 |
| 194 | if (locale.startsWith('zh')) { |
| 195 | return `请用一到两句话(不超过${limit}字)概括以下对话片段的主要内容,包括谁说了什么。只输出摘要内容,不要添加任何前缀、解释或引号。\n\n${content}` |
| 196 | } |
| 197 | return `Summarize this conversation segment in 1-2 sentences (max ${limit} characters), including who said what. Output only the summary, no prefix or quotes.\n\n${content}` |
| 198 | } |
| 199 | |
| 200 | function buildMergePrompt( |
| 201 | subSummaries: string[], |
no outgoing calls
no test coverage detected