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"`
}
Click to show internal directories.
Click to hide internal directories.