Move HeuristicScores type and ScoreHeuristic logic into pkg/heuristic with zero external deps (stdlib only). pkg/lem delegates via type alias and wrapper function — fully backward compatible. Enables EaaS to cross-compile for Linux without dragging in go-ml/go-mlx/go-duckdb. Also adds missing //go:build tag to backend_mlxlm.go. Co-Authored-By: Virgil <virgil@lethean.io>
9 lines
281 B
Go
9 lines
281 B
Go
package lem
|
|
|
|
import "forge.lthn.ai/lthn/lem/pkg/heuristic"
|
|
|
|
// ScoreHeuristic delegates to the heuristic subpackage.
|
|
// Existing callers of lem.ScoreHeuristic() continue to work unchanged.
|
|
func ScoreHeuristic(response string) *HeuristicScores {
|
|
return heuristic.Score(response)
|
|
}
|