feat(skill): refactor candidateLoader and update loadCandidateSkills to use getSkillByID

This commit is contained in:
mlogclub
2026-04-17 17:23:29 +08:00
parent a601fa707f
commit c396a4a5e3
3 changed files with 9 additions and 9 deletions
+1
View File
@@ -28,6 +28,7 @@ func routeSkillWithLLM(ctx context.Context, aiConfig *models.AIConfig, userMessa
trace.Status = "empty_user_message"
return nil, trace, nil
}
// TODO 系统体是指为什么不是配置在AIAgent中的?
systemPrompt := "你是客服技能路由器。你只能在候选 Skill 中选择一个最合适的 skillCode,或者返回 NONE。只有当用户问题与 Skill 的职责边界明确匹配时才选择;如果不明确、信息不足、多个 Skill 都不够确定,就返回 NONE。输出只能是 skillCode 或 NONE,不能输出其他内容。"
userPrompt := buildSkillRoutePrompt(userMessage, candidates)
startedAt := time.Now()