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

> get_all_memories: Get all memories from both short-term and long-term storage

# get\_all\_memories

<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 all memories from both short-term and long-term storage

## Signature

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

### Returns

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

## Uses

* `sqlite3.connect`
* `conn.cursor`
* `fetchall`
* `c.execute`
* `conn.close`
* `json.loads`

## Source

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