# ConversationBufferMemory

> **Class** in `langchain_classic`

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

A basic memory implementation that simply stores the conversation history.

This stores the entire conversation history in memory without any
additional processing.

Note that additional processing may be required in some situations when the
conversation history is too large to fit in the context window of the model.

## Signature

```python
ConversationBufferMemory()
```

## Extends

- `BaseChatMemory`

## Properties

- `human_prefix`
- `ai_prefix`
- `memory_key`
- `buffer`
- `buffer_as_str`
- `buffer_as_messages`
- `memory_variables`

## Methods

- [`abuffer()`](https://reference.langchain.com/python/langchain-classic/memory/buffer/ConversationBufferMemory/abuffer)
- [`abuffer_as_str()`](https://reference.langchain.com/python/langchain-classic/memory/buffer/ConversationBufferMemory/abuffer_as_str)
- [`abuffer_as_messages()`](https://reference.langchain.com/python/langchain-classic/memory/buffer/ConversationBufferMemory/abuffer_as_messages)
- [`load_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/buffer/ConversationBufferMemory/load_memory_variables)
- [`aload_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/buffer/ConversationBufferMemory/aload_memory_variables)

## ⚠️ Deprecated

Deprecated since version 0.3.1.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/langchain/langchain_classic/memory/buffer.py#L13)