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

# memory • AI Agent SDK

> memory: API reference for Knowledge.memory

# memory

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

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

## Signature

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

### Returns

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

## Uses

* `MongoDBMemory`
* `logger.error`
* `CustomMemory.from_config`
* `Memory.from_config`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Memory Concept" icon="brain" href="/docs/concepts/memory" />

  <Card title="Memory Overview" icon="database" href="/docs/memory/overview" />

  <Card title="Memory Configuration" icon="gear" href="/docs/configuration/memory-config" />

  <Card title="Session Resume" icon="rotate-right" href="/docs/memory/session-resume" />
</CardGroup>
