Versions in this module Expand all Collapse all v1 v1.3.24 Mar 29, 2026 Changes in this version + const ExecutorMode + const ForgetToolName + const ListToolName + const RecallToolName + const RememberToolName + func RegisterMemoryTools(registry *tools.Registry) + type Executor struct + func NewExecutor(store Store, scope map[string]string) *Executor + func (e *Executor) Execute(ctx context.Context, desc *tools.ToolDescriptor, args json.RawMessage) (json.RawMessage, error) + func (e *Executor) Name() string + type Extractor interface + Extract func(ctx context.Context, scope map[string]string, messages []types.Message) ([]*Memory, error) + type InMemoryStore struct + func NewInMemoryStore() *InMemoryStore + func (s *InMemoryStore) Delete(_ context.Context, scope map[string]string, memoryID string) error + func (s *InMemoryStore) DeleteAll(_ context.Context, scope map[string]string) error + func (s *InMemoryStore) List(_ context.Context, scope map[string]string, opts ListOptions) ([]*Memory, error) + func (s *InMemoryStore) Retrieve(_ context.Context, scope map[string]string, query string, opts RetrieveOptions) ([]*Memory, error) + func (s *InMemoryStore) Save(_ context.Context, m *Memory) error + type ListOptions struct + Limit int + Offset int + Types []string + type Memory struct + AccessedAt time.Time + Confidence float64 + Content string + CreatedAt time.Time + ExpiresAt *time.Time + ID string + Metadata map[string]any + Scope map[string]string + SessionID string + TurnRange [2]int + Type string + type RetrieveOptions struct + Limit int + MinConfidence float64 + Types []string + type Retriever interface + RetrieveContext func(ctx context.Context, scope map[string]string, messages []types.Message) ([]*Memory, error) + type Store interface + Delete func(ctx context.Context, scope map[string]string, memoryID string) error + DeleteAll func(ctx context.Context, scope map[string]string) error + List func(ctx context.Context, scope map[string]string, opts ListOptions) ([]*Memory, error) + Retrieve func(ctx context.Context, scope map[string]string, query string, ...) ([]*Memory, error) + Save func(ctx context.Context, memory *Memory) error + type ToolProvider interface + RegisterTools func(registry *tools.Registry)