Skip to content

v0.28.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 19:09

Added

  • 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.