Versioned Memory Store for AI Agents using ProllyTree and the Rig framework #58
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.
Complete Memory Architecture
- Short-term Memory: Stores conversation context
- Long-term Memory: Stores learned facts and preferences
- Episodic Memory: Stores experiences and outcomes
Core Features Implemented
- Versioned Storage: Every memory operation creates a new version
- Memory Branching: Create experimental branches without affecting main memory
- Rollback Capability: Revert to any previous memory state
- Audit Trail: Track all memory access and decisions
Demo Scenarios
- Learning & Rollback: Shows how agents learn preferences and can rollback mistakes
- Memory Branching: Demonstrates safe experimentation with different behaviors
- Audit Trail: Shows decision tracking and memory access logging
- Episodic Learning: Demonstrates learning from experiences
- Interactive Chat: Full conversational agent with versioned memory
Setup: cd examples/rig_versioned_memory export OPENAI_API_KEY="your-key-here" cargo build
Run Demos: # Interactive chat (default) cargo run
Specific demos
cargo run -- learning # Memory learning & rollback
cargo run -- branching # Memory branching
cargo run -- audit # Audit trail demo
cargo run -- all # Run all demos
3. Interactive Commands:
- /quit - Exit
- /new - New conversation
- /version - Show current version
- /learn - Teach the agent