You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fit a request into a token budget without breaking tool rounds: ContextBudgetChatReducer. An M.E.AI IChatReducer
(ChatClientBuilder.UseChatReducer(…)) for any IChatClient pipeline: a tool result over its limit keeps its first and
last lines (ContextBudgetOptions.ToolResults, a ToolResultTrimmer — 30 000 characters, 50 + 20 lines; the same rule
as IronHive.Agent's tool-result compaction), and while the request is over MaxInputTokens the oldest messages are dropped — an assistant
message that calls tools always together with the results that answer it, so no request carries a call without its result
or a result without its call (M.E.AI's own reducers count messages and can split them). System messages, the last user
message and the newest message or round stay; each dropped run is replaced by one note where it was. The caller's history
is untouched. Registered after UseFunctionInvocation(), it fits every round of a tool loop.
Changed
Scope: IndexThinking shapes one model call — it fits what goes in to the window and reads what comes out (was: «one
LLM turn»). The README and docs/DESIGN.md say so; no API changed with it.