Skip to content

Conversation

@arJ-V
Copy link

@arJ-V arJ-V commented Dec 13, 2025

  • Add cache_usage property to ChatSampler that returns (used, total) tuple
  • Add get_cache_usage() static method to Sampler for stateless usage
  • Provides easy way to monitor cache usage during multi-turn conversations
  • Returns None if no sampling has been performed yet
  • Includes example usage in docstrings

Addresses problem outlined in issue: #471

- Add cache_usage property to ChatSampler that returns (used, total) tuple
- Add get_cache_usage() static method to Sampler for stateless usage
- Provides easy way to monitor cache usage during multi-turn conversations
- Returns None if no sampling has been performed yet
- Includes example usage in docstrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant