Versions in this module Expand all Collapse all v1 v1.5.0 Apr 2, 2026 v0 v0.1.0 Apr 6, 2026 Changes in this version + var DefaultModels = []ModelCapability + type ComplexityFactors struct + Ambiguity float64 + CodeDepth float64 + ContextSize float64 + DomainSpecificity float64 + ReasoningDepth float64 + ToolUsage float64 + type ComplexityLevel int + const ComplexityAdvanced + const ComplexityComplex + const ComplexityExpert + const ComplexityFrontier + const ComplexityIntermediate + const ComplexityModerate + const ComplexityResearch + const ComplexitySimple + const ComplexitySpecialist + const ComplexityTrivial + type ComplexityScorer struct + func NewComplexityScorer() *ComplexityScorer + func (s *ComplexityScorer) Score(factors ComplexityFactors) ComplexityLevel + func (s *ComplexityScorer) ScoreFromText(text string) ComplexityLevel + type ModelCapability struct + CostPer1KInput float64 + CostPer1KOutput float64 + MaxComplexity ComplexityLevel + Name string + Strengths []string + type ModelRecommendationEngine struct + func NewModelRecommendationEngine() *ModelRecommendationEngine + func (e *ModelRecommendationEngine) GetAllModels() []ModelCapability + func (e *ModelRecommendationEngine) Recommend(complexity ComplexityLevel, currentModel string) *Recommendation + type Recommendation struct + ComplexityScore ComplexityLevel + Confidence float64 + CurrentModel string + EstimatedSavings float64 + Reasoning string + RecommendedModel string + type RightSizingRecord struct + Accepted bool + Command string + ComplexityScore int + CreatedAt time.Time + CurrentModel string + EstimatedSavings float64 + ID int64 + RecommendedModel string + type RightSizingStore struct + func NewRightSizingStore(db *sql.DB) *RightSizingStore + func (s *RightSizingStore) AcceptRecommendation(id int64) error + func (s *RightSizingStore) GetAccuracy() (float64, error) + func (s *RightSizingStore) GetRecent(limit int) ([]RightSizingRecord, error) + func (s *RightSizingStore) Init() error + func (s *RightSizingStore) Record(rec *RightSizingRecord) error