From 7c1a8b01220083bdaf0b14d81f39949f0385f3f8 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 19 Feb 2026 09:00:50 +0300 Subject: [PATCH] Chore: cleaner tool use log --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 1843fb1..830f344 100644 --- a/bot.go +++ b/bot.go @@ -1070,7 +1070,7 @@ func findCall(msg, toolCall string) bool { } resp := callToolWithAgent(fc.Name, fc.Args) toolMsg := string(resp) // Remove the "tool response: " prefix and %+v formatting - logger.Info("llm used tool call", "tool_resp", toolMsg, "tool_attrs", fc) + logger.Info("llm used a tool call", "tool_name", fc.Name, "too_args", fc.Args, "id", fc.ID, "tool_resp", toolMsg) fmt.Fprintf(textView, "%s[-:-:b](%d) <%s>: [-:-:-]\n%s\n", "\n\n", len(chatBody.Messages), cfg.ToolRole, toolMsg) // Create tool response message with the proper tool_call_id