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

> get_all: Get all memories from MongoDB.

# get\_all

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

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

Get all memories from MongoDB.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_all(user_id: Any, agent_id: Any, run_id: Any) -> Any
```

## Parameters

<ParamField query="user_id" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_id" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="run_id" type="Any" required={false}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `find`
* `logging.error`

## Used By

* [`Knowledge.get_all`](../functions/Knowledge-get_all)

## Source

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