gc
Purge unused memories by removing or archiving those that fall below the forget threshold, keeping the memory store tidy. Includes dry-run and limit options.
Instructions
Perform garbage collection on low-scoring memories.
Removes or archives memories whose decay score has fallen below the forget threshold. This prevents the database from growing indefinitely with unused memories.
Args: dry_run: Preview what would be removed without actually removing. archive_instead: Archive memories instead of deleting. limit: Maximum number of memories to process (1-10,000).
Returns: Statistics about removed/archived memories.
Raises: ValueError: If limit is out of valid range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| dry_run | No | ||
| archive_instead | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||