Keep tool results inside a token budget
Bound every model-visible tool result before it enters the next prompt.
Bound every model-visible tool result before it enters the next prompt.
How to control token growth in Microsoft Agent Framework with message-count and summarizing chat reducers, including setup, tradeoffs, and when each approach fits.
Reduce token cost and latency in .NET by compressing RAG context with a cheap summarizer model or an IChatClient middleware pipeline.