Replaces the value field of all ContentToolResult objects in the
conversation with a short summary, collapsing large tool outputs without
dropping turns. Unlike L1 (which uses a fixed placeholder), this uses the
first max_chars characters plus a token estimate notice.
Arguments
- chat
An
ellmer::Chatobject.- max_chars
Integer. Max characters to retain per tool result.