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

# Store Memory • AI Agent SDK

> store_memory: Store content in memory.

# store\_memory

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

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

Store content in memory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def store_memory(content: str, memory_type: str) -> Any
```

## Parameters

<ParamField query="content" type="str" required={true}>
  Content to store
</ParamField>

<ParamField query="memory_type" type="str" required={false} default="'short_term'">
  Type of memory (short\_term, long\_term, entity, episodic) \*\*kwargs: Additional arguments for the memory method
</ParamField>

### Returns

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

## Uses

* `add_short_term`
* `add_long_term`
* `add_entity`
* `add_episodic`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L2827">
  `praisonaiagents/agent/agent.py` at line 2827
</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>
