> ## 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: Get the LearnManager for continuous learning capabilities.

# learn

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Memory**](../classes/Memory) class in the [**memory**](../modules/memory) module.

Get the LearnManager for continuous learning capabilities.

Returns None if learn is not enabled in config.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def learn() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
memory = Memory({"learn": True})
    memory.learn.capture_persona("User prefers concise responses")
    memory.learn.capture_insight("User works in data science")
```

## Uses

* `LearnConfig`
* `LearnManager`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agent Learn" icon="graduation-cap" href="/docs/concepts/agent-learn" />

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