Versions in this module Expand all Collapse all v0 v0.5.0 May 11, 2026 Changes in this version type Engine + func (e *Engine) Branch(ctx context.Context, nodeID, newContent, newType string) (*storage.Node, error) v0.4.0 May 5, 2026 v0.3.0 May 3, 2026 Changes in this version + var DefaultDecayConfig = DecayConfig + func BoostNode(ctx context.Context, store storage.Storage, id string, boost float64) error + func FormatContext(nodes []*storage.Node) string + func GarbageCollect(ctx context.Context, store storage.Storage, cfg DecayConfig) (int, error) + func IsValidNodeType(typ string) bool + func RunDecay(ctx context.Context, store storage.Storage, cfg DecayConfig) error + func TrimToTokenBudget(nodes []*storage.Node, budget int) []*storage.Node + type AccessTracker struct + func NewAccessTracker(store storage.Storage, interval time.Duration) *AccessTracker + func (at *AccessTracker) Flush(ctx context.Context) + func (at *AccessTracker) Log(ctx context.Context, nodeID string) + func (at *AccessTracker) Stop() + type ConflictCandidate struct + Content string + NodeID string + Score float64 + type DecayConfig struct + BoostOnAccess float64 + HalfLifeDays float64 + MinConfidence float64 + type EdgeInput struct + ToID string + Type string + type Engine struct + DecayConfig DecayConfig + func New(store storage.Storage, g graph.Graph) *Engine + func (e *Engine) Close() + func (e *Engine) Compact(ctx context.Context, project string) (int, error) + func (e *Engine) CompressSession(ctx context.Context, sessionID, project string) (*storage.Node, error) + func (e *Engine) Context(ctx context.Context, project string) (*RecallResult, error) + func (e *Engine) Feedback(ctx context.Context, id string, action FeedbackAction, newContent string) error + func (e *Engine) FindConflictCandidates(ctx context.Context, nodeID, content string, limit int) ([]ConflictCandidate, error) + func (e *Engine) Forget(ctx context.Context, id string) error + func (e *Engine) FusedRecall(ctx context.Context, opts RecallOpts) (*RecallResult, error) + func (e *Engine) GetMemoryStats(ctx context.Context) (*MemoryStats, error) + func (e *Engine) GetMetrics() Metrics + func (e *Engine) GetNodeHistory(ctx context.Context, nodeID string) ([]NodeHistoryEntry, error) + func (e *Engine) GetUserProfile(ctx context.Context, project string) (*UserProfile, error) + func (e *Engine) Graph() graph.Graph + func (e *Engine) MentalModel(ctx context.Context, project string) (*mental.Model, error) + func (e *Engine) PendingNodes(ctx context.Context, project string, threshold float64) ([]*storage.Node, error) + func (e *Engine) Profile(ctx context.Context, project string) (*profile.Profile, error) + func (e *Engine) Query(ctx context.Context, question string, project string) (*QueryResult, error) + func (e *Engine) Recall(ctx context.Context, opts RecallOpts) (*RecallResult, error) + func (e *Engine) Remember(ctx context.Context, in RememberInput) (*storage.Node, error) + func (e *Engine) Rollback(ctx context.Context, id string, version int) error + func (e *Engine) SelfLink(ctx context.Context, node *storage.Node) + func (e *Engine) StartSession(ctx context.Context, project, agent string) (string, error) + func (e *Engine) Status(ctx context.Context, project string) (*Status, error) + func (e *Engine) Store() storage.Storage + func (e *Engine) UpdateUserPreference(ctx context.Context, project, key, value string) error + func (e *Engine) WithSummarizer(s compact.Summarizer) *Engine + type Entity struct + Name string + Type string + func ExtractEntities(content string) []Entity + type FeedbackAction string + const FeedbackApprove + const FeedbackDiscard + const FeedbackEdit + type HybridSearch struct + func NewHybridSearch(store storage.Storage, g graph.Graph, provider embeddings.Provider) *HybridSearch + func (h *HybridSearch) Search(ctx context.Context, query string, opts RecallOpts) ([]*ScoredNode, error) + type LLMExtractor struct + func NewLLMExtractor(apiKey, baseURL, model string) *LLMExtractor + func (e *LLMExtractor) Extract(ctx context.Context, content string) []Entity + type MemoryStats struct + LastUpdated time.Time + NodesByType map[string]int + TopTopics []string + TotalEdges int + TotalNodes int + type Metrics struct + Errors int64 + NodesStored int64 + Recalls int64 + Remembers int64 + type NodeHistoryEntry struct + ChangedAt string + ChangedBy string + Content string + Reason string + Version int + type ProactiveContext struct + func NewProactiveContext(eng *Engine, search *HybridSearch) *ProactiveContext + func (p *ProactiveContext) Predict(ctx context.Context, project string, budget int) ([]*storage.Node, error) + type QueryResult struct + Answer string + Confidence float64 + Sources []*storage.Node + type RecallOpts struct + Budget int + Depth int + Limit int + Project string + Query string + Tier int + Type string + type RecallResult struct + Edges []*storage.Edge + Nodes []*storage.Node + type RememberInput struct + Agent string + Content string + Edges []EdgeInput + Key string + Pinned bool + Project string + Scope string + Session string + Summary string + Tags string + Tier int + TopicKey string + Type string + type ScoredNode struct + Node *storage.Node + Score float64 + func Rerank(ctx context.Context, nodes []*ScoredNode, store storage.Storage) []*ScoredNode + type Status struct + Edges int + Nodes int + Sessions int + type UserProfile struct + Patterns []string + Preferences map[string]string + UpdatedAt time.Time