cleanup
Manage memory usage by removing expired facts and low-priority data to prevent unbounded growth in long-running AI agent sessions.
Instructions
Run memory decay and eviction. Expires facts past their TTL and evicts low-salience facts when memory exceeds capacity. Call periodically in long-running agent sessions to prevent unbounded memory growth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Salience threshold below which facts are evicted (default: 0.05). Higher values are more aggressive. |