MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / buildSubSummaryPrompt

Function buildSubSummaryPrompt

packages/node-runtime/src/ai/summary/index.ts:192–198  ·  view source on GitHub ↗
(content: string, locale: string, strategy: SummaryStrategy)

Source from the content-addressed store, hash-verified

190}
191
192function 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
200function buildMergePrompt(
201 subSummaries: string[],

Callers 1

generateSessionSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected