-
Notifications
You must be signed in to change notification settings - Fork 123
feat(memory): add Agent memory module #904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
implement short-term memory (InMemoryMemory) with in-memory storage implement long-term memory (Mem0LongTermMemory) using mem0 for vector retrieval add MemoryManager for unified short/long-term orchestration and diagnostics provide MemoryToolkit and register_memory_tools for ToolRegistry integration add YAML-based configuration and loader (env + file), with ModelFactory support embedding dimension adaptation (config.dimensions → vector store)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a comprehensive memory module for the agent, including short-term (in-memory) and long-term (vector-based via mem0) capabilities, along with configuration management and tool integration. The overall structure is well-designed. However, I've identified a critical issue in the custom adapters for mem0 where asyncio.run() is used unsafely, which could lead to runtime crashes. I've also found an incorrect value in the example YAML configuration that would cause API errors. My review includes suggestions to fix these issues to ensure the stability and correctness of the new memory module.
…dding dimensions to 1536 per review (PR flagos-ai#904)
f7c8b01 to
2f63594
Compare
PR Category
Core
PR Types
New Features
Improvements
PR Description
implement short-term memory (InMemoryMemory) with in-memory storage
implement long-term memory (Mem0LongTermMemory) using mem0 for vector retrieval
add MemoryManager for unified short/long-term orchestration and diagnostics
provide MemoryToolkit and register_memory_tools for ToolRegistry integration
add YAML-based configuration and loader (env + file), with ModelFactory
support embedding dimension adaptation (config.dimensions → vector store)