Check if pruning should be triggered based on usage threshold.
Prune context to free tokens or reach target capacity.
Prune items from a specific category.
Get candidates for pruning from specified categories.
Estimate tokens that can be freed from specified categories.
Handles context pruning with multiple strategies.