> ## 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 • AI Agent SDK

> Learn Module - Continuous Learning within Memory System.

# learn

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

Learn Module - Continuous Learning within Memory System.

Provides learning capabilities for agents to capture patterns, preferences,
and insights from interactions to improve future responses.

Usage:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, LearnConfig

# Simple enable (top-level param)
agent = Agent(learn=True)

# With specific capabilities and auto-learning
agent = Agent(learn=LearnConfig(
    persona=True,
    insights=True,
    patterns=True,
    mode="agentic",  # Auto-extract learnings
))

# With database backend
agent = Agent(learn=LearnConfig(
    backend="sqlite",
    db_url="sqlite:///learn.db",
))
```

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.memory import learn
```

***

## Related Documentation

<CardGroup cols={2}>
  <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>
