From 271b6525921d7bf7169f8abd601d651f8018fe88 Mon Sep 17 00:00:00 2001 From: PratikDhanave Date: Wed, 16 Sep 2026 13:14:28 +0530 Subject: [PATCH] Fix DefaultToolCallFormatter godoc: it groups repeated names, not counts The comment claimed the output includes 'deduplication counts for repeated tool names', but the formatter emits no numeric counts - it lists each tool name once with its results grouped on ' - ' lines. Corrected the description. --- agent/compaction/toolresult.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/compaction/toolresult.go b/agent/compaction/toolresult.go index a4b56d04..a219ef6b 100644 --- a/agent/compaction/toolresult.go +++ b/agent/compaction/toolresult.go @@ -99,8 +99,8 @@ func (strategy *ToolResultStrategy) Compact(_ context.Context, index *MessageInd return compacted, nil } -// DefaultToolCallFormatter produces a YAML-like summary of tool-call groups, including tool names, -// results, and deduplication counts for repeated tool names. +// DefaultToolCallFormatter produces a YAML-like summary of tool-call groups, listing each +// tool name once with its results grouped beneath it. // // This is the formatter used when no custom ToolCallFormatter is supplied. It can be referenced // directly in a custom formatter to augment or wrap the default output.