Learn Config • AI Agent SDK
LearnConfig: Configuration for continuous learning within memory system.
LearnConfig
Defined in the Feature Configs module.
AI Agent
Configuration for continuous learning within memory system.
Learning captures patterns, preferences, and insights from agent interactions to improve future responses. All learning data is stored within the memory system.
Properties
boolNo description available.
boolNo description available.
boolNo description available.
boolNo description available.
boolNo description available.
boolNo description available.
boolNo description available.
intNo description available.
intNo description available.
boolNo description available.
Union[str, LearnMode]No description available.
Union[str, LearnScope]No description available.
Union[str, LearnBackend]No description available.
Optional[str]No description available.
Optional[str]No description available.
intNo description available.
intNo description available.
Optional[str]No description available.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Usage
# Simple enable (top-level param)
Agent(learn=True)
# With specific capabilities
Agent(learn=LearnConfig(
persona=True, # User preferences
insights=True, # Observations
patterns=True, # Reusable knowledge
mode="agentic", # Auto-extract learnings
))
# With database backend
Agent(learn=LearnConfig(
backend="sqlite",
db_url="sqlite:///learn.db",
))Source
View on GitHubpraisonaiagents/config/feature_configs.py at line 146