> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Learn Config • AI Agent SDK

> LearnConfig: Configuration for continuous learning within memory system.

# LearnConfig

> Defined in the [**Feature Configs**](../modules/feature_configs) module.

<Badge color="blue">AI Agent</Badge>

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 name="persona" type="bool">
  No description available.
</ResponseField>

<ResponseField name="insights" type="bool">
  No description available.
</ResponseField>

<ResponseField name="thread" type="bool">
  No description available.
</ResponseField>

<ResponseField name="patterns" type="bool">
  No description available.
</ResponseField>

<ResponseField name="decisions" type="bool">
  No description available.
</ResponseField>

<ResponseField name="feedback" type="bool">
  No description available.
</ResponseField>

<ResponseField name="improvements" type="bool">
  No description available.
</ResponseField>

<ResponseField name="nudge_interval" type="int">
  No description available.
</ResponseField>

<ResponseField name="nudge_min_tool_iters" type="int">
  No description available.
</ResponseField>

<ResponseField name="propose_skills" type="bool">
  No description available.
</ResponseField>

<ResponseField name="mode" type="Union[str, LearnMode]">
  No description available.
</ResponseField>

<ResponseField name="scope" type="Union[str, LearnScope]">
  No description available.
</ResponseField>

<ResponseField name="backend" type="Union[str, LearnBackend]">
  No description available.
</ResponseField>

<ResponseField name="db_url" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="store_path" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="max_entries" type="int">
  No description available.
</ResponseField>

<ResponseField name="retention_days" type="int">
  No description available.
</ResponseField>

<ResponseField name="llm" type="Optional[str]">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# 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

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L144">
  `praisonaiagents/config/feature_configs.py` at line 144
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/docs/configuration/agent-config" />

  <Card title="Agent Learn" icon="graduation-cap" href="/docs/docs/concepts/agent-learn" />

  <Card title="Learn Configuration" icon="gear" href="/docs/docs/configuration/learn-config" />
</CardGroup>
