Phillnet-2 / agi_memory /utils.py
ayjays132's picture
Upload 478 files
101858b verified
"""
Utility Functions
=================
"""
from typing import List, Dict, Any
from .core import AGIMemorySystem
def get_available_memory_types() -> List[str]:
"""Get list of available memory types"""
return [
"text",
"vision",
"audio",
"working",
"long_term",
"short_term",
"sensory",
"autobiographical",
"prospective",
"consciousness"
]
def get_memory_stats(memory: AGIMemorySystem) -> Dict[str, Any]:
"""Get statistics from memory system"""
return memory.get_stats()
def clear_all_memory(memory: AGIMemorySystem):
"""Clear all memory in the system"""
memory.clear()