|
""" |
|
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" |
|
] |