Files
slogan/styleagent/agent/scoring_engine.go
T

13 lines
328 B
Go

package agent
// Score 总分(100 分制)
func Score(c *CandidateOutfit, ctx *ScoreContext) int {
return weatherScore(*c, *ctx) + occasionScore(*c, *ctx) + colorScore(*c) +
completenessScore(*c) + styleScore(*c, *ctx)
}
// IsPass 是否达到阈值
func IsPass(score, threshold int) bool {
return score >= threshold
}