refactor(skills): update routeSkillWithLLM to use RuntimeContext and streamline user message handling

This commit is contained in:
mlogclub
2026-04-17 18:57:34 +08:00
parent 51884f1bdf
commit 19848d031b
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func MatchSkill(execCtx context.Context, ctx RuntimeContext) (*models.SkillDefin
}
}
selected, routeTrace, err := routeSkillWithLLM(execCtx, ctx.AIConfig, ctx.UserMessage, candidates)
selected, routeTrace, err := routeSkillWithLLM(execCtx, ctx, candidates)
if routeTrace != nil {
trace.Status = routeTrace.Status
trace.SelectedSkillCode = routeTrace.SelectedSkillCode