FitStrategy
Strategy for fitting content into a token budget.
Usage
FitStrategyAttributes
TRUNCATE_OLDEST-
Drop the oldest messages first, preserving the most recent context.
TRUNCATE_MIDDLE-
Keep the first and last messages, dropping from the middle. Preserves the opening context and the most recent exchanges.
TRIM_SECTIONS- For prompts: drop lowest-priority PromptBuilder sections first.