Tokens and Context Windows: Capacity, Truncation, and Budgeting