Skip to main content

Aglet memory technique: rolling LLM-summarised history for long conversations.

Project description

aglet-builtin-memory-summary

Rolling LLM-summarised conversation memory — the right Memory Technique for long chats where a sliding window would drop important context.

Part of the Aglet pluggable Agent runtime.

What it does

When the per-conversation buffer grows past trigger_chars, the technique asks an LLM to compress the oldest half of the history into a single short paragraph and recalls that summary on every subsequent turn. Recent turns are kept verbatim.

Best combined with memory.sliding_window under routing: parallel_merge:

memory:
  techniques:
    - { name: sliding_window, config: { max_messages: 10 } }
    - name: summary
      config:
        model: cheap
        trigger_chars: 6000
        keep_recent: 6
  routing: parallel_merge

Install

pip install --pre aglet-builtin-memory-summary

Config

Key Default Description
model default Model alias (from agent.yaml models:) used for compression
trigger_chars 6000 Compress when the conversation buffer exceeds this many chars
keep_recent 6 Number of most-recent messages kept verbatim
summary_prefix "[Prior conversation summary]" Label prepended to recalled summaries

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aglet_builtin_memory_summary-0.1.0a1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aglet_builtin_memory_summary-0.1.0a1.tar.gz.

File metadata

File hashes

Hashes for aglet_builtin_memory_summary-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 0f9d6311e72903b2d3db05bcb9ae0c9a1be66d75ce6449d05a3e92966cefd487
MD5 0c52b747596468caa82fdead47538d7a
BLAKE2b-256 29c7b5a0d4e768d278890732e7464d263a3b7e84dcaeb2e33023a1392000e1dd

See more details on using hashes here.

File details

Details for the file aglet_builtin_memory_summary-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for aglet_builtin_memory_summary-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1da4288e4f2459bcde840a1d5f6df0eb8589abb935062a84581aa069f9f847
MD5 310e6ce1cdd1a9f0a173b8d390d78a6b
BLAKE2b-256 143be3a3270d2af93edfbb394321eba73e13b3d860d1e98f1e901ed6bfdc8ca7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page