Spaces:
Sleeping
Sleeping
Download src/gaia/memory/__init__.py from jm-vis/Final_Assignment_GAIAAgent: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/jm-vis/Final_Assignment_GAIAAgent/resolve/main/src/gaia/memory/__init__.py
- Command line
-
hf download hf://spaces/jm-vis/Final_Assignment_GAIAAgent/src/gaia/memory/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jm-vis/Final_Assignment_GAIAAgent/resolve/main/src/gaia/memory/__init__.py
1.36 kB
| """ | |
| 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" | |
| ] |