historybloat

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryAnalyzer

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

func NewHistoryAnalyzer

func NewHistoryAnalyzer() *HistoryAnalyzer

func NewHistoryAnalyzerWithThreshold

func NewHistoryAnalyzerWithThreshold(threshold float64) *HistoryAnalyzer

func (*HistoryAnalyzer) Analyze

func (a *HistoryAnalyzer) Analyze(input string) *HistoryBloatReport

type HistoryBloatReport

type HistoryBloatReport struct {
	TotalTokens          int     `json:"total_tokens"`
	HistoryTokens        int     `json:"history_tokens"`
	HistoryPercentage    float64 `json:"history_percentage"`
	IsBloated            bool    `json:"is_bloated"`
	RedundantEntries     int     `json:"redundant_entries"`
	CompressionPotential int     `json:"compression_potential_tokens"`
	Recommendation       string  `json:"recommendation"`
}

Jump to

Keyboard shortcuts

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