From 6955a5bc3a89e982f0b05d1e8e6f109e3b79d9ca Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 8 Aug 2025 14:26:01 +0300 Subject: Enha: show tool response --- bot.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 776a373..35ea0fa 100644 --- a/bot.go +++ b/bot.go @@ -448,6 +448,8 @@ func findCall(msg, toolCall string, tv *tview.TextView) { } resp := f(fc.Args) toolMsg := fmt.Sprintf("tool response: %+v", string(resp)) + fmt.Fprintf(tv, "%s[-:-:b](%d) <%s>: [-:-:-]\n%s\n", + "\n", len(chatBody.Messages), cfg.ToolRole, toolMsg) chatRound(toolMsg, cfg.ToolRole, tv, false, false) } -- cgit v1.2.3