# ConversationSummaryMemory

> **Class** in `langchain_classic`

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

Continually summarizes the conversation history.

The summary is updated after each conversation turn.
The implementations returns a summary of the conversation history which
can be used to provide context to the model.

## Signature

```python
ConversationSummaryMemory()
```

## Extends

- `BaseChatMemory`
- `SummarizerMixin`

## Properties

- `buffer`
- `memory_key`
- `memory_variables`

## Methods

- [`from_messages()`](https://reference.langchain.com/python/langchain-classic/memory/summary/ConversationSummaryMemory/from_messages)
- [`load_memory_variables()`](https://reference.langchain.com/python/langchain-classic/memory/summary/ConversationSummaryMemory/load_memory_variables)
- [`validate_prompt_input_variables()`](https://reference.langchain.com/python/langchain-classic/memory/summary/ConversationSummaryMemory/validate_prompt_input_variables)
- [`save_context()`](https://reference.langchain.com/python/langchain-classic/memory/summary/ConversationSummaryMemory/save_context)
- [`clear()`](https://reference.langchain.com/python/langchain-classic/memory/summary/ConversationSummaryMemory/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/185119f98e6286253a2326d7cf4f59592678023d/libs/langchain/langchain_classic/memory/summary.py#L85)