extractParticipants 提取参与者
(messages []types.Message)
| 284 | |
| 285 | // extractParticipants 提取参与者 |
| 286 | func 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 默认摘要系统提示词 |
| 303 | const defaultSummarySystemPrompt = `You are a conversation summarizer. Your task is to create concise, accurate summaries of conversations. |
no outgoing calls
no test coverage detected