feat(memory): new memory integration + storage bugfix#64
Merged
Conversation
aiosfoundation
approved these changes
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK updates for kernel memory providers, personalization, and storage fix
Summary
Updates the Cerebrum SDK to align with recent AIOS kernel changes including pluggable memory providers (in-house, Mem0, Zep), the Mem0 personalization pipeline, dynamic Ollama model discovery, and a storage
create_filebugfix.Changes
Code change:
cerebrum/storage/apis.py: Added optionalfile_name: Optional[str] = Noneparameter tocreate_file(). When provided, it's included in theStorageQueryparams sent to the kernel. When omitted, behavior is unchanged. This aligns with the kernel's updatedcreate_filedispatcher which now extractsfile_namefrom params.Documentation updates:
cerebrum/memory/apis.py: Added module-level docstring documenting kernel-side memory configuration fields (memory.provider,memory.auto_extract,memory.auto_inject,memory.relevance_threshold,memory.max_injected_memories,memory.max_memory_tokens). Updated docstrings forcreate_memory,create_agentic_memory,search_memories, andupdate_memorywith provider-specific metadata keys (Mem0:user_id/agent_id, Zep:session_id/user_id).cerebrum/llm/apis.py: Updatedllm_chatdocstring with kernel personalization pipeline behavior and Ollama dynamic model discovery. Updatedllm_chat_with_tool_call_outputwith personalization context injection note. Updatedllm_chat_with_json_outputto clarify personalization does not apply.Backward compatibility
Fully backward compatible. No existing function signatures changed. No Query/Response models changed. The only new parameter (
file_name) is optional with aNonedefault.