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

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

> This is a method of the [**LearnManagerProtocol**](../classes/LearnManagerProtocol) class in the [**protocols**](../modules/protocols) 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

<ParamField query="limit_per_store" type="int" required={false} default="5">
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Dict[str, List[Dict[str, Any]]]">
  The result of the operation.
</ResponseField>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Context Concept" icon="layer-group" href="/docs/docs/concepts/context" />

  <Card title="Context Management" icon="sliders" href="/docs/docs/features/context-management" />

  <Card title="Context Strategies" icon="diagram-project" href="/docs/docs/features/context-strategies" />

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