Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + type ConsolidatedMemory struct + Category string + Confidence float64 + Content string + CreatedAt time.Time + ExpiresAt *time.Time + ID string + References []string + type ConsolidatorStats struct + AvgConfidence float64 + ConsolidatedCount int + ConventionCount int + DecisionCount int + FactCount int + LastConsolidation time.Time + ProcessedCount int + RawCount int + SkillCount int + WarningCount int + type Experience struct + Approach string + CreatedAt time.Time + Duration time.Duration + FilesModified []string + ID string + Outcome string + Score float64 + Steps []string + Tags []string + Task string + TokensUsed int + ToolsUsed []string + UsedCount int + type ExperienceStats struct + AvgDuration time.Duration + AvgScore float64 + AvgTokens int + ByOutcome map[string]int + TopTags []string + TopTools []string + TotalExperiences int + type ExperienceStore struct + Dir string + Experiences []*Experience + func NewExperienceStore(dir string) *ExperienceStore + func (es *ExperienceStore) BuildExperienceContext(task string, maxTokens int) string + func (es *ExperienceStore) Deduplicate() int + func (es *ExperienceStore) FindRelevant(task string, limit int) []*Experience + func (es *ExperienceStore) Generalize(exp *Experience) *Experience + func (es *ExperienceStore) Load() error + func (es *ExperienceStore) Prune(maxAge time.Duration, minScore float64) int + func (es *ExperienceStore) Record(task, approach, outcome string, steps, tools, files []string, tokens int, ...) *Experience + func (es *ExperienceStore) Save() error + func (es *ExperienceStore) Stats() ExperienceStats + type KnowledgeBase struct + Categories map[string][]string + Dir string + Entries map[string]*KnowledgeEntry + func NewKnowledgeBase(dir string) *KnowledgeBase + func (kb *KnowledgeBase) Add(entry *KnowledgeEntry) error + func (kb *KnowledgeBase) BuildContextForTask(task string, maxTokens int) string + func (kb *KnowledgeBase) ExtractFromSession(messages []string, outcome string) []*KnowledgeEntry + func (kb *KnowledgeBase) FormatEntry(entry *KnowledgeEntry) string + func (kb *KnowledgeBase) GetByCategory(category string) []*KnowledgeEntry + func (kb *KnowledgeBase) Load() error + func (kb *KnowledgeBase) Merge(other *KnowledgeBase) + func (kb *KnowledgeBase) Prune(minConfidence float64, maxAge time.Duration) + func (kb *KnowledgeBase) Save() error + func (kb *KnowledgeBase) Search(query string, limit int) []*KnowledgeEntry + func (kb *KnowledgeBase) Stats() KnowledgeStats + type KnowledgeEntry struct + Category string + Confidence float64 + Content string + CreatedAt time.Time + Examples []string + ID string + Language string + LastUsed time.Time + Source string + Tags []string + Title string + UsageCount int + type KnowledgeStats struct + AvgConfidence float64 + ByCategory map[string]int + ByLanguage map[string]int + MostUsed []string + TotalEntries int + type MemoryConsolidator struct + ConsolidatedMemories []ConsolidatedMemory + Dir string + LastConsolidation time.Time + RawMemories []RawMemory + func NewMemoryConsolidator(dir string) *MemoryConsolidator + func (mc *MemoryConsolidator) Consolidate() ([]ConsolidatedMemory, error) + func (mc *MemoryConsolidator) Expire() + func (mc *MemoryConsolidator) ExtractConventions(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) ExtractDecisions(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) ExtractFacts(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) FormatMemories(memories []ConsolidatedMemory) string + func (mc *MemoryConsolidator) Ingest(content, source, sessionID string) + func (mc *MemoryConsolidator) Load() error + func (mc *MemoryConsolidator) Recall(query string, limit int) []ConsolidatedMemory + func (mc *MemoryConsolidator) Save() error + func (mc *MemoryConsolidator) Stats() ConsolidatorStats + type RawMemory struct + Content string + Processed bool + SessionID string + Source string + Timestamp time.Time