Recent turns, oldest → newest, capped at n (defaults to all retained).
Optionaln: numberOptionaltryClaim the right to run a background job for this session, fleet-wide, for
ttlSeconds. Returns true for exactly one caller per window.
Optional, and nothing in this library calls it yet: it is the primitive the Python
library's auto-summarisation uses to keep one holder across processes, and it is
declared here so an adapter written against either library implements the same
contract. Implement it with a single atomic operation (Redis SET NX EX, Postgres
INSERT ... ON CONFLICT ... WHERE expires_at <= now()), never a read-then-write.
OptionalcloseRelease resources this store owns. Optional, because the built-in adapters take an
injected client whose lifetime the application owns, so they have nothing to close.
A store that opens its own connection should implement it; MemoryManager.close()
calls it when present.
Hot session store (recent conversation turns).