Configuration for clearing tool outputs when token limits are exceeded.
ClearToolUsesEdit(
self,
trigger: int = 100000,
clear_at_least: int = 0,
keep: int = 3,
clear_tool_inputs: bool = False,
exclude_tools: Sequence[str] = (),
placeholder: str = DEFAULT_TOOL_PLACEHOLDER
)Token count that triggers the edit.
Minimum number of tokens to reclaim when the edit runs.
Number of most recent tool results that must be preserved.
Whether to clear the originating tool call parameters on the AI message.
List of tool names to exclude from clearing.
Placeholder text inserted for cleared tool outputs.