File size: 1,358 Bytes
c922f8b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
"""
Memory module for GAIA implementation.
Handles persistent memory storage and retrieval using Supabase.
This module provides memory interfaces for:
- Storing intermediate results during agent execution
- Caching previous answers and tool results
- Maintaining conversation context
Usage:
from src.gaia.memory import SupabaseMemory, ConversationMemory, ResultCache, WorkingMemory
# Create the base memory implementation
memory = SupabaseMemory()
# Create specialized memory interfaces
conversation = ConversationMemory(memory, "conversation-123")
cache = ResultCache(memory)
working = WorkingMemory(memory, "session-456")
# Use the memory interfaces
conversation.add_message("user", "What is the capital of France?")
cache.cache_result("capital-france", "Paris")
working.store_intermediate_result("search-results", ["Paris", "France", "Capital"])
"""
from src.gaia.memory.supabase_memory_consolidated import (
SupabaseMemory,
ConversationMemory,
ResultCache,
WorkingMemory,
MemoryEntry,
SpecializedMemory,
verify_tables_exist,
test_memory_implementation
)
__all__ = [
"SupabaseMemory",
"ConversationMemory",
"ResultCache",
"WorkingMemory",
"MemoryEntry",
"SpecializedMemory",
"verify_tables_exist",
"test_memory_implementation"
] |