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

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField bool

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField bool

No description available.

ResponseField Union[str, LearnMode]

No description available.

ResponseField Union[str, LearnScope]

No description available.

ResponseField Union[str, LearnBackend]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField Optional[str]

No description available.

Internal & Generic Methods
  • to_dict: Convert to dictionary.

Usage

python
# 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 GitHub

praisonaiagents/config/feature_configs.py at line 146


Related Documentation