evaluate

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESC                 = "\x1b"
	RESET_CURSOR_COLUMN = ESC + "[G"
)

Variables

This section is empty.

Functions

func NewEvaluateCommandHandler

func NewEvaluateCommandHandler(analyticsManager *analytics.AnalyticsManager) func(next interp.ExecHandlerFunc) interp.ExecHandlerFunc

func RunEvaluation

func RunEvaluation(analyticsManager *analytics.AnalyticsManager, limit int, customModelId string, iterations int) error

func SimilarityScore

func SimilarityScore(cmd1, cmd2 string) (float64, error)

SimilarityScore parses the two shell command strings, computes the tree edit distance, and then returns a similarity score between 0 and 1.

Types

type PredictedCommand added in v1.0.0

type PredictedCommand struct {
	PredictedCommand string `json:"predicted_command"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL