Versions in this module Expand all Collapse all v0 v0.1.0 Apr 28, 2026 Changes in this version + var DefaultDecayConfig = DecayConfig + func BoostNode(store *storage.Store, id string, boost float64) error + func FormatContext(nodes []*storage.Node) string + func GarbageCollect(store *storage.Store, cfg DecayConfig) (int, error) + func RunDecay(store *storage.Store, cfg DecayConfig) error + func TrimToTokenBudget(nodes []*storage.Node, budget int) []*storage.Node + type DecayConfig struct + BoostOnAccess float64 + HalfLifeDays float64 + MinConfidence float64 + type EdgeInput struct + ToID string + Type string + type Engine struct + func New(store *storage.Store) *Engine + func (e *Engine) Compact(project string) (int, error) + func (e *Engine) CompressSession(sessionID, project string) (*storage.Node, error) + func (e *Engine) Context(project string) (*RecallResult, error) + func (e *Engine) Feedback(id string, action FeedbackAction, newContent string) error + func (e *Engine) Forget(id string) error + func (e *Engine) Graph() *graph.Graph + func (e *Engine) MentalModel(project string) (*mental.Model, error) + func (e *Engine) PendingNodes(project string, threshold float64) ([]*storage.Node, error) + func (e *Engine) Profile(project string) (*profile.Profile, error) + func (e *Engine) Recall(opts RecallOpts) (*RecallResult, error) + func (e *Engine) Remember(in RememberInput) (*storage.Node, error) + func (e *Engine) Rollback(id string, version int) error + func (e *Engine) StartSession(project, agent string) (string, error) + func (e *Engine) Status(project string) (*Status, error) + func (e *Engine) Store() *storage.Store + 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.Store, 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 ProactiveContext struct + func NewProactiveContext(eng *Engine, search *HybridSearch) *ProactiveContext + func (p *ProactiveContext) Predict(ctx context.Context, project string, budget int) ([]*storage.Node, error) + type RecallOpts struct + 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 + Project string + Scope string + Session string + Summary string + Tags string + Tier int + Type string + type ScoredNode struct + Node *storage.Node + Score float64 + func Rerank(nodes []*ScoredNode, store *storage.Store) []*ScoredNode + type Status struct + Edges int + Nodes int + Sessions int