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

> store_entity: Save entity info in LTM (or mem0/rag).

# store\_entity

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

Save entity info in LTM (or mem0/rag).
We'll label the metadata type = entity for easy filtering.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def store_entity(name: str, type_: str, desc: str, relations: str) -> Any
```

## Parameters

<ParamField query="name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="type_" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="desc" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="relations" type="str" required={true}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `store_long_term`

## Source

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