recommendations

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckEngine

type CheckEngine struct {
	// contains filtered or unexported fields
}

func DefaultChecks

func DefaultChecks() *CheckEngine

func NewCheckEngine

func NewCheckEngine() *CheckEngine

func (*CheckEngine) Register

func (e *CheckEngine) Register(check func() CheckResult)

func (*CheckEngine) Run

type CheckID

type CheckID string
const (
	CheckWhitespace      CheckID = "whitespace_optimization"
	CheckDuplicate       CheckID = "duplicate_removal"
	CheckModelRightSize  CheckID = "model_right_sizing"
	CheckHistoryCompact  CheckID = "history_compaction"
	CheckToolOutputPrune CheckID = "tool_output_pruning"
	CheckCacheUtil       CheckID = "cache_utilization"
	CheckPresetOpt       CheckID = "preset_optimization"
	CheckFilterTuning    CheckID = "filter_tuning"
	CheckBudgetAlign     CheckID = "budget_alignment"
	CheckProviderSelect  CheckID = "provider_selection"
	CheckStreamOpt       CheckID = "streaming_optimization"
	CheckCompressionMode CheckID = "compression_mode_selection"
)

type CheckResult

type CheckResult struct {
	ID          CheckID `json:"id"`
	Passed      bool    `json:"passed"`
	Description string  `json:"description"`
	Savings     int     `json:"estimated_savings_tokens"`
	Suggestion  string  `json:"suggestion"`
}

type RecommendationReport

type RecommendationReport struct {
	TotalChecks  int           `json:"total_checks"`
	PassedChecks int           `json:"passed_checks"`
	FailedChecks int           `json:"failed_checks"`
	TotalSavings int           `json:"total_estimated_savings"`
	OverallScore float64       `json:"overall_score"`
	Results      []CheckResult `json:"results"`
}

Jump to

Keyboard shortcuts

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