> ## 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.

# Get Learning Context • AI Agent SDK

> get_learning_context: Get learning context from all enabled stores.

# get\_learning\_context

Method

> This is a method of the [**LearnManagerProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/LearnManagerProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Get learning context from all enabled stores.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_learning_context(limit_per_store: int) -> Dict[str, List[Dict[str, Any]]]
```

## Parameters

**limit\_per\_store** `int` (default: 5)

No description available.

### Returns

**Returns** `Dict[str, List[Dict[str, Any]]]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/learn/protocols.py#L231)
>
> `praisonaiagents/memory/learn/protocols.py` at line 231

***

## Related Documentation

> [card] [Context Concept](https://praison.ai/docs/docs/concepts/context)

> [card] [Context Management](https://praison.ai/docs/docs/features/context-management)

> [card] [Context Strategies](https://praison.ai/docs/docs/features/context-strategies)

> [card] [Agent Learn](https://praison.ai/docs/docs/concepts/agent-learn)

> [card] [Learn Configuration](https://praison.ai/docs/docs/configuration/learn-config)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.