Versions in this module Expand all Collapse all v1 v1.2.2 Jan 27, 2026 Changes in this version + func GetAgentContext() string + func GetAgentType() string + type Chunk struct + Content string + EndPos int + Index int + Level int + StartPos int + type ChunkConfig struct + MaxChunkSize int + MinChunkSize int + OverlapSize int + func DefaultChunkConfig() *ChunkConfig + type Chunker struct + func NewChunker(config *ChunkConfig) *Chunker + func (c *Chunker) ChunkContent(content string) []Chunk + func (c *Chunker) ShouldChunk(content string) bool + type GetOptions struct + ID string + Slug string + type ListOptions struct + Domain string + EndDate *time.Time + Limit int + MaxImportance int + MinImportance int + Offset int + SessionFilterMode string + SessionID string + StartDate *time.Time + Tags []string + type Service struct + func NewService(db *database.Database, cfg *config.Config) *Service + func (s *Service) Delete(id string) error + func (s *Service) Get(opts *GetOptions) (*database.Memory, error) + func (s *Service) GetSessionID() string + func (s *Service) GetStats() (*Stats, error) + func (s *Service) List(opts *ListOptions) ([]*database.Memory, error) + func (s *Service) Store(opts *StoreOptions) (*StoreResult, error) + func (s *Service) Update(opts *UpdateOptions) (*database.Memory, error) + type SessionDetector struct + ManualID string + Prefix string + Strategy SessionStrategy + func NewSessionDetector(strategy SessionStrategy) *SessionDetector + func (d *SessionDetector) DetectSessionID() string + type SessionStrategy string + const SessionStrategyGitDirectory + const SessionStrategyHash + const SessionStrategyManual + type Stats struct + SessionID string + TotalCategories int + TotalDomains int + TotalMemories int + TotalSessions int + type StoreOptions struct + AccessScope string + AgentContext string + AgentType string + Content string + Domain string + Importance int + SessionID string + Slug string + Source string + Tags []string + type StoreResult struct + IsNew bool + Memory *database.Memory + SessionID string + type UpdateOptions struct + Content *string + Domain *string + ID string + Importance *int + Source *string + Tags []string