summarize memory

This block is part of the anthropic group and was last modified in core v15.0.0.

summarize memory v15.0.0

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.

In pins 4 + flow
  • 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.

Out pins 10 + flow
  • 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<value>

    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<value>

    Non-fatal notices: cost_unknown.

  • error detail
    value
compact memory
memory summary
condense memory
trim memory

A typical wiring for summarize memory: a function trigger starts the flow; create memory feeds the memory pin; the flow out pin feeds debug.

Studio canvas example for the summarize memory block: typical wiring for summarize memory.

Version history

Introduced in v15.0.0.


Back to anthropic Return to the main group to view all sub-groups Back to anthropic Return to the group to view all blocks within this group