agents.memory_v2.integrated_memory_systemΒΆ
Integrated Memory System combining Graph, Vector, and Time-based memory.
This system shows how to use multiple memory strategies together: 1. GraphMemoryAgent for structured knowledge and relationships 2. ReactMemoryAgent for flexible tool-based memory management 3. LongTermMemoryAgent for persistent cross-conversation memory
ClassesΒΆ
Combines multiple memory systems for comprehensive memory management. |
|
Modes for the integrated memory system. |
FunctionsΒΆ
Create a research assistant with integrated memory. |
|
Demonstrate the integrated memory system. |
Module ContentsΒΆ
- class agents.memory_v2.integrated_memory_system.IntegratedMemorySystem(user_id='default_user', neo4j_config=None, vector_store_path=None, engine=None)ΒΆ
Combines multiple memory systems for comprehensive memory management.
This system intelligently routes memory operations to the most appropriate subsystem based on content type and requirements.
Init .
- Parameters:
- async consolidate_all_memories()ΒΆ
Consolidate memories across all systems.
- async query_memory(query, mode=MemorySystemMode.INTELLIGENT, combine_results=True)ΒΆ
Query memory using appropriate system(s).
- Parameters:
query (str) β Query string
mode (MemorySystemMode) β Query mode
combine_results (bool) β Whether to combine results from multiple systems
- Returns:
Query results
- Return type:
- async store_memory(content, mode=MemorySystemMode.INTELLIGENT, metadata=None)ΒΆ
Store memory using the appropriate system(s).
- class agents.memory_v2.integrated_memory_system.MemorySystemModeΒΆ
-
Modes for the integrated memory system.
Initialize self. See help(type(self)) for accurate signature.
- async agents.memory_v2.integrated_memory_system.create_research_assistant()ΒΆ
Create a research assistant with integrated memory.
- async agents.memory_v2.integrated_memory_system.demo_integrated_memory()ΒΆ
Demonstrate the integrated memory system.