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
ToolResultMasker can wait until masking is worth a prompt-cache miss: minimumClearTokens. Masking changes the
prompt from the first masked result on, and each new turn moves the protection boundary by one turn — so masking at every
move makes a provider's prompt cache miss on every turn. With minimumClearTokens the masker leaves the history as it is
until the results it would mask add up to that many tokens, then masks them together (the trade-off Anthropic's context
editing calls clear_at_least). Results already masked do not count. It applies to the turn boundary only — a protectedTokens budget is a limit and always holds. Default 0: as before. Breaking (binary): the constructor gained the parameter,
so a package compiled against 0.29.0 that constructs a masker needs a rebuild — IronHive.Agent 0.65.0 does; take IronHive.Agent
0.66.0 with this release.
Fixed
A masked tool result stays masked as it was. A loop that stores the prepared history hands the masker its own
placeholders on the next request; a placeholder with long arguments is longer than minimumResultLength, and it was masked
again — the new placeholder described the placeholder («230 chars») instead of the result, and the prompt changed at that
result once more. Placeholders are now left alone.
A trimmed tool result stays trimmed as it was.ToolResultTrimmer's output can still be over MaxChars (the
character cut adds its marker after the limit; kept head and tail lines can be long), so a loop that stores what it sent
trimmed it again on the next request and the marker's «chars total» then described the trimmed text. A text that carries
the trimmer's own marker is now returned as it is.