Versions in this module Expand all Collapse all v1 v1.11.0 Sep 7, 2026 v1.10.0 Sep 7, 2026 v1.9.0 Sep 5, 2026 v1.8.0 Sep 3, 2026 v1.7.0 Sep 3, 2026 v1.6.0 Sep 3, 2026 v1.5.0 Sep 3, 2026 v1.4.0 Sep 3, 2026 v1.3.0 Sep 1, 2026 v1.2.0 Aug 31, 2026 v1.1.0 Aug 30, 2026 v1.0.0 Aug 29, 2026 Changes in this version + const CandidateOversample + const ConceptHalfLife + const DefaultBodies + const DefaultHookTimeout + const DefaultRecallK + const DefaultTopK + const DefaultTopicK + const ExplicitBump + const ImplicitBump + const KindFeedback + const KindProject + const KindReference + const KindUser + const MaxDistance + const RefractoryPeriod + const RerankSimExp + const RerankWeightExp + const ScopeGlobal + const TopicBoost + const TopicHalfLife + const WeightCap + const WeightFloor + const WeightInitial + var Kinds = []string + func Close() error + func ConceptLine(c Concept) string + func DefaultDBPath() (string, error) + func DefaultModelPath() (string, error) + func FileBlock(ctx context.Context, cwd, path string) string + func FormatConcepts(concepts []Concept, heading, note string, bodies int) string + func IsOpen() bool + func NormalizeTopic(t string) string + func Open(opts Options) error + func RecallBlock(ctx context.Context, cwd, prompt, topic string, exclude map[int64]bool) (string, string) + func ScopeFor(cwd string) string + func SerializeVector(vec []float32) []byte + func SetDefault(s *Service) + func SystemBlock(ctx context.Context, cwd string) string + func TitleFromBody(body string) string + func TopIDs(ctx context.Context, cwd string) map[int64]bool + func Upsert(ctx context.Context, c Concept) (int64, error) + func ValidKind(k string) bool + type Concept struct + AccessCount int64 + Body string + CreatedAt time.Time + Distance float32 + ID int64 + Kind string + LastTouched time.Time + Scope string + Score float64 + Title string + Topic string + Weight float64 + type Embedder interface + Close func() + EmbdSize func() int + Embed func(text string) ([]float32, error) + type EmbeddingModel struct + func LoadEmbeddingModel(path string) (*EmbeddingModel, error) + func (m *EmbeddingModel) Close() + func (m *EmbeddingModel) EmbdSize() int + func (m *EmbeddingModel) Embed(text string) ([]float32, error) + type Extractor interface + Enqueue func(TurnRecord) bool + type FakeEmbedder struct + func NewFakeEmbedder(dim int) *FakeEmbedder + func (f *FakeEmbedder) Close() + func (f *FakeEmbedder) EmbdSize() int + func (f *FakeEmbedder) Embed(text string) ([]float32, error) + type Options struct + DBPath string + Embedder Embedder + ModelPath string + Now func() time.Time + type RecallQuery struct + Cwd string + K int + Query string + Silent bool + Topic string + type RecallResult struct + Concepts []Concept + Topic string + func Recall(ctx context.Context, q RecallQuery) (RecallResult, error) + type Service struct + func Default() *Service + func NewService(opts Options) (*Service, error) + func (s *Service) AddSessionToMemory(ctx context.Context, sess session.Session) error + func (s *Service) Close() error + func (s *Service) Demote(ctx context.Context, id int64) (bool, error) + func (s *Service) Forget(ctx context.Context, id int64) error + func (s *Service) Get(ctx context.Context, id int64) (Concept, error) + func (s *Service) IsOpen() bool + func (s *Service) Recall(ctx context.Context, q RecallQuery) (RecallResult, error) + func (s *Service) Reinforce(ctx context.Context, id int64) (bool, error) + func (s *Service) SearchMemory(ctx context.Context, req *adkmemory.SearchRequest) (*adkmemory.SearchResponse, error) + func (s *Service) SetExtractor(e Extractor) + func (s *Service) Top(ctx context.Context, cwd string, k int) ([]Concept, error) + func (s *Service) TopicNames(ctx context.Context, cwd string, k int) []string + func (s *Service) Topics(ctx context.Context, cwd string, k int) ([]Topic, error) + func (s *Service) TouchTopic(ctx context.Context, cwd, name string) error + func (s *Service) Upsert(ctx context.Context, c Concept) (int64, error) + type Topic struct + ID int64 + LastTouched time.Time + Name string + Scope string + Weight float64 + type TurnRecord struct + Cwd string + Files []string + Prompt string + Response string + Topic string + func TurnFromSession(sess session.Session) TurnRecord