LearningMachine coordinates multiple memory stores to provide context-aware, personalized interactions.
What is LearningMachine?
LearningMachine is a unified learning system that gives agents the ability to:- Remember user preferences and profiles
- Track conversation context across sessions
- Store facts about external entities (companies, projects, people)
- Accumulate reusable insights and patterns
- Log decisions for auditing and improvement
Core Components
The learning system consists of multiple specialized stores:User Profile
Structured profile fields (name, preferences) stored by
user_idUser Memory
Unstructured observations about users that persist across sessions
Session Context
What’s happened in the current session, goals, and progress
Entity Memory
Facts about external entities with semantic and episodic memory
Learned Knowledge
Reusable insights shared across users and agents
Decision Log
Record of agent decisions with reasoning and context
Learning Modes
Each learning store supports different modes of operation:ALWAYS Mode
Memories are extracted automatically after each conversation:AGENTIC Mode
Agent uses tools to decide when and what to learn:Quick Start
Here’s a complete example using the LearningMachine:How Learning Works
The learning lifecycle has three main phases:Benefits
Personalization
Remember each user’s preferences, communication style, and history
Context Continuity
Maintain state across long conversations and multiple sessions
Knowledge Accumulation
Build a knowledge base that improves all agents over time
Decision Tracking
Audit and analyze agent decisions for compliance and improvement
Next Steps
Self-Improvement
Learn how agents can improve their own instructions based on feedback
Reasoning
Add multi-step reasoning capabilities to your agents
Guardrails
Protect your agents with input validation and safety checks
Evaluations
Measure and improve agent performance