# MemoryStateUpdate

> **Class** in `deepagents`

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

State update for `MemoryMiddleware`.

## Signature

```python
MemoryStateUpdate()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    memory_contents: dict[str, str],
)
```

| Name | Type |
|------|------|
| `memory_contents` | `dict[str, str]` |


## Properties

- `memory_contents`

---

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