---
title: "summarize memory · RUAL Documentation"
description: "Compact a memory: fold the older turns into a running summary and trim the history, so a long conversation stays cheap and in-context while keeping its…"
canonical: https://docs.rual.nl/block-types/anthropic/anthropicconnection_summarize_memory
language: en
---

# summarize memory

This block is part of the [`anthropic`](https://docs.rual.nl/block-types/anthropic) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Compact a memory: fold the older turns into a running summary and trim the history, so a long conversation stays cheap and in-context while keeping its gist. Run it periodically.

- flow `flow`

- connection required `anthropicconnection`

- memory required `anthropicmemory` The memory to compact.

- model `value` Model for the summary pass. Defaults to claude-haiku-4-5 (cheap). • Suggestions: `claude-haiku-4-5` `claude-sonnet-4-6`

- keep last turns `number` How many recent turns to keep verbatim. Older turns are folded into the summary. Default 10.

- flow `flow`

- connection `anthropicconnection`

- success `condition`

- memory `anthropicmemory` The memory, passed through.

- summary `value` The updated running summary.

- usage `object`

- stop reason `value`

- partial `value`

- errors `array ` Error codes when the call fails (success=false): config_error, internal_error, model_not_allowed, budget_exceeded, concurrency_limit_exceeded, rate_limited, transport_error.

- warnings `array ` Non-fatal notices: cost_unknown.

- error detail `value`

| `compact memory` |
| --- |
| `memory summary` |
| `condense memory` |
| `trim memory` |

A typical wiring for [summarize memory](https://docs.rual.nl/block-types/anthropic/anthropicconnection_summarize_memory): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [create memory](https://docs.rual.nl/block-types/anthropic/anthropicconnection_create_memory) feeds the `memory` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the summarize memory block: typical wiring for summarize memory.](https://docs.rual.nl/canvas-examples/anthropicconnection_summarize_memory.png)

### Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).
