Quick Start
1
Simple Usage
Enable learning with a boolean — the agent captures persona and insights by default:
2
With LearnConfig
Choose what to learn and how to store it:
3
With Database Backend
How It Works
Learning Modes
mode="propose" is defined in the SDK but not yet implemented — it behaves the same as disabled until the approval workflow is added. Do not use it in production.Configuration Options
LearnConfig SDK Reference
Full parameter reference for LearnConfig
Learning mode:
propose mode is defined in the SDK but not yet implemented. Setting mode="propose" currently behaves the same as "disabled".Full list of options, types, and defaults —
LearnConfigCommon Patterns
Pattern 1 — Persona learning for personalized responses
Best Practices
Start with learn=True, then tune
Start with learn=True, then tune
The default settings (
persona=True, insights=True) cover most use cases. Only add patterns=True or decisions=True when you need those specific learning types — they add overhead per turn.Use sqlite or redis for production
Use sqlite or redis for production
The default
file backend is great for development and local agents. For production, switch to sqlite (single-node) or redis/mongodb (multi-node or high throughput).Set max_entries to prevent unbounded growth
Set max_entries to prevent unbounded growth
For long-lived agents, set
max_entries (e.g., max_entries=1000) and retention_days (e.g., retention_days=30) to prevent the learning store from growing indefinitely.Related
Learning Retention
How learned data persists between sessions
Advanced Memory
Full memory system configuration
Learn Skill
Agent skill learning system
Self Improve
Agent self-improvement mechanisms

