1 snippet
Estimate token usage and truncate context before it exceeds a model's context window limit.