MCPcopy Create free account
hub / github.com/astercloud/aster / extractParticipants

Function extractParticipants

pkg/session/summary.go:286–300  ·  view source on GitHub ↗

extractParticipants 提取参与者

(messages []types.Message)

Source from the content-addressed store, hash-verified

284
285// extractParticipants 提取参与者
286func extractParticipants(messages []types.Message) []string {
287 participantSet := make(map[string]bool)
288
289 for _, msg := range messages {
290 role := string(msg.Role)
291 participantSet[role] = true
292 }
293
294 participants := make([]string, 0, len(participantSet))
295 for participant := range participantSet {
296 participants = append(participants, participant)
297 }
298
299 return participants
300}
301
302// defaultSummarySystemPrompt 默认摘要系统提示词
303const defaultSummarySystemPrompt = `You are a conversation summarizer. Your task is to create concise, accurate summaries of conversations.

Callers 2

SummarizeSessionMethod · 0.85
SummarizeIncrementalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected