Coverage for integrations / channels / memory / __init__.py: 100.0%

10 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-05-12 04:49 +0000

1""" 

2Memory System — File Tracking, Embeddings, Search, and Memory Graph. 

3 

4This module provides: 

5- MemoryStore: SQLite FTS5 + embeddings storage 

6- MemoryGraph: Provenance-aware memory graph with backtrace 

7- Agent Memory Tools: Framework-agnostic tools + adapters (autogen, LangChain) 

8- FileTracker: Monitor and index file changes 

9- EmbeddingCache: Cache embeddings with TTL 

10- MemorySearch: Unified search across memory sources 

11""" 

12 

13from .memory_store import MemoryStore, MemoryItem, SearchResult 

14from .file_tracker import ( 

15 FileTracker, 

16 FileChange, 

17 SyncResult, 

18 FileWatcher, 

19 WatchConfig, 

20) 

21from .embeddings import ( 

22 EmbeddingCache, 

23 EmbeddingConfig, 

24 EmbeddingResult, 

25 CacheStats, 

26) 

27from .search import ( 

28 MemorySearch, 

29 MemorySource, 

30 MemoryGraphSource, 

31 SearchResults, 

32 ContextResults, 

33 SearchConfig, 

34) 

35 

36# Memory Graph (provenance + backtrace) 

37from .memory_graph import MemoryGraph, MemoryNode 

38from .agent_memory_tools import ( 

39 create_memory_tools, 

40 register_autogen_tools, 

41 create_langchain_tools, 

42) 

43 

44# SimpleMem (optional - requires simplemem package) 

45try: 

46 from .simplemem_store import SimpleMemStore, SimpleMemConfig 

47 from .simplemem_store import HAS_SIMPLEMEM 

48except ImportError: 

49 HAS_SIMPLEMEM = False 

50 

51__all__ = [ 

52 # Memory Store 

53 "MemoryStore", 

54 "MemoryItem", 

55 "SearchResult", 

56 # File Tracker 

57 "FileTracker", 

58 "FileChange", 

59 "SyncResult", 

60 "FileWatcher", 

61 "WatchConfig", 

62 # Embeddings 

63 "EmbeddingCache", 

64 "EmbeddingConfig", 

65 "EmbeddingResult", 

66 "CacheStats", 

67 # Search 

68 "MemorySearch", 

69 "MemorySource", 

70 "MemoryGraphSource", 

71 "SearchResults", 

72 "ContextResults", 

73 "SearchConfig", 

74 # Memory Graph 

75 "MemoryGraph", 

76 "MemoryNode", 

77 "create_memory_tools", 

78 "register_autogen_tools", 

79 "create_langchain_tools", 

80 # SimpleMem (optional) 

81 "SimpleMemStore", 

82 "SimpleMemConfig", 

83 "HAS_SIMPLEMEM", 

84]