Expand description
In-memory retention limits for long-running sessions.
The framework’s in-memory stores
(InMemoryRunStore,
InMemoryTraceSink,
InMemorySubagentTaskTracker)
use conservative finite defaults so sessions that live for hours or days
cannot grow these collections without bound.
SessionRetentionLimits lets the host cap each store with a FIFO
policy. None for any field keeps that collection unbounded. Hosts that
deliberately need the legacy behavior can use
SessionRetentionLimits::unbounded.
All caps are soft: when a store hits its cap, the oldest entry is dropped on insert. The framework never returns errors from cap enforcement.
Structs§
- Session
Retention Limits - Per-session in-memory retention caps. Built via
SessionOptions::with_retention_limitsor by constructing the struct directly.