Ask a question to get started
Enter to send•Shift+Enter new line
Format offload retention settings into a human-readable limit string.
format_offload_limit( keep: tuple[str, int | float], context_limit: int | None, ) -> str
keep
tuple[str, int | float]
Retention policy tuple (type, value) from summarization defaults, where type is one of "messages", "tokens", or "fraction".
(type, value)
type
"messages"
"tokens"
"fraction"
context_limit
int | None
Model context limit when available.