# ConversationEntityMemory

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory)

Entity extractor & summarizer memory.

Extracts named entities from the recent chat history and generates summaries.
With a swappable entity store, persisting entities across conversations.
Defaults to an in-memory entity store, and can be swapped out for a Redis,
SQLite, or other entity store.

## Signature

```python
ConversationEntityMemory()
```

## Extends

- `BaseChatMemory`

## Properties

- `human_prefix`
- `ai_prefix`
- `llm`
- `entity_extraction_prompt`
- `entity_summarization_prompt`
- `entity_cache`
- `k`
- `chat_history_key`
- `entity_store`
- `buffer`
- `memory_variables`

## Methods

- [`load_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/load_memory_variables)
- [`save_context()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/save_context)
- [`clear()`](https://reference.langchain.com/python/langchain-classic/memory/entity/ConversationEntityMemory/clear)

## ⚠️ Deprecated

Deprecated since version 0.3.1. Use langchain.agents.create_agent instead. Will be removed in version 2.0.0. For agents that need to remember prior interactions, use `create_agent` with checkpointing or the `Store` API. See https://docs.langchain.com/oss/python/langchain/short-term-memory and https://docs.langchain.com/oss/python/langchain/long-term-memory

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f4bc5031dbcf24edb0374a07830915a285222567/libs/langchain/langchain_classic/memory/entity.py#L472)