# MemoryState

> **Class** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/middleware/memory/MemoryState)

State schema for `MemoryMiddleware`.

## Signature

```python
MemoryState()
```

## Extends

- `AgentState`

## Properties

- `memory_contents`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/deepagents/deepagents/middleware/memory.py#L82)